A method for constructing a UAV time-frequency spectrum database based on time-domain energy threshold screening
By constructing a time-frequency spectrum database containing samples of multiple UAV types and performing energy threshold screening, the problem of small data application range and insufficient amount of information is solved, and efficient UAV identification system performance improvement and resource saving are achieved.
Patent Information
- Application Number
- CN202210541084.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-05-17
AI Technical Summary
In the existing technology, the data application range of UAV time-frequency spectrum database is narrow, and the amount of sample information is insufficient, resulting in poor performance of the UAV identification system, and each training requires re-acquisition of signals, which consumes manpower and material resources.
By performing STFT transformation on UAV communication signals, a time-frequency spectrum database containing 228,881 samples of 20 UAV types was constructed, and effective samples were screened based on the time domain energy threshold to build an efficient and information-rich database.
It expands the applicable scope of data, saves collection resources, improves the performance of the UAV identification system and database quality, and ensures the accuracy of subsequent detection and identification.
Smart Images

Figure CN114912491B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of signal processing technology, and further relates to a method for constructing a drone time-frequency spectrum database based on time domain energy threshold screening in the field of drone target detection and identification technology. The present invention can be used to construct a database for drone model identification, and screen samples in the database to improve the quality of the database, so as to provide a complete and efficient data set for subsequent drone detection and identification. Background Art
[0002] The time-frequency spectrum of the downlink image transmission signal of the drone usually contains the time domain information and frequency domain information of the drone's RF signal, and the time-frequency spectrum texture of different types of drones needs to have different characteristics. Therefore, the quality of the time-frequency spectrum information of the drone communication signal is the key to the subsequent target recognition performance. With the popularization of civil drones, the urban security system needs to perform real-time detection and identification of illegally flying drones based on the database constructed by the drone time-frequency spectrum. However, it is time-consuming and laborious to regenerate the data set every time a new target recognition system is trained. Therefore, it is necessary to use the drone communication signal data to construct a time-frequency spectrum database for subsequent drone detection and identification.
[0003] Chengtao Xu et al. published a method for detecting micro UAVs using the time-frequency spectrum of UAV RF signals in their paper "Adaptive RF Fingerprint Decomposition in Micro UAV Detection based on Machine Learning" (IEEE International Conference on Acoustics, Speech and Signal Processing, May 2021). This method first uses the EMD and EEMD algorithms to extract RF fingerprint features from the UAV sampling signal, and then performs a short-time Fourier transform (STFT) on the feature-extracted signal, and sends it to the machine learning identifier to obtain the final UAV type identification result. The disadvantage of this method is that it needs to collect UAV signals to generate UAV time-frequency spectra every time it identifies a UAV, which consumes a lot of manpower and material resources, and the generated UAV time-frequency spectrum is only applicable to specific tasks limited by the UAV that collects the data, resulting in a narrow scope of data applicability.
[0004] Chengdu Dagong Bochuang Information Technology Co., Ltd. disclosed in its patent application "Low-speed, slow, and small drone identification method and system based on deep learning" (patent application number: CN202111413098.X, application publication number: CN114169367A) a method for drone identification by using the time-frequency diagram of the drone radio frequency communication signal processed by an anti-interference algorithm. The method first delays and de-jitters the received drone acquisition data, removes abnormal data values, and obtains the preferred signal data. Then, the preferred signal is transformed in time and frequency to obtain the signal time-frequency diagram, and finally a deep learning convolutional neural network model is used to realize drone classification and identification. The disadvantage of this method is that the samples in the drone time-frequency map database contain a small amount of information, so that the subsequent target detection and recognition system can extract less useful information from the database, which affects the performance of the subsequent drone detection and recognition system. Summary of the invention
[0005] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose a method for constructing a UAV time-frequency spectrum database based on time-domain energy threshold screening, which is used to solve the problem that the data collected by UAVs for specific tasks has a narrow scope of application, and the UAV time-frequency spectrum samples contain less information and the classification system has poor recognition performance.
[0006] The idea of realizing the purpose of the present invention is: the present invention performs STFT transformation on the sampling points of the drone communication signal, and constructs a drone time-frequency spectrum database, which contains 20 types of drones, and each drone contains 228,881 samples, so that the database type constructed by the present invention is comprehensive and the number of samples is sufficient, which can be directly applied to the system for detection and identification based on the drone time-frequency spectrum, saving the manpower and material resources required for collection, and expanding the application scope of the data. The present invention can screen the effective samples with more information in the database with a larger number of samples according to the proportion of useful signals in the drone time-frequency spectrum in the time domain dimension, by setting the time domain energy threshold, and only retain the samples with more information, and discard the samples with less information and more redundancy. Through the screening method of the present invention, the drone time-frequency spectrum database finally constructed contains an efficient database with more information, which provides guarantee for the performance of the subsequent target detection and recognition system.
[0007] The specific steps of the present invention are as follows:
[0008] Step 1: Collect drone signals:
[0009] Collect at least 20 types of drones, with at least one drone of each type. Each drone collects a long sampling sequence of length K in each channel, where K ≥ 3 × 10 10 ;
[0010] Step 2, generate the time-frequency matrix:
[0011] Each long sampling sequence is evenly divided at intervals of L to obtain x short sampling sequences after each long sampling sequence is divided, L = 131072 elements, x ≥ 228881; each short sampling sequence is subjected to STFT transformation to obtain the time-frequency matrix corresponding to each short sampling sequence;
[0012] Step 3: Construct the initial UAV time-frequency spectrum database:
[0013] Step 3.1, label the type of drone corresponding to the time-frequency matrix as V, the channel label as C, and the number of time-frequency matrices in each channel of each drone as O. Name each time-frequency matrix in the format of V_C_O;
[0014] Step 3.2, according to the type of drone, store the time-frequency matrices of the same type of drones in the same folder. The name of each folder is named with the label corresponding to the type of drone to which the time-frequency matrix stored in the folder belongs. Store the address of each time-frequency matrix in the folder and the type label of the drone in the original drone time-frequency spectrum database to complete the construction of the initial drone time-frequency spectrum database.
[0015] Step 4: Calculate the energy threshold of each time-frequency matrix according to the following formula:
[0016]
[0017] Among them, τ p represents the energy threshold of the pth time-frequency matrix, M represents the dimension of the time domain in the STFT transform, which corresponds to the number of rows of the time-frequency matrix, N represents the dimension of the frequency domain in the STFT transform, which corresponds to the number of columns of the time-frequency matrix, Σ represents the summation operation, and Y p (g,h) represents the element in the g-th row and h-th column of the p-th time-frequency matrix;
[0018] Step 5, performing a binarization operation on each time-frequency matrix;
[0019] Step 6, calculate the useful signal time proportion of each time-frequency matrix:
[0020] Step 6.1, calculate the bandwidth of the drone signal in each time-frequency spectrum:
[0021] Step 6.2, calculate the useful signal time proportion of each time-frequency matrix according to the following formula:
[0022]
[0023] Among them, R ep Indicates the useful signal time proportion of the pth time-frequency matrix, F s The rate at which the USRP X310's RF front end converts analog signals into digital signals, f e p represents the column number of the signal termination column in the pth time-frequency matrix, f b p Indicates the column number of the starting column of the signal in the pth time-frequency matrix, Ψ p (g′,h′) represents the element in the gth row and hth column of the pth time-frequency matrix. After the binarization operation, the element in the g′th row and h′th column of the time-frequency matrix is obtained. p represents the signal bandwidth of the UAV corresponding to the pth time-frequency matrix;
[0024] Step 7: Filter the initial UAV time-frequency spectrum database:
[0025] Step 7.1, in the range of [0.2, 0.4], determine the threshold λ according to the sample size and the quality requirements of the database. The value of λ is proportional to the sample size and the quality requirements of the database to be constructed;
[0026] Step 7.2, remove the time-frequency matrices whose useful signal time ratio is less than the threshold λ in the initial UAV time-frequency spectrum database to obtain the UAV time-frequency spectrum database.
[0027] Compared with the prior art, the present invention has the following advantages:
[0028] First, since the present invention constructs a database containing 20 types of drones, each of which contains 228,881 samples, it overcomes the problem of resource waste caused by the need to re-collect drone signals for specific drone identification tasks in the prior art, as well as the problem of a small scope of application of the data set generated for specific identification tasks. The drone time-frequency spectrum database constructed by the present invention can be directly applied to systems for detection and identification based on drone time-frequency spectrum, reducing the manpower and material resources required to construct a specific database in a specific drone identification task.
[0029] Second, since the drone time-frequency spectrum database constructed by the present invention is a database that has been screened by the useful signal time ratio of the time-frequency matrix, it overcomes the problem that the prior art uses an unprocessed drone time-frequency spectrum data set with redundancy, which causes the sample in the data set to contain a small amount of information, resulting in poor quality of the drone time-frequency spectrum database. The samples in the time-frequency spectrum database constructed by the present invention contain a high amount of information, less redundancy, and a high database quality, which has better performance when used for subsequent detection and identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1is a flow chart of the present invention;
[0031] Figure 2 is a scene graph of the present invention;
[0032] Figure 3 It is a simulation diagram of the present invention. DETAILED DESCRIPTION
[0033] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0034] Reference Figure 1 The implementation steps of the present invention are further described in detail in the following embodiments.
[0035] Step 1: Collect drone signals.
[0036] Step 1.1, set up the UAV working environment and signal acquisition equipment to prepare for subsequent signal acquisition work.
[0037] In the embodiment of the present invention, 20 drones of 20 different types are selected, and each type corresponds to one drone. Each drone works on two channels, namely, channel 153 and channel 161 under 5.8 GHz. The models and types of drones and their corresponding channels are shown in Table 1.
[0038] Table 1. UAV information table
[0039]
[0040]
[0041] Reference Figure 2 The working principle of the signal acquisition equipment and the UAV in the embodiments of the present invention is further described.
[0042] Place each drone in Table 1 at a height of 100 meters from the signal collection equipment. Figure 2 The universal software radio peripheral USRP X310 (Universal Software Radio Peripheral) in the computer is connected to the computer via optical fiber. The GNU radio platform in the computer controls the USRP X310 and stores the communication signals received from each drone in the computer memory.
[0043] In step 1.2, long sampling sequences of each drone are collected under channels 153 and 161 respectively.
[0044] In the first step, GNU Radio is used to control USRP to collect the drone communication signals of each drone on channel 153 at a sampling rate of 100 Msa / s for 5 minutes. A long sampling sequence with a sampling length of K for 20 drones is obtained and stored in the computer memory.
[0045] In the second step, GNU Radio is used to control USRP to collect the drone communication signals of each drone under channel 161 at a sampling rate of 100 Msa / s for 5 minutes, and a long sampling sequence with a sampling length of K for 20 drones is obtained and stored in the computer memory.
[0046] Step 2: construct the time-frequency matrix.
[0047] Each long sampling sequence is evenly divided at intervals of L to obtain x short sampling sequences after each long sampling sequence is divided. Each short sampling sequence is subjected to STFT transformation to obtain the time-frequency matrix corresponding to each short sampling sequence.
[0048] In the embodiment of the present invention, L=131072 elements, x=228881, and STFT transformation is performed on each short sampling sequence according to the following formula:
[0049]
[0050] in, represents the time-frequency matrix of m rows and n columns generated by the p-th short sampling sequence after STFT transformation, 1≤f≤228881, 0≤m≤M-1, 0≤n≤N-1, M represents the dimension of the time domain in STFT transformation, M=256, N represents the dimension of the frequency domain in STFT transformation, N=512, Σ represents the summation operation, y p (i) represents the i-th element in the p-th short sampling sequence, w(·) represents the Hamming window function, d represents the length of the STFT transform sliding, d = N, e (·) It represents the exponential operation with natural number e as base, j represents the imaginary unit symbol, and π represents pi.
[0051] Step 3: construct a time-frequency matrix database.
[0052] According to the type V of the drone to which the time-frequency matrix belongs, the channel C it is in and the Oth time-frequency matrix it is in, each time-frequency matrix is named in the format of V_C_O, and each named time-frequency matrix is stored in the corresponding folder named V according to the number V in the name, and the time-frequency matrix address and identification label in the folder are stored in the time-frequency spectrum database, and finally the time-frequency spectrum database is obtained.
[0053] In an embodiment of the present invention, each time-frequency matrix is named in the format of V_C_O according to the type of drone, channel information and the number of time-frequency matrices, so as to distinguish each time-frequency matrix of different drone models under different channels, wherein V represents the identification label of 20 types of drones, 0≤V≤19, C represents the 153 and 161 channels of the drone, wherein C is 0 for channel 153 and C is 1 for channel 161, and O represents a total of 228881 time-frequency matrices of a drone under a certain channel, 1≤O≤228881, and each named time-frequency matrix is stored in a folder named V according to the number corresponding to V in the name, and the absolute path address and folder name of each time-frequency matrix in the folder are stored in the time-frequency database middle.
[0054] Taking "DJI Mini 2" in Table 1 as an example, the corresponding time-frequency matrix is named in the format of V_C_O: the "DJI Mini 2" drone is defined as the second drone, and the identification label V is marked as 2. Since the 161 channel where the drone is located belongs to the 1st channel, C is marked as 1, the drone time-frequency matrix is the 8th time-frequency matrix, and O is marked as 8. Therefore, the 8th time-frequency matrix of DJI Mini 2 under the 161 channel is named 2_1_8.
[0055] Step 4: Calculate the energy threshold of each time-frequency matrix according to the following formula.
[0056]
[0057] Among them, τ p represents the energy threshold of the pth time-frequency matrix, Y p (g,h) represents the element in the gth row and hth column of the pth time-frequency matrix.
[0058] Step 5: Binarize each time-frequency matrix according to the following formula.
[0059]
[0060] Among them, p (g′,h′) represents the element in the gth row and hth column of the pth time-frequency matrix, and the element in the g′th row and h′th column of the time-frequency matrix after the binarization operation.
[0061] Step 6: Calculate the useful signal time proportion of each time-frequency matrix.
[0062] Step 6.1, calculate the bandwidth of the drone signal in each time-frequency spectrum according to the following formula:
[0063]
[0064] Among them, B p represents the bandwidth of the drone signal in the pth time-frequency spectrum, f e p represents the column number of the signal termination column in the pth time-frequency matrix, f b p Indicates the column number of the starting column of the signal in the pth time-frequency matrix, F s Indicates the rate at which the USRP X310's RF front end converts analog signals to digital signals.
[0065] In the embodiment of the present invention, according to the mapping relationship between the channel and the frequency range where the drone is located, the mid-frequency axis of the time-frequency spectrum corresponding to the 153 channel and the 161 channel is obtained. and f e p , for channel 153, f e p =210, for 161 channels, Because on channels 153 and 161, and The difference is equal, and F s and N are both fixed values, so in the embodiment of the present invention, the bandwidths of all time-frequency spectra are the same.
[0066] Step 6.2, calculate the useful signal time proportion of each time-frequency matrix according to the following formula:
[0067]
[0068] Among them, R e p Indicates the useful signal time proportion of the pth time-frequency matrix.
[0069] Step 7: Filter the time-frequency spectrum database.
[0070] Set the useful signal ratio judgment threshold λ of the effective time-frequency matrix, which means that when R e p When the value reaches λ, it is considered that the time-frequency matrix contains enough information. e p Size, filter each time-frequency matrix in the time-frequency spectrum database. The value of λ is in the range of 0.2≤λ≤0.4, and is selected according to the size of the sample and the quality requirements of the database. The larger the sample size, the larger the value of λ, the smaller the sample size, the smaller the value of λ, and the higher the database quality, the larger the value of λ. When the database quality requirements are not high, the smaller the value of λ.
[0071] In the embodiment of the present invention, λ is set to 0.2. When R ep When R > 0.2, the time-frequency matrix is considered to contain sufficient information of the UAV signal, and the time-frequency matrix is retained in the database. On the contrary, when R e p When ≤0.2, the time-frequency matrix is considered to contain no UAV signal with sufficient information, and the time-frequency spectrum is removed from the database. The construction of the UAV time-frequency spectrum database is finally completed through screening.
[0072] The effect of the present invention is further described below in conjunction with simulation experiments:
[0073] 1. Simulation conditions:
[0074] The hardware platform of the simulation experiment of the present invention is: Intel(R) Core(TM) i7-8700k CPU, the main frequency of the processor is 3.20GHz, the memory is 16GB, a USRP X310 and 4 optical fibers.
[0075] The software platforms for the simulation experiment of the present invention are: GNU radio operating platform, MATLAB 2020b simulation platform, and Python 3.7 software platform.
[0076] 2. Simulation content and result analysis:
[0077] The simulation experiment of the present invention uses the method of the present invention to construct a time-frequency spectrum database of drones for the 6 different types selected in Table 1. The models of the 6 drones are Parrot, Fimi, Phantom20, Mavic Air, MavicMini, and Phantom10, respectively. There is only one drone of each type, and each drone works in channel 161. The database constructed by the simulation experiment of the present invention has 5,000 time-frequency spectrum samples for each drone.
[0078] The training set and test set used in the simulation experiment of the present invention are from the database of 6 different types of drones under 161 channels constructed in the simulation experiment, with 80% of the samples forming the training set and 20% of the samples forming the test set. It is obtained that each drone in the training set has 4000 time-frequency spectrum samples, and each drone in the test set has 1000 time-frequency spectrum samples.
[0079] In order to verify the quality of the drone time-frequency atlas database constructed by the present invention, the residual neural network ResNet (Residual Network) of the database in the Python 3.7 software platform is used as a classifier to classify the types of drones. The training set is input into the ResNet classifier, and a trained ResNet classifier is obtained after 200 iterations of training. The test set is input into the trained ResNet classifier, and the ResNet classifier predicts the category of each sample in the test set, and calculates the ratio of the number of test samples whose predicted category for each sample in the test set matches the category of the sample to the total number of test samples, and the recognition accuracy of the six types of drones is obtained as follows: Figure 3 The higher the target recognition accuracy, the better the quality of the constructed UAV time-frequency atlas database.
[0080] Figure 3 The vertical axis in the figure represents the actual types of the six drones and the seven categories without drone signals from top to bottom, and the horizontal axis represents the predicted types of the six drones and the seven categories predicted to have no drone signals from left to right. Figure 3 The values of the elements in the matrix represent the probability that each category on the ordinate is predicted to correspond to each category on the abscissa. Figure 3 The values on the diagonal marked in the black area represent the probabilities of correct prediction of the seven categories, and the probability of recognition is expressed as a decimal ratio.
[0081] Depend on Figure 3 The simulation results show that the probability of correctly identifying the four drones, Parrot, Fimi, Phantom20, and Mavic Air, reaches 1, which is equivalent to 100% being able to correctly identify the types of these four drones. The probabilities of correctly identifying the two drones, Mavic Mini and Phantom10, are 0.9995 and 0.9998, respectively, and the recognition performance is close to 1. This shows that the quality of the drone time-frequency atlas database generated by the present invention is high, and the training set obtained from the database has good recognition performance for the ResNet classifier used for training.
Claims
1. A method for constructing a UAV time-frequency spectrum database based on time-domain energy threshold screening, characterized in that: A drone time-frequency spectrum database for drone model identification is constructed, and samples in the database are screened according to the time domain energy threshold. The steps of the database construction method include the following: Step 1: Collect drone signals: Collect at least 20 types of drones, with at least one drone of each type. Each drone collects a long sampling sequence of length K in each channel, where K ≥ 3 × 10 10 ; Step 2, generate the time-frequency matrix: Each long sampling sequence is evenly divided at intervals of L to obtain x short sampling sequences after each long sampling sequence is divided, L = 131072 elements, x ≥ 228881; each short sampling sequence is subjected to STFT transformation to obtain the time-frequency matrix corresponding to each short sampling sequence; Step 3: Construct the initial UAV time-frequency spectrum database: Step 3.1, label the type of drone corresponding to the time-frequency matrix as V, the channel label as C, and the number of time-frequency matrices in each channel of each drone as O. Name each time-frequency matrix in the format of V_C_O; Step 3.2, according to the type of drone, the time-frequency matrices of the same type of drones are stored in the same folder. The name of each folder is named with the label corresponding to the type of drone to which the time-frequency matrix stored in the folder belongs. The address of each time-frequency matrix in the folder and the type label of the drone are stored in the original drone time-frequency spectrum database to complete the construction of the initial drone time-frequency spectrum database; Step 4: Calculate the energy threshold of each time-frequency matrix according to the following formula: Among them, τ p represents the energy threshold of the pth time-frequency matrix, M represents the dimension of the time domain in the STFT transform, which corresponds to the number of rows of the time-frequency matrix, N represents the dimension of the frequency domain in the STFT transform, which corresponds to the number of columns of the time-frequency matrix, Σ represents the summation operation, and Y p (g,h) represents the element in the g-th row and h-th column of the p-th time-frequency matrix; Step 5, performing a binarization operation on each time-frequency matrix; Step 6, calculate the useful signal time proportion of each time-frequency matrix: Step 6.1, calculate the bandwidth of the drone signal in each time-frequency spectrum: Step 6.2, calculate the useful signal time proportion of each time-frequency matrix according to the following formula: Among them, R e p Indicates the useful signal time proportion of the pth time-frequency matrix, F s The rate at which the USRP X310's RF front end converts analog signals into digital signals, f e p represents the column number of the signal termination column in the pth time-frequency matrix, f b p Indicates the column number of the starting column of the signal in the pth time-frequency matrix, Ψ p (g′,h′) represents the element in the gth row and hth column of the pth time-frequency matrix. After the binarization operation, the element in the g′th row and h′th column of the time-frequency matrix is obtained. p represents the signal bandwidth of the UAV corresponding to the pth time-frequency matrix; Step 7: Filter the initial UAV time-frequency spectrum database: Step 7.1, determine the threshold λ in the range of [0.2, 0.4] according to the sample size and the quality of the database; Step 7.2, remove the time-frequency matrices whose useful signal time ratio is less than the threshold λ in the initial UAV time-frequency spectrum database to obtain the UAV time-frequency spectrum database.
2. The method for constructing a time-frequency spectrum database of a UAV based on time-domain energy threshold screening according to claim 1 is characterized in that: The STFT transformation described in step 2 is implemented as follows: in, represents the time-frequency matrix of m rows and n columns generated by the p-th short sampling sequence after STFT transformation, y p (i) represents the i-th element in the p-th short sampling sequence, w(·) represents the Hamming window function, d represents the length of the STFT transform sliding, d = N, e (·) It represents the exponential operation with natural number e as base, j represents the imaginary unit symbol, and π represents pi.
3. The method for constructing a time-frequency spectrum database of a UAV based on time-domain energy threshold screening according to claim 1 is characterized in that: The binarization operation described in step 5 is as follows: 。 4. The method for constructing a time-frequency spectrum database of a UAV based on time-domain energy threshold screening according to claim 1 is characterized in that: The bandwidth of the drone signal in each time-frequency spectrum described in step 6.1 is obtained by the following formula: Among them, B p Represents the bandwidth of the UAV signal corresponding to the pth time-frequency matrix.
5. The method for constructing a time-frequency spectrum database of a UAV based on time-domain energy threshold screening according to claim 1 is characterized in that: Determining the threshold λ according to the sample size and the quality of the database as described in step 7.1 means that the value of λ is proportional to the sample size and the quality requirements of the database to be constructed.
Citation Information
Patent Citations
Low slow small unmanned aerial vehicle identification method and system based on deep learning
CN114169367A
Spread spectrum signal recognition method based on multi-dimensional parameter extraction and support vector machine
CN113408420A
Unmanned aerial vehicle signal identification method and system based on deep learning
CN114358056A
Method for building database in which voice signals and texts are matched and a system therefor, and a computer-readable recording medium recording the same
US20200012627A1
