Quasi-incremental radiation source individual identification method based on knowledge distillation mechanism
By using the knowledge distillation mechanism and cosine normalization layer technology in the radiation source individual identification system, the problems of huge incremental update resource consumption and catastrophic forgetting in the traditional method are solved, and an efficient radiation source individual identification system is realized. Quantitatively updated, the recognition effect is maintained.
Patent Information
- Application Number
- CN202210056673.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-18
AI Technical Summary
Traditional radiation source individual identification methods require joint training of all data when adding new categories, resulting in huge consumption of computing and storage resources, and catastrophic forgetting problems, making it difficult to effectively incrementally update the identification system.
A class incremental radiation source individual identification method based on the knowledge distillation mechanism is adopted. By adding a self-attention layer and a cosine normalization layer to the residual neural network, the old class weights are frozen, and only new class data are used for model update. Distillation is used to The loss-constrained model output is consistent with the teacher network to avoid rapid forgetting of old knowledge.
It realizes the incremental update of the radiation source individual identification system without consuming a lot of computing and storage resources, alleviates the problem of catastrophic forgetting, maintains the preservation of old class knowledge, and achieves recognition results comparable to joint training.
Smart Images

Figure CN114492745B
Abstract
Description
Technical Field
[0001] The present invention relates to wireless communication technology and access device identification technology, and in particular to an individual identification method of quasi-incremental radiation sources based on a knowledge distillation mechanism. Background Art
[0002] With the rapid development of wireless communication technology and the Internet of Things, access devices are growing exponentially, which poses a challenge to traditional device identification solutions based on IP addresses and MAC addresses, because this authentication method can be easily tampered with. On the other hand, in electronic countermeasures and electronic warfare, it is necessary to identify enemy wireless communication devices in order to analyze battlefield conditions. In addition, in real application scenarios, after the individual radiation source identification system is deployed, new categories often need to be added. Therefore, studying methods that can incrementally add new radiation source individual categories will be an effective way to solve the above problems.
[0003] Individual identification of radiation sources, also known as radio frequency fingerprint identification or specific radiation source identification, studies the extraction of stable and unique subtle features that can distinguish individual radiation sources from received signals for classification and identification. It is essentially a pattern recognition problem. Among them, the analysis and extraction of radio frequency fingerprints determines the accuracy and efficiency of identification, which in turn affects the effectiveness of electronic reconnaissance equipment. According to the signal state of the individual radiation source, individual characteristics are divided into transient characteristics and steady-state characteristics. Transient refers to processes such as device power switching, mode conversion, and changes in external system excitation. Steady-state signal refers to the signal part emitted by the transmitting device after the power is stabilized. For communication signals, it mainly contains the data part to be transmitted and a small amount of noise. The actual steady-state signal has the characteristics of non-Gaussian, nonlinear, and non-stationary. Researchers mainly focus on analyzing steady-state characteristics in the transform domain. Transform domain information such as time-frequency spectrum, high-order spectrum, and Hilbert spectrum has been widely used in individual radiation source identification recently.
[0004] Incremental learning, also known as continuous learning or lifelong learning, studies how to learn from a continuous data stream, handle new tasks, and preserve the knowledge learned from previous learning tasks. So far, this technical field still faces many challenges, the most important of which is the catastrophic forgetting problem of neural networks. The so-called catastrophic forgetting means that after learning new knowledge, the previously learned content is almost completely forgotten. Current research papers on incremental learning mainly consider such a scenario, where the data is divided into multiple tasks for learning, each task contains multiple classes, and the classes contained in each task are disjoint, and the tasks are reached in a sequential manner. The system needs to incrementally update the model to adapt to the new classes. Early incremental learning mainly focused on task incremental learning, that is, learning multiple independent tasks in one model. During testing, the task number is clear, and there is no need to distinguish between classes from different tasks. The model only needs to process a single task separately. With the in-depth research on incremental learning algorithms and the increasing demand for class incremental learning, people have gradually focused on class incremental learning in recent years, and proposed a series of class incremental learning algorithms. Class incremental learning is also trained according to the task sequence, but the network must eventually learn to distinguish all learned classes. The current mainstream incremental learning methods include knowledge distillation, experience replay, and model expansion. The knowledge distillation method adds a distillation loss term based on the cross entropy loss function to constrain model updates so that the output of the student model on the old class is consistent with the new model. The experience replay method retains a small number of old class samples in the memory buffer at the end of each training. During incremental updates, the old class samples in the buffer and the new class samples constitute a training set to update the model parameters. The model expansion method defines two modules in the network: plastic blocks and stable blocks. The plastic blocks have more learnable parameters and are used to learn new classes and expand continuously. The stable blocks have fewer learnable parameters and are used to preserve old class knowledge.
[0005] Traditional individual recognition methods usually require joint training of all data from both the old and new categories when adding new categories of radiation sources. As the number of categories learned increases, more computing and storage resources are consumed, and the time consumed also increases. In view of this situation, it is necessary to study incremental radiation source individual recognition, so that when the recognition system needs to add new radiation source individual categories, it can only use new data and incrementally update the original recognition system. Summary of the invention
[0006] In order to overcome the shortcomings of the prior art, the present invention aims to propose a new method for individual identification of radiation sources. To this end, the technical solution adopted by the present invention is to use a class-incremental radiation source individual identification method based on the knowledge distillation mechanism, form a radiation source individual identification system with a residual neural network as the basic structure, add a self-attention layer after the residual network feature extractor, and modify the last fully connected layer to a cosine similarity layer; when the radiation source individual identification system needs to add a new class, freeze the trained original network as the teacher network, copy the teacher network as the student network, and modify the fully connected layer based on the teacher network parameters, freeze the weights of the old class, add the output head of the new class, and use the new radiation source individual category data to update the parameters;
[0007] The predicted values of the new class data obtained through the teacher network are used as the knowledge distillation pseudo-labels. When the student network updates the model, the distillation loss is used to constrain the model update so that the output of the student model on the old class is consistent with that of the teacher network.
[0008] The detailed steps for adding a new class are as follows:
[0009] Step 1) When the recognition system needs to add a new radiation source category, freeze the trained original network as the teacher network, and copy the teacher network as the student network. The student network freezes the weights of the old category in the cosine normalization layer and adds an output head for the new category.
[0010] Step 2) Input the new radiation source category data into the recognition system, and use the predicted value of the new category data obtained by the teacher network as the knowledge distillation pseudo label. When the student network updates the model, the cross entropy loss function, cosine similarity loss function and distillation loss function are used for fine-tuning at a lower learning rate;
[0011] Step 3) After training is completed, the recognition system is tested on a test set consisting of new and old classes. The trained student model can be used as the teacher model for the next incremental stage.
[0012] Among them, a self-attention layer is added after the last residual block of the residual network, so that the teacher network and the student network pay consistent attention to the area of the old class during knowledge distillation. The added self-attention layer is:
[0013]
[0014] Among them, R t (i,j) represents the local pixel area, q ij =W q x ij represents the query vector, k mn =W k x mn represents the keyword vector, v mn =Wv x mn Represents the word vector, l m-i,n-j Represents the relative position information of each pixel in the local pixel area;
[0015] The fully connected layer is modified to a cosine normalization layer, that is, the weights of the fully connected layer and the output of the feature extractor are normalized, and the cosine distance between the two is used as the output of the corresponding class. The corresponding softmax function is modified to the form of the cosine distance between the weight vector and the feature vector; the learning rate in the initial stage is set to 0.001. When a new class needs to be added, the output head for the new class is added, and the initial weight of the new class is normalized, and the weight of the cosine normalization layer for the old class is frozen;
[0016] After the fully connected layer is modified to a cosine normalization layer, the softmax output p i (x) is calculated as follows:
[0017]
[0018] in and denote the normalized weight vector and feature vector respectively, represents the cosine distance between normalized vectors;
[0019] The data of the new radiation source individual category is input for identification, and the output of the teacher network is used as a pseudo label for distillation loss constraints. Except for the weight of the cosine normalization layer on the old category, the rest of the parameters of the student network are fine-tuned and updated with a learning rate of 0.0001. The network loss function contains three items: cross entropy loss function and cosine normalization loss function. The cosine similarity loss is calculated for the output of the cosine normalization layer;
[0020]
[0021] in, and They represent the normalized features extracted by the teacher network feature extractor and the student network feature extractor respectively;
[0022] The distillation loss function used to constrain the update of the student network model is as follows:
[0023]
[0024] Among them, N o represents the number of old classes, p′(x) is the pseudo label generated by the teacher model for the old class, and p(x) is the probability score generated by the student model after the softmax layer. It is used to improve the fine-grainedness of classification probability, T is a constant;
[0025] Therefore, the total loss function of the network is as follows:
[0026] L(x)=L ce (x)+λL cos (x)+βL dis (x)
[0027] in is the cross entropy loss function, N is all the categories seen by the system so far, λ and β are constants that balance the cosine normalization loss and the distillation loss respectively;
[0028] After training, the recognition system is tested on a test set consisting of new and old classes. The trained student model can be used as the teacher model for the next incremental stage.
[0029] The characteristics and beneficial effects of the present invention are:
[0030] 1. The present invention fully considers the similarity of RF fingerprints between different radiation source individuals, and only uses the individual data of new radiation source categories to incrementally update the network model. The cosine normalization layer is used to map the fingerprint features of the new and old categories to the same hypersphere to avoid the classification probability being biased towards the new category during incremental updates. The cosine similarity loss function and distillation loss function are used to constrain the update of the model, preserve the old category knowledge, and alleviate the catastrophic forgetting problem. In the incremental training process, a low learning rate is used to fine-tune the network weights to prevent the model from quickly forgetting the old category knowledge;
[0031] 2. The present invention adds a self-attention layer in the network feature extractor, so that the teacher network and the student network pay consistent attention to the old class area on the feature map, improving the effect of the distillation loss constraint;
[0032] 3. In the actual application scenario of incremental radiation source individual identification, the technical solution proposed in the present invention is used to incrementally update the radiation source identification system, which can achieve the same effect as the traditional individual identification based on joint training. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the structure of the cosine normalized residual network;
[0034] Figure 2 Schematic diagram of incremental training. DETAILED DESCRIPTION
[0035] The present invention discloses a class-incremental radiation source individual identification method based on a knowledge distillation mechanism. When adding a new radiation source category, the traditional method requires all category samples to be retrained to update the identification system, which consumes computing and storage resources. The present invention proposes a new class-incremental individual identification method, which adds a self-attention layer after the convolutional network feature extractor, replaces the last fully connected layer of the network with a cosine normalization layer, and uses the output of the cosine normalization layer to impose regularization constraints. When updating the system, only the new radiation source individual data is used without accessing the old category data. The proposed method shows good performance on the radiation source individual data set, indicating the effectiveness of the class-incremental individual identification method.
[0036] The present invention provides a class incremental radiation source individual identification method based on knowledge distillation mechanism. Compared with the traditional radiation source individual identification method based on joint training, the present invention fully considers the situation that the fingerprint characteristics of different radiation sources are extremely similar, only uses new class data to update the identification system, and uses various deep learning technologies to prevent the classification results from being biased towards new classes during incremental training, alleviates the catastrophic forgetting problem, and avoids the disadvantage of joint training consuming too much time, storage and computing resources as the number of categories increases. See the following description for details:
[0037] A method for incremental radiation source individual identification based on knowledge distillation mechanism, the method comprising:
[0038] Based on the residual neural network as the basic structure, a self-attention layer is added after the residual network feature extractor, and the last fully connected layer is modified to a cosine similarity layer. When the radiation source individual recognition system needs to add a new class, the trained original network is frozen as the teacher network, and the teacher network is copied as the student network. Based on the parameters of the teacher network, the student network modifies the fully connected layer, freezes the weights of the old class, adds the output head of the new class, and uses the new radiation source individual category data for parameter update;
[0039] The prediction value of the new class data obtained by the teacher network is used as the pseudo label of knowledge distillation. When the student network updates the model, the distillation loss is used to constrain the model update so that the output of the student model on the old class is consistent with that of the teacher network, thereby alleviating the catastrophic forgetting problem. The self-attention layer makes the teacher network and the student network pay attention to the old class area on the feature map in the same way to improve the effect of the distillation loss constraint.
[0040] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention are described in further detail below.
[0041] Example 1
[0042] The embodiment of the present invention provides an incremental radiation source individual identification method based on the knowledge distillation mechanism, see Figure 1and Figure 2 , the method comprises the following steps:
[0043] Step 1) When the recognition system needs to add a new radiation source category, freeze the trained original network as the teacher network, and copy the teacher network as the student network. The student network freezes the weights of the old category in the cosine normalization layer and adds an output head for the new category.
[0044] Step 2) Input the new radiation source category data into the recognition system, and use the predicted value of the new category data obtained by the teacher network as the knowledge distillation pseudo label. When the student network updates the model, the cross entropy loss function, cosine similarity loss function and distillation loss function are used for fine-tuning at a lower learning rate;
[0045] Step 3) After training is completed, the recognition system is tested on a test set consisting of new and old classes. The trained student model can be used as the teacher model for the next incremental stage.
[0046] In summary, the embodiment of the present invention fully considers the similarity between different radiation source individuals through the above steps 1)-3), freezes the output of the cosine normalization layer on the old class to avoid classification biased towards the new class, adopts the cross entropy loss function to learn the new class, and adopts the cosine normalization loss and knowledge distillation loss to preserve the model's knowledge about the old class, which can effectively alleviate the problem of catastrophic forgetting. At the same time, this method only uses new class data to incrementally update the system, avoiding the disadvantages of joint training that consumes too much time, computing, and storage resources.
[0047] Example 2
[0048] The following is a specific calculation formula: Figure 1 and Figure 2 , Example The scheme in Example 1 is further introduced, as described below:
[0049] The network used in this method is modified from the classic residual neural network. Figure 1 )Add a self-attention layer after the last residual block, and modify the last fully connected layer to a cosine normalization layer. In the initial stage, only the cross entropy loss function is used to train the network to obtain a well-trained initial network. In the incremental training stage, the well-trained network is frozen as the teacher network and copied as the student network. Freeze the weights of the student network cosine normalization layer on the old class, use only the new class data as input, and use cross entropy loss, cosine normalization loss and knowledge distillation loss to fine-tune the student network parameters with a low learning rate (see Figure 2 ). The specific steps are as follows:
[0050] Step 1: Add a self-attention layer after the last residual block of the residual network so that the teacher network and the student network pay consistent attention to the old class area during knowledge distillation. The added self-attention layer is:
[0051]
[0052] Among them, R t (i,j) represents the local pixel area, q ij =W q x ij represents the query vector, k mn =W k x mn represents the keyword vector, v mn =W v x mn Represents the word vector, l m-i,n-j Represents the relative position information of each pixel in the local pixel area.
[0053] The fully connected layer is modified to a cosine normalization layer, that is, the weights of the fully connected layer and the output of the feature extractor are normalized, and the cosine distance between the two is used as the output of the corresponding class. The corresponding softmax function is modified to the form of the cosine distance between the weight vector and the feature vector. The learning rate is set to 0.001 in the initial stage. When the system needs to add a new class, an output head for the new class is added, and the initial weight of the new class is normalized, and the weight of the cosine normalization layer for the old class is frozen;
[0054] After the fully connected layer is modified to a cosine normalization layer, the softmax output p i (x) is calculated as follows:
[0055]
[0056] in and denote the normalized weight vector and feature vector respectively, Represents the cosine distance between normalized vectors.
[0057] Step 2: Input the data of the new radiation source individual category into the recognition system, and use the output of the teacher network as a pseudo-label for distillation loss constraints. Except for the cosine normalization layer of the student network, the weights of the old category are frozen, and the remaining parameters are fine-tuned and updated with a learning rate of 0.0001. The network loss function contains three items: cross entropy loss function and cosine normalization loss function. Calculate the cosine similarity loss for the output of the cosine normalization layer;
[0058]
[0059] in, and They represent the normalized features extracted by the teacher network feature extractor and the student network feature extractor respectively.
[0060] The distillation loss function used to constrain the update of the student network model is as follows:
[0061]
[0062] Among them, N o represents the number of old classes, p′(x) is the pseudo label generated by the teacher model for the old class, and p(x) is the probability score generated by the student model after the softmax layer. To improve the granularity of classification probability, T is set to 2.
[0063] Therefore, the total loss function of the network is as follows:
[0064] L(x)=L ce (x)+λL cos (x)+βL dis (x)
[0065] in is the cross entropy loss function, N is all the categories seen so far, λ and β are constants that balance the cosine normalization loss and the distillation loss, respectively, λ is set to 5, and β is set to 2.
[0066] Step 3: After training, the recognition system is tested on a test set consisting of new and old classes. The trained student model can be used as the teacher model for the next incremental stage.
[0067] Example 3
[0068] The feasibility of the solutions in Embodiments 1 and 2 is verified by combining specific examples, as described below:
[0069] The method of the present invention realizes the incremental update of the recognition system on the ads-b individual data set. The ads-b data set is collected by a software radio platform from ads-b signals sent by real commercial aircraft, and each intercepted signal sample is truncated into a complex signal form with a length of 1024. The original signal and the real and imaginary parts after FFT are spliced into a (32,32,3) tensor form as the input of the residual network. The top 100 commercial aircraft categories with less than 500 samples and the most frequent occurrences are filtered out to form a data set, totaling 40,000 samples. The data set is divided into a training set and a test set, with the training set accounting for 70% and the test set accounting for 30%. The classification accuracy of the 100 class data for joint training is 95.41%.
[0070] The 100 categories are divided into 5 tasks. In the initial stage, the first 20 categories are learned to obtain the initial model. Each incremental stage uses 20 new categories for training. The final classification results are shown in the following table:
[0071] Table 1 Performance of this method on the ads-b dataset
[0072]
[0073] As shown in the table above, since this method only uses new class data to incrementally update the network, as new classes are gradually added, the accuracy on old classes decreases, and the accuracy of all classes also decreases, but all are within an acceptable range. After incremental stage 4, the network's accuracy on all 100 classes is 87.98%, which is comparable to the 95.41% accuracy of jointly training all data of 100 classes. At the same time, this method only uses new class data to update the network each time. As the number of learned classes increases, the computation, storage, and training time consumed are relatively less compared to joint training.
[0074] In summary, compared with the traditional radiation source individual identification algorithm based on joint training, the embodiment of the present invention fully considers the situation that the individual RF fingerprints of different radiation sources are highly similar, better preserves the knowledge of old categories in incremental updates, and finally achieves performance comparable to joint training.
[0075] Unless otherwise specified, the models of the components in the embodiments of the present invention are not limited, and any device that can perform the above functions may be used.
[0076] Those skilled in the art will appreciate that the accompanying drawing is only a schematic diagram of a preferred embodiment, and the serial numbers of the embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0077] The above description is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.
Claims
1. A quasi-incremental radiation source individual identification method based on knowledge distillation mechanism, characterized in that: The radiation source individual recognition system is formed based on the residual neural network as the basic structure. A self-attention layer is added after the residual network feature extractor, and the last fully connected layer is modified to a cosine similarity layer. When the radiation source individual recognition system needs to add a new class, the trained original network is frozen as the teacher network, and the teacher network is copied as the student network. Based on the parameters of the teacher network, the student network modifies the fully connected layer, freezes the weights of the old class, adds the output head of the new class, and uses the new radiation source individual category data to update the parameters. The predicted values of the new class data obtained by the teacher network are used as pseudo labels for knowledge distillation. When the student network updates the model, the distillation loss is used to constrain the model update so that the output of the student model on the old class is consistent with that of the teacher network. The detailed steps for adding a new class are as follows: Step 1) When the recognition system needs to add a new radiation source category, freeze the trained original network as the teacher network, and copy the teacher network as the student network. The student network freezes the weights of the old category in the cosine normalization layer and adds an output head for the new category. Step 2) Input the new radiation source category data into the recognition system, and use the predicted value of the new category data obtained by the teacher network as the knowledge distillation pseudo label. When the student network updates the model, the cross entropy loss function, cosine similarity loss function and distillation loss function are used for fine-tuning at a lower learning rate; Step 3) After training is completed, the recognition system is tested on a test set consisting of new and old classes. The trained student model can be used as the teacher model for the next incremental stage.
2. The method for identifying quasi-incremental radiation sources based on knowledge distillation mechanism as claimed in claim 1, wherein: A self-attention layer is added after the last residual block of the residual network so that the teacher network and the student network pay consistent attention to the area of the old class during knowledge distillation. The added self-attention layer is: Among them, R t (i,j) represents the local pixel area, q ij =W q x ij represents the query vector, k mn =W k x mn represents the keyword vector, v mn =W v x mn Represents the word vector, l m-i,n-j Represents the relative position information of each pixel in the local pixel area; The fully connected layer is modified to a cosine normalization layer, that is, the weights of the fully connected layer and the output of the feature extractor are normalized, and the cosine distance between the two is used as the output of the corresponding class. The corresponding softmax function is modified to the form of the cosine distance between the weight vector and the feature vector; the learning rate in the initial stage is set to 0.
001. When a new class needs to be added, the output head for the new class is added, and the initial weight of the new class is normalized, and the weight of the cosine normalization layer for the old class is frozen; After the fully connected layer is modified to a cosine normalization layer, the softmax output p i (x) is calculated as follows: in and denote the normalized weight vector and feature vector respectively, represents the cosine distance between normalized vectors; The data of the new radiation source individual category is input for identification, and the output of the teacher network is used as a pseudo label for distillation loss constraints. Except for the weights of the cosine normalization layer on the old category of the student network, the remaining parameters are fine-tuned and updated with a learning rate of 0.0001. The network loss function contains three items: cross entropy loss function and cosine normalization loss function; Calculate the cosine similarity loss on the output of the cosine normalization layer; in, and Respectively represent the normalized features extracted by the teacher network feature extractor and the student network feature extractor; The distillation loss function used to constrain the update of the student network model is as follows: Among them, N o represents the number of old classes, p′(x) is the pseudo label generated by the teacher model for the old class, and p(x) is the probability score generated by the student model after the softmax layer. It is used to improve the fine-grainedness of classification probability, T is a constant; Therefore, the total loss function of the network is as follows: L(x)=L ce (x)+λL cos (x)+βL dis (x) in is the cross entropy loss function, N is all the categories seen by the system so far, λ and β are constants that balance the cosine normalization loss and the distillation loss respectively; After training, the recognition system is tested on a test set consisting of new and old classes. The trained student model can be used as the teacher model for the next incremental stage.
