Robust radio frequency fingerprint identification method based on cross attention

The robust RF fingerprint identification method through cross-attention uses piecewise logarithmic spectral embedding and multi-head cross-attention mechanisms to separate channel features and hardware features, solving the problem of reduced recognition accuracy caused by changes in channel conditions, and achieving higher Recognition accuracy and robustness.

CN118612744AActive Publication Date: 2024-09-06XIAN UNIV OF TECH

Patent Information

Application Number
CN202410686094.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-06
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing radio frequency fingerprint identification methods lead to reduced recognition accuracy when channel conditions change, and channel feature removal methods require a priori information and are insufficiently effective.

Method used

A robust RF fingerprint identification method based on cross-attention is adopted, and channel characteristics and hardware characteristics are separated through piecewise logarithmic spectral embedding and multi-head cross-attention mechanisms, and a cross-Transformer model is constructed to improve recognition accuracy.

Benefits of technology

It effectively improves the accuracy of radio frequency fingerprint identification, especially when the channel conditions change, and significantly improves the robustness of device identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612744A
    Figure CN118612744A
Patent Text Reader

Abstract

The invention discloses a robust radio frequency fingerprint identification method based on cross attention, and the method is specifically implemented according to the following steps: 1, obtaining a signal of wireless communication equipment, and obtaining a segmented logarithmic spectrum of the signal; 2, performing sliding window operation on the segmented logarithmic spectrum in the step 1, constructing a segmented logarithmic spectrum embedding mode, adding an absolute position code, and constructing an embedding module; step 3, taking two frames of data of the same equipment beyond the channel correlation time, operating according to the step 1 to the step 2, and sending an output result into a coding module; step 4, sending an output result of the coding module into a classification network to obtain a classification probability; and step 5, constructing an overall network model according to the steps 1-4, training the network by using the training sample set, and testing the network effect by using the test sample to obtain the recognition accuracy. According to the method, the problem of relatively poor robustness when channel conditions are different in an actual scene is solved, and the identification accuracy of equipment is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of radio frequency fingerprint recognition methods, and in particular relates to a robust radio frequency fingerprint recognition method based on cross attention. Background Art

[0002] The open nature of wireless transmission leads to many threats in terms of security, such as being vulnerable to attacks from illegal devices. To ensure the security of wireless transmission, the access security of wireless transmission devices must be guaranteed first. Traditional device security authentication is achieved through key encryption or identity authentication based on software addresses such as MAC / IP, but keys or identity tags are at risk of being cracked or copied, so new security authentication methods need to be found to improve network security. RF fingerprints come from the hardware differences inside wireless devices. They are unique and difficult to tamper with. They can be used as a basis for identifying different wireless devices. They are a reliable and lightweight wireless communication device security authentication method.

[0003] In the field of RF fingerprint recognition, the powerful nonlinear representation and learning capabilities of deep neural networks enable them to directly learn high-level features from raw signals with complex structures, effectively extracting RF fingerprints that can characterize the essential characteristics of the device. Neural networks are data-driven models, so in order to obtain better generalization and recognition performance, RF fingerprint recognition methods based on deep neural networks require higher-quality training data and deeper network models. However, in actual scenarios, when the RF signals in the training and recognition stages experience different channel conditions due to different acquisition times and locations, the distribution of the collected data will drift, greatly reducing the accuracy of RF fingerprint recognition.

[0004] To solve this problem, most existing research focuses on channel feature removal: using relevant algorithms to remove the influence of the transmission channel as much as possible in the received signal, while retaining the part related to the hardware device. However, this type of method requires prior information about the known signal, and there is also the possibility that the channel influence is not completely removed, or the original hardware fingerprint of the device is blurred in the process of removing the channel influence. Summary of the invention

[0005] The purpose of the present invention is to provide a robust radio frequency fingerprint recognition method based on cross attention, which can effectively improve the recognition accuracy of the device.

[0006] The technical solution adopted by the present invention is a robust radio frequency fingerprint recognition method based on cross attention, which is specifically implemented according to the following steps:

[0007] Step 1: Acquire a signal of a wireless communication device and obtain a segmented logarithmic spectrum of the signal;

[0008] Step 2, performing a sliding window operation on the segmented logarithmic spectrum in step 1, constructing a segmented logarithmic spectrum embedding method, adding absolute position coding, and constructing an embedding module;

[0009] Step 3, take two frames of data of the same device outside the channel correlation time, operate according to steps 1 to 2, and send the output result to the encoding module;

[0010] Step 4: Send the output result of the encoding module to the classification network to obtain the classification probability;

[0011] Step 5: Build the overall network model using steps 1 to 4, use the training sample set to train the network, and use the test sample to test the network effect to obtain the recognition accuracy.

[0012] The technical solution of the present invention is also characterized in that:

[0013] Step 1 is implemented as follows:

[0014] Step 1.1: Get the signal of the wireless communication device, expressed as:

[0015] y[n]=h[n]*f(x[n])+n0[n] (1)

[0016] Where y[n] is the digital signal obtained after analog-to-digital conversion of the received signal; x[n] is the signal transmitted by the wireless communication device; n0[n] is the additive white Gaussian noise; h[n] is the time-varying impulse response of the wireless channel experienced by the transmitted signal; f(·) represents the impact of the transmitter hardware device on the signal; * represents the convolution operation; n is the serial number of the received signal;

[0017] Step 1.2, calculate and perform short-time Fourier transform on the signal to obtain a piecewise logarithmic spectrum;

[0018] By performing short-time Fourier transform on the discrete input signal y[n], we can obtain:

[0019]

[0020] Where: S[k,m] is the complex matrix obtained after STFT of y[n] The k-th row and m-th column element of ; w[·] is the window function, and a rectangular window is selected here; N is the number of points for FFT in each segment.

[0021] Step 2 is implemented as follows:

[0022] Step 2.1: Take a sliding window of the piecewise log spectrum with a window length of l w , the number of sliding points is r, and the block sequence matrix is:

[0023] P=[p1,p2,…,pK ] T (3)

[0024] Where: M is the number of segmented logarithmic spectrum series; K = M × ((Nl w ) / r+1) represents the number of block sequences that can be formed after the piecewise log spectrum is windowed; after the division, p k Represents different frequency bands in the segmented logarithmic spectrum of the signal in different time periods;

[0025] Step 2.2: Add absolute position coding to the block sequence vector after block division so that the block sequence vector contains position information;

[0026] The i-th element in the position sequence obtained by encoding the position of each element can be expressed as:

[0027]

[0028] Among them, t represents the number of each position; θ i The artificially set frequency for each position;

[0029] θ i =10000 -2i / d (5)

[0030] Here, d represents the dimension of the input passed through the embedding module.

[0031] Step 3 is as follows: take two frames of data from the same device outside the channel-related time and perform multi-head cross attention after SLSE to build a coding module.

[0032] Constructing the encoding module specifically includes:

[0033] Calculate the cross-attention values ​​of different frequency bands in the segmented logarithmic spectrum of the signal in different time periods:

[0034]

[0035] Among them, W Q ,W K ,W V is the query matrix, key matrix and value matrix, (Q, K, V) of the learnable weight matrix, P a , P b From different frames After SLSE embedding, the dimension is d k ;

[0036] Perform multi-head partition on Q, K, V in the second dimension to obtain h heads:

[0037] head i =CA(Q i,K i ,V i ),i∈[1,h] (7)

[0038] Concatenate the output matrices of each head along the last dimension:

[0039] MHCA(P a ,P b )=concat(head1,head2,…,head h ) (8)

[0040] Then a feed-forward network module is added after each MHCA.

[0041] The beneficial effects of the present invention are:

[0042] 1) The present invention proposes a fingerprint feature separation algorithm based on the piecewise logarithmic spectrum similarity measurement, which is based on the different causes and characteristics of the channel-related part and the hardware-related part in the fingerprint feature, and separates the two by calculating the piecewise logarithmic spectrum similarity of the RF signal, thereby retaining the hardware features and weakening the channel features.

[0043] 2) The present invention proposes a cross Transformer model, which adopts a piecewise log spectrum embedding method and a multi-head cross attention mechanism to replace the original embedding method and self-attention mechanism, so that the model pays more attention to the part that effectively reflects the essential characteristics of the device, fully extracts the hardware features and weakens the channel features, and realizes channel-robust RF fingerprint recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A network result model of the robust radio frequency fingerprint recognition method based on cross attention of the present invention;

[0045] Figure 2 This is a comparison chart of the recognition accuracy of the robust RF fingerprint recognition method based on cross attention in the present invention, the traditional method, and the method with only SLSE under different signal-to-noise ratios. DETAILED DESCRIPTION

[0046] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0047] The present invention is based on the cross-attention robust radio frequency fingerprint recognition method, such as Figure 1 As shown in the figure, after calculating the segmented logarithmic spectrum of the original IQ data, it can be sent to the classification network to calculate the recognition accuracy after passing through the embedding module and two encoding modules. In the training phase of the network, it is necessary to take two frames of data outside the channel correlation time, calculate its segmented logarithmic spectrum, pass through the embedding module, and send the output of the two frames of embedding modules to the encoding module at the same time, and finally pass through the classification module to obtain the classification probability, so as to train the network parameters.

[0048] The robust radio frequency fingerprint recognition method based on cross attention is implemented in the following steps:

[0049] Step 1: Acquire a signal of a wireless communication device and obtain a segmented logarithmic spectrum of the signal;

[0050] Step 1 is implemented as follows:

[0051] Step 1.1: Get the signal of the wireless communication device, expressed as:

[0052] y[n]=h[n]*f(x[n])+n0[n] (1)

[0053] Where y[n] is the digital signal obtained after analog-to-digital conversion of the received signal; x[n] is the signal transmitted by the wireless communication device; n0[n] is the additive white Gaussian noise; h[n] is the time-varying impulse response of the wireless channel experienced by the transmitted signal; f(·) represents the impact of the transmitter hardware device on the signal; * represents the convolution operation; n is the serial number of the received signal;

[0054] Step 1.2, calculate and perform short-time Fourier transform on the signal to obtain a piecewise logarithmic spectrum;

[0055] By performing short-time Fourier transform on the discrete input signal y[n], we can obtain:

[0056]

[0057] Where: S[k,m] is the complex matrix obtained after STFT of y[n] The element in the kth row and mth column of ; w[·] is the window function, and a rectangular window is selected here; N is the number of points for FFT in each segment;

[0058] Step 2, performing a sliding window operation on the segmented logarithmic spectrum in step 1, constructing a segmented logarithmic spectrum embedding method (SLSE), adding absolute position encoding, and constructing an embedding module;

[0059] Step 2 is implemented as follows:

[0060] Step 2.1: Take a sliding window of the piecewise log spectrum with a window length of l w , the number of sliding points is r, and the block sequence matrix is:

[0061] P=[p1,p2,…,p K ] T (3)

[0062] Where: M is the number of segmented logarithmic spectrum series; K = M × ((Nl w) / r+1) represents the number of block sequences that can be formed after the piecewise log spectrum is windowed; after the division, p k Represents different frequency bands in the segmented logarithmic spectrum of the signal in different time periods;

[0063] Step 2.2: Add absolute position coding to the block sequence vector after block division so that the block sequence vector contains position information;

[0064] The i-th element in the position sequence obtained by encoding the position of each element can be expressed as:

[0065]

[0066] Among them, t represents the number of each position; θ i The artificially set frequency for each position;

[0067] θ i =10000 -2i / d (5)

[0068] Where d represents the dimension of the input after the embedding module;

[0069] Step 3, take two frames of data of the same device outside the channel correlation time, operate according to steps 1 to 2, and send the output result to the encoding module;

[0070] Step 3 is as follows: take two frames of data from the same device outside the channel correlation time and perform multi-head cross attention (MHCA) after SLSE to build a coding module; specifically, it includes:

[0071] Calculate the cross-attention values ​​of different frequency bands in the segmented logarithmic spectrum of the signal in different time periods:

[0072]

[0073] Among them, W Q ,W K ,W V is the query matrix, key matrix and value matrix, (Q, K, V) of the learnable weight matrix, P a , P b From different frames After SLSE embedding, the dimension is d k ;

[0074] Perform multi-head partition on Q, K, V in the second dimension to obtain h heads:

[0075] head i =CA(Q i ,K i ,V i),i∈[1,h] (7)

[0076] Concatenate the output matrices of each head along the last dimension:

[0077] MHCA(P a ,P b )=concat(head1,head2,…,head h ) (8)

[0078] Then a feed-forward network module (FFN) is added after each MHCA;

[0079] Step 4: Send the output result of the encoding module to the classification network to obtain the classification probability;

[0080] Step 5: Build the overall network model using steps 1 to 4, use the training sample set to train the network, and use the test sample to test the network effect to obtain the recognition accuracy.

[0081] Example 1

[0082] In the field of RF fingerprint recognition, deep neural networks can effectively extract RF fingerprints that can characterize the essential characteristics of a device. In order to obtain better generalization and recognition performance, RF fingerprint recognition methods based on deep neural networks require higher-quality training data and deeper network models. However, in actual scenarios, when the RF signals in the training and recognition stages experience different channel conditions due to different acquisition times and locations, the distribution of the collected data will drift, greatly reducing the accuracy of RF fingerprint recognition. Therefore, it is necessary to improve the robustness of the RF fingerprint recognition method.

[0083] Example 2

[0084] Robust RF fingerprint recognition method based on cross attention, in step 1, w[·] is a window function, the window length is W, and the sliding distance is R. Here, a rectangular window is selected, that is:

[0085]

[0086] Let the input be y[n], and get the STFT complex matrix without considering the noise:

[0087]

[0088] in:

[0089] X m =[X 1,m ,X 2,m ,…,X N,m ] Trepresents the ideal spectrum of the mth signal after y[n] is divided by the sliding window; H m =[H 1,m ,H 2,m ,…,H N,m ] T represents the channel response experienced by the mth segment of the signal y[n]; ⊙ is the element-wise multiplication operation; F(·) is the effect of the transmitter hardware on the RF signal in the frequency domain.

[0090] Take the amplitude of each element of S and convert it from a linear scale to a logarithmic scale to obtain a piecewise logarithmic spectrum:

[0091]

[0092] in: for The column vector of the matrix; lg(·) means performing a base 10 logarithm operation on each element in the matrix; |·| means taking the absolute value of each element in the matrix.

[0093] Ignore W in step 3 Q ,W K ,W V The cross attention value becomes:

[0094]

[0095] in, It is expressed as the similarity between different frequency bands of the same device in different time periods.

[0096] Example 3

[0097] The recognition accuracy of the method of the present invention is compared with that of the traditional method and the method with only SLSE under different signal-to-noise ratios. The traditional method refers to using Vision Transformer as the benchmark model, dividing the matrix after short-time Fourier transform into blocks and then flattening it as a vector of block sequence, and using the original multi-head attention module in Vision Transformer. The method with only SLSE adopts the SLSE proposed by the present invention in Vision Transformer, but still retains the original multi-head self-attention mechanism. The proposed method is the method of the present invention.

[0098] The data used comes from the WiSig public dataset, which contains data subsets D1, D2, D3, and D4 collected by 6 devices on March 1, 8, 15, and 23, 2022, with 1,000 preamble data for each transmitter, totaling 6,000. Since the time interval between each two sets of data collection is at least one week, the channel conditions experienced by the transmission signals in different data subsets must have changed.

[0099] Since the signal-to-noise ratio of the signal in the data set is greater than 10dB, Gaussian white noise is added to the original data. Figure 2 The signal-to-noise ratio in is the ratio of the power of the original received signal to the added artificial noise. The actual signal-to-noise ratio of the signal after adding noise is less than this value. The data of D1 is used for training, and the data of D4 is used for the test set. The results show that the recognition accuracy of the method using only SLSE is higher than that of the traditional method, and the proposed method has the highest recognition accuracy. Under low signal-to-noise ratio, the proposed method has a more obvious improvement than the other two methods.

Claims

1. A robust radio frequency fingerprint recognition method based on cross attention, characterized in that: Follow the steps below to implement it: Step 1: Acquire a signal of a wireless communication device and obtain a segmented logarithmic spectrum of the signal; Step 2, performing a sliding window operation on the segmented logarithmic spectrum in step 1, constructing a segmented logarithmic spectrum embedding method, adding absolute position coding, and constructing an embedding module; Step 3, take two frames of data of the same device outside the channel correlation time, operate according to steps 1 to 2, and send the output result to the encoding module; Step 4: Send the output result of the encoding module to the classification network to obtain the classification probability; Step 5: Build the overall network model using steps 1 to 4, use the training sample set to train the network, and use the test sample to test the network effect to obtain the recognition accuracy.

2. The cross-attention based robust radio frequency fingerprint recognition method according to claim 1, characterized in that: The step 1 is specifically implemented according to the following steps: Step 1.1: Get the signal of the wireless communication device, expressed as: y[n]=h[n]*f(x[n])+n0[n] (1) Where y[n] is the digital signal obtained after analog-to-digital conversion of the received signal; x[n] is the signal transmitted by the wireless communication device; n0[n] is the additive white Gaussian noise; h[n] is the time-varying impulse response of the wireless channel experienced by the transmitted signal; f(·) represents the impact of the transmitter hardware device on the signal; * represents the convolution operation; n is the serial number of the received signal; Step 1.2, calculate and perform short-time Fourier transform on the signal to obtain a piecewise logarithmic spectrum; By performing short-time Fourier transform on the discrete input signal y[n], we can obtain: Where: S[k,m] is the complex matrix obtained after STFT of y[n] The k-th row and m-th column element of ; w[·] is the window function, and a rectangular window is selected here; N is the number of points for FFT in each segment.

3. The cross-attention based robust radio frequency fingerprint recognition method according to claim 1, characterized in that: The step 2 is specifically implemented according to the following steps: Step 2.1: Take a sliding window of the piecewise log spectrum with a window length of l w , the number of sliding points is r, and the block sequence matrix is: P=[p1,p2,…,p K ] T (3) Where: M is the number of segmented logarithmic spectrum series; K = M × ((Nl w ) / r+1) represents the number of block sequences that can be formed after the piecewise log spectrum is windowed; after the division, p k Represents different frequency bands in the segmented logarithmic spectrum of the signal in different time periods; Step 2.2: Add absolute position coding to the block sequence vector after block division so that the block sequence vector contains position information; The i-th element in the position sequence obtained by encoding the position of each element can be expressed as: Among them, t represents the number of each position; θ i The artificially set frequency for each position; i i =10000 -2i / d (5) Here, d represents the dimension of the input passed through the embedding module.

4. The cross-attention based robust radio frequency fingerprint recognition method according to claim 1, characterized in that: The step 3 is specifically as follows: taking two frames of data from the same device outside the channel correlation time and performing multi-head cross attention after SLSE to construct a coding module.

5. The cross-attention based robust radio frequency fingerprint recognition method according to claim 4, characterized in that: Constructing the encoding module specifically includes: Calculate the cross-attention values ​​of different frequency bands in the segmented logarithmic spectrum of the signal in different time periods: Among them, W Q ,W K ,W V is the query matrix, key matrix and value matrix, (Q, K, V) of the learnable weight matrix, P a , P b From different frames After SLSE embedding, the dimension is d k ; Perform multi-head partition on Q, K, V in the second dimension to obtain h heads: head i =CA(Q i ,K i ,V i ),i∈[1,h] (7) Concatenate the output matrices of each head along the last dimension: MHCA(P a ,P b )=concat(head1,head2,…,head h ) (8) Then a feed-forward network module is added after each MHCA.

Citation Information

Patent Citations

  • RF fingerprint identification method and device based on embedded wireless equipment

    CN113347637A

  • Wireless access mode intelligent identification system and method based on OOT module design

    CN116916360A

  • Radio frequency fingerprint identification based on time-frequency conversion and complex-valued multi-head attention mask mechanism

    CN117648626A

  • KR20220050758A

Cited By

  • Radio frequency fingerprint identification method and system based on convolution-attention mechanism and multi-packet reasoning

    CN120337998A

  • Radio frequency fingerprint recognition method and system based on convolution-attention mechanism and multi-packet inference

    CN120337998B