A dynamic electromagnetic spectrum posture method and system based on tensor and neural network
Through the dynamic electromagnetic spectrum posture method based on tensors and neural networks, UAV and FPGA technology are used to collect and process spectrum data in real time, solving the limitations of fixed monitoring stations and slow calculation speed, and achieving efficient spectrum posture. Generate and display.
Patent Information
- Application Number
- CN202210325082.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-30
AI Technical Summary
The existing spectrum monitoring system relies on fixed monitoring stations, which is difficult to monitor for a long time, is costly and difficult to deploy on a large scale, and the spectrum situation generation technology suffers from over-fitting and slow calculation speed.
The dynamic electromagnetic spectrum posture method based on tensors and neural networks is used to collect spectrum data in real time through drones. Programmable gate array FPGA is used for analog-to-digital conversion and fast Fourier transform to construct and visualize the original matrix, and BP neural network is used for data processing. Complete and process, draw dynamic spectrum situation diagram.
It improves network performance and calculation speed, avoids over-fitting, enhances network generalization capabilities, achieves dynamic display of real-time spectrum information and data accuracy, and reduces the generation of erroneous spectrum diagrams.
Smart Images

Figure CN114637741B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of communication engineering, and specifically relates to a dynamic electromagnetic spectrum posture method and system based on tensor and neural network. Background Art
[0002] Early spectrum monitoring systems mainly relied on fixed monitoring stations, which were designed to monitor illegal radio signals in communications, transportation, broadcasting, etc., in order to eliminate electromagnetic interference and improve spectrum utilization. However, each fixed monitoring station needs to be staffed with professionals, and it is impossible to monitor for a long time in a monitoring environment where it is not possible to stay for a long time. In addition, the cost of fixed monitoring stations is relatively high, the construction period is long, and it is generally difficult to achieve large-scale deployment.
[0003] At this stage, spectrum situation generation technology is based on spectrum perception to further analyze and predict the comprehensive situation and future development trend of the spectrum. Specific content may include multi-dimensional space spectrum situation completion, multi-perspective presentation of spectrum situation, high-dimensional spectrum situation analysis, spectrum situation prediction, etc. The spectrum situation map can collect spectrum data of monitoring nodes in the network, regularly collect data from monitoring equipment, and make decisions based on the spectrum situation map to achieve reliable data fusion. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a dynamic electromagnetic spectrum posture method and system based on tensors and neural networks in response to the deficiencies in the above-mentioned prior art, and to adopt a deep learning-based method to effectively improve the performance and computing speed of the network, avoid overfitting and other problems, and improve the generalization ability of the network.
[0005] The present invention adopts the following technical solutions:
[0006] The present invention provides a dynamic electromagnetic spectrum posture method based on tensor and neural network, comprising the following steps:
[0007] S1. Obtain the spectrum data of the area surrounded by the current UAV flight, reflect the spectrum information corresponding to the corresponding frequency band of the spectrum data and the physical coordinates in real time, and implement dynamic refresh in the time domain and frequency domain;
[0008] S2, using a field programmable gate array (FPGA) to perform analog-to-digital conversion on the spectrum information of step S1, and then perform fast Fourier transform;
[0009] S3, reading the spectrum information obtained by fast Fourier transformation in step S2, and checking whether the spectrum data displayed once is full;
[0010] S4, constructing an original matrix according to the spectrum data checked in step S3, and visualizing the constructed original matrix;
[0011] S5, completing the data of the original matrix visualized in step S4 to obtain an optimized final completed matrix;
[0012] S6. Input the final completion matrix result value after optimization in step S5 into the BP neural network for fuzzy processing to obtain the final completion matrix value, and use the final completion matrix value to draw the completed spectrum posture two-dimensional map and the three-dimensional posture space resolution map, and display the spectrum situation signal of the dynamic signal according to the time and frequency changes.
[0013] Specifically, in step S1, Matlab is used to call EVM to collect spectrum data of the area surrounded by the current UAV flight in real time, and then input information into the neural network. The input information includes: EVM's IP address, antenna selection, test center frequency, sampling rate, number of samples, signal gain, and latitude and longitude information of each test point; then the spectrum data is checked for correctness.
[0014] Furthermore, the correctness test is as follows:
[0015] Check whether the spectrum data and the corresponding position coordinates are missing or have any missing items, whether there is NaN, +∞, -∞ data, or whether there is any mismatch; if there are missing or missing items, as well as NaN, +∞, -∞ data, resend the data and check again, and end when the data accuracy is greater than or equal to 98%.
[0016] Specifically, step S3 is as follows:
[0017] Check whether the spectrum data has missing items, NaN, +∞, -∞ data. If there are missing items, NaN, +∞, -∞ data, re-receive the spectrum data, resend it after analog-to-digital conversion, and check it again. When the data accuracy is greater than or equal to 97%, it is determined that the read data is correct.
[0018] Specifically, in step S4, constructing the original matrix is specifically as follows:
[0019] The length and width of the outer area of the UAV flight trajectory rectangle are used as the rows and columns of the original matrix, a coordinate system is established for a vertex of the trajectory, and each spectrum collection point is reflected in the coordinate matrix. Each coordinate point is composed of the horizontal coordinate x, the vertical coordinate y and the specific data z, and z reflects the real-time spectrum information.
[0020] Specifically, in step S4, the constructed original matrix is visualized as follows:
[0021] The visualization matrix is mapped to the physical location of the selected land area. The location of the collection point represents the actual physical longitude and latitude, and the color depth represents the size of the specific data, so as to obtain the missing matrix information and the visualization matrix.
[0022] Specifically, in step S5, the data completion of the original matrix is specifically as follows:
[0023] The matrix data is modeled as a tensor; the missing spectrum data in the tensor is completed by tensor matrices such as ALM and SVT to obtain a pre-completed matrix after the data is initially completed; a BP neural network is constructed, and the data of the pre-completed matrix is input into the BP neural network to learn and obtain new reference data, and finally the optimized final completed matrix is obtained.
[0024] Furthermore, the construction of BP neural network is as follows:
[0025] The historical spectrum data of the previous period is used as the input variable, the historical adjusted spectrum data is used as the output variable, and the activation function is constructed by determining the number of neurons and hidden layers to complete the BP neural network.
[0026] Specifically, in step S6, the spectrum situation of the dynamic signal is displayed in a non-blocking manner as follows:
[0027] S601, creating a signal queue and a situation queue, respectively storing a dynamic signal source to be displayed and a spectrum situation generated by the signal, and obtaining original spectrum data;
[0028] S602, starting the situation display thread according to the original spectrum data, taking out a group of signal sources to be displayed from the signal queue, then calling the situation display function to obtain the calculation result of the server, and finally adding the spectrum situation of the signal source to the posture queue, and repeating it continuously to obtain the spectrum situation refreshed in real time;
[0029] S603, using the main thread to construct a dynamic signal source array at the current moment according to the refreshed spectrum posture, and then adding the dynamic signal source array to the posture queue;
[0030] S604, taking out a set of spectrum situations from the situation queue of step S603 as the spectrum situation at the current moment, and then continuing to execute step S603 to draw a dynamic spectrum diagram of the posture queue.
[0031] In a second aspect, an embodiment of the present invention provides a dynamic electromagnetic spectrum posture system based on tensors and neural networks, including:
[0032] The real-time module obtains the spectrum data of the area currently covered by the drone, reflects the spectrum information corresponding to the corresponding frequency band of the spectrum data and the physical coordinates in real time, and implements dynamic refresh in the time domain and frequency domain;
[0033] The conversion module uses a programmable gate array (FPGA) to perform analog-to-digital conversion on the spectrum information of the real-time module, and then performs a fast Fourier transform;
[0034] The inspection module reads the spectrum information of the conversion module after fast Fourier transformation, and checks whether the spectrum data displayed at one time is fully collected;
[0035] A visualization module constructs an original matrix based on the spectrum data checked by the inspection module and visualizes the constructed original matrix;
[0036] The completion module completes the data of the original matrix visualized by the visualization module to obtain the optimized final completion matrix;
[0037] The posture module inputs the final completion matrix result value after optimization by the completion module into the BP neural network for fuzzy processing to obtain the final completion matrix value. The final completion matrix value is used to draw the completed spectrum posture two-dimensional map and the three-dimensional posture spatial resolution map, and the spectrum situation signal of the dynamic signal is displayed according to the time and frequency changes.
[0038] Compared with the prior art, the present invention has at least the following beneficial effects:
[0039] The present invention discloses a dynamic electromagnetic spectrum posture method based on tensors and neural networks. Tensors and neural networks are used to train dynamic electromagnetic spectrum posture data. A method based on deep learning is used to effectively improve the performance and calculation speed of the network. The method can directly learn and extract the structural features implicit in the data without preprocessing, effectively avoiding problems such as overfitting and improving the generalization ability of the network. The dynamic electromagnetic spectrum display software formed can dynamically display real-time spectrum information, and data visualization can help study various complex problems in the field of electromagnetic spectrum.
[0040] Furthermore, Matlab is used to call EVM to collect spectrum data of the current UAV flight area in real time, and then the IP address of the local EVM is input, and a large-scale multi-input and multi-output antenna array is selected. The center frequency of the test is between 500 and 600 MHz, the sampling rate is greater than 78%, the number of samples is 2000 points in the flight trajectory, the signal gain is between 30 dBm and 45 dBm, and the latitude and longitude information of the test points will be stored in the neural network.
[0041] Furthermore, after collecting enough spectrum data, the spectrum data is checked for correctness, which helps to improve the data accuracy and promptly correct and modify the erroneous data. Through multiple correctness checks, the data accuracy can reach more than 95%, which helps the subsequent spectrum processing and neural network analysis and avoids the generation of erroneous spectrum graphs.
[0042] Furthermore, in step S3, by applying the fast Fourier transform, the number of multiplications required for the computer to calculate the discrete Fourier transform can be greatly reduced. In particular, the more the number of sample points N to be transformed, the more significant the savings in the fast Fourier transform calculation amount.
[0043] Furthermore, in step S4, the purpose of establishing the original matrix is to establish an input set of the neural network, which helps the neural network algorithm to perform deep learning based on historical spectrum data and establish a suitable neural network model.
[0044] Furthermore, visualizing the constructed original matrix can more intuitively present the three-dimensional distribution and change patterns of the spectrum data, facilitating subsequent data processing and analysis.
[0045] Furthermore, because the original data is missing to a certain extent, when the matrix containing missing data is input into the neural network, it is difficult for the neural network to correctly analyze and build a suitable deep learning network. By completing the original data, a complete data set can be formed, which facilitates the work of the neural network and improves the accuracy and intelligence of the network.
[0046] Furthermore, in the construction of BP neural network, BP neural network has good nonlinear mapping ability, which makes it particularly suitable for solving problems with complex internal mechanisms; good self-learning and adaptive ability, BP neural network can automatically extract the "reasonable rules" between output and output data through learning during training, and adaptively memorize the learning content in the weight of the network. In addition, BP neural network also has good generalization ability and fault tolerance ability, BP neural network can make the system work normally even when it is partially damaged.
[0047] Furthermore, a non-blocking method is used to display dynamic spectrum signals. Compared with the traditional blocking method, non-blocking allows the system to have more computing resources and time resources to display the received signals, has higher efficiency, and saves time and space costs.
[0048] In summary, the present invention achieves the purpose of eliminating electromagnetic interference and improving spectrum utilization by monitoring radio signals and electromagnetic spectrum postures in communication, transportation, broadcasting, etc.
[0049] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a schematic diagram of the overall architecture of the spectrum gesture generation system of the present invention;
[0051] Figure 2 It is a schematic diagram of the structural design of the spectrum data acquisition hardware platform of the present invention;
[0052] Figure 3 is a schematic diagram of the dynamic spectrum visualization software platform of the present invention;
[0053] Figure 4 This is a schematic diagram of the spatial trajectory distribution when collecting spectrum data;
[0054] Figure 5 Matrix simulation comparison diagram after tensor completion in the present invention; wherein (a) is an actual spectrum situation diagram, (b) is a schematic diagram of 20% spectrum data randomly missing, and (c) is a spectrum situation diagram filled with ALM;
[0055] Figure 6 A detailed schematic diagram of the operating software designed for the present invention, wherein the upper right corner is the original spectrum data acquisition distribution diagram, the left side is the completed real-time spectrum data diagram, and the lower right corner also has the target level, completion rate, acquisition time interval, data compression rate and other manually settable correlation coefficients;
[0056] Figure 7 A three-dimensional dynamic spectrum situation map that can be dynamically updated;
[0057] Figure 8 The function display diagram of each component of the dynamic spectrum platform, where (a) is a two-dimensional dynamic spectrum diagram at each moment, (b) is a two-dimensional dynamic spectrum diagram at a certain moment, (c) is a real-time energy and schedule display when not working, (d) is a real-time energy and schedule display when working, (e) is a controllable variable display, and (f) is a display of the generated graph type selection;
[0058] Fig. 9 Schematic diagram of the spatial trajectory distribution collected in the experiment;
[0059] Fig.10 The completed spectrum situation diagram is presented in the form of contour lines;
[0060] Fig.11 The completed three-dimensional spatial spectrum situation map was drawn;
[0061] Fig.12 A schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0064] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0065] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects are in an "or" relationship.
[0066] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0067] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0068] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0069] See also Figure 1The overall architecture of a spectrum gesture generation system of the present invention includes a spectrum data acquisition hardware platform and a dynamic spectrum visualization software platform. The hardware platform can be carried by a small drone to collect, derive and transmit spectrum data; the terminal computer receives the data and processes and analyzes it on the software platform, intelligently completes it and presents it in multi-dimensional visualization.
[0070] The spectrum data acquisition hardware platform is mainly composed of three modules: RF transceiver, programmable gate array, and Wi-Fi module. The software platform uses Wi-Fi to cooperate with the hardware module to send and receive data.
[0071] See also Figure 2 The overall design of the data acquisition hardware platform includes: the RF part uses the Texas Instruments millimeter wave sensor evaluation module (EVM) of BESWHO, the field-programmable gate array (FPGA) uses the specified development board (XinYaDi XC7Z010 development board), and the Wi-Fi module uses the serial port to Wi-Fi communication module based on ESP8266. The EVM module is controlled by FPGA and carried on the drone to collect spectrum data in the corresponding frequency band in real time, and then the high-speed Wi-Fi module is controlled by FPGA to transmit the real-time collected data to the computer, and the interface is constructed using the Matlab software platform to display the time domain and frequency domain dynamic refresh diagrams of the collected signals.
[0072] The data acquisition hardware platform processing flow is as follows: first, the configuration command is sent to the EVM module through the FPGA, and the signal collected by the EVM is received and converted into a 12-bit digital signal through analog-to-digital conversion (AD). The received digital signals are subjected to fast Fourier transformation (FFT) in the FPGA to obtain the signal spectrum information. Finally, the Wi-Fi module is configured through the serial port of the FPGA, and the spectrum information is transmitted to the Wi-Fi module through the serial port in the FPGA. The Wi-Fi module sends the spectrum information to the computer. The computer displays the spectrum diagram of each 512 frequency points through Matlab, refreshes the spectrum diagram at regular intervals, and then enters the software processing module.
[0073] The present invention provides a dynamic electromagnetic spectrum posture method based on tensor and neural network, comprising the following steps:
[0074] S1. Use the antenna of the radio frequency transceiver to receive the collected spectrum data, reflect the spectrum information corresponding to the corresponding frequency band and physical coordinates in real time, and implement dynamic refresh of the time domain and frequency domain;
[0075] Compared with the indoor environment, the outdoor environment has a wider spatial domain, so we select the outdoor environment as the monitoring location, and the number of monitoring points increases accordingly. The present invention regards the electromagnetic radiation intensity at all sampling points as a virtual radiation source, which can spread to the surrounding space according to the electromagnetic radiation propagation model.
[0076] The outdoor spectrum data is collected using hardware modules and Matlab. Among them, EVM, as the RF front end of the software radio architecture, can send and receive spectrum signals and is used for the verification and application of communication systems. Matlab is a combination of the two words matrix & laboratory, which means the matrix factory (matrix laboratory) (Laboratory Virtual Instrument Engineering Workbench) is a graphical programming environment. It is a commercial mathematical software produced by MathWorks in the United States. It is used in data analysis, wireless communications, deep learning, image processing and computer vision, signal processing, quantitative finance and risk management, robotics, control systems and other fields. MATLAB Appdesigner has a powerful graphical programming system that can easily and efficiently build interfaces. Selecting the appropriate driver can cooperate with the terminal to achieve various functional verifications.
[0077] Specific:
[0078] When collecting spectrum data, Matlab is used to call the EVM driver interface to collect spectrum data in real time, and then a user interface or front panel is built to input information.
[0079] During the test, the input information includes: EVM IP address, antenna selection, test center frequency, sampling rate, number of samples, signal gain, and latitude and longitude information of each test point.
[0080] After obtaining the spectrum data of the area currently covered by the drone, the data is first checked for correctness to ensure that the data accuracy is above 98%.
[0081] The correctness test method is:
[0082] Check whether the spectrum data and the corresponding position coordinates are missing or have missing items, whether there are NaN, +∞, -∞ data, or whether there are mismatches; if there are missing or missing items, or NaN, +∞, -∞ data, the computer sends a command to the Wi-Fi module to resend the data;
[0083] After the data is resent, it is checked again. As the number of checks increases, when the data accuracy is above 98%, it is considered that the read data is correct.
[0084] S2, convert the collected data into analog-to-digital data using a programmable gate array (FPGA) to obtain a 12-bit spectrum signal, read the spectrum information after fast Fourier transformation, and send it to the Wi-Fi module;
[0085] S3. Check whether the Wi-Fi module is configured successfully. If not, the gate array repeats the configuration command. The Wi-Fi module sends the spectrum information to the computer. The computer reads it through the dynamic spectrum visualization software platform to check whether the spectrum data displayed once is full and perform a correctness check. If not, the Wi-Fi module resends the spectrum data to the computer and repeats the data correctness check to ensure that the data correctness rate is above 97%.
[0086] The specific steps are as follows:
[0087] S301, check whether the humidity data is missing or has missing items, NaN, +∞, -∞ data. If there are missing items, NaN, +∞, -∞ data, the master control terminal sends a command to the EVM to let the RF receive the signal again, the FPGA analog-to-digital conversion, and the Wi-Fi module resends the data to the computer;
[0088] Specifically, in this embodiment, the Wi-Fi module adopts an odd check / even check mode to ensure the data transmission rate, and receives and sends through TXD and RXD of the wireless communication module respectively.
[0089] S302, after the Wi-Fi module resends the data, it performs another test. As the number of tests increases, when the data accuracy is above 97%, it is considered that the read data is correct.
[0090] S4, constructing an original matrix according to the spectrum data, and visualizing the constructed original matrix;
[0091] Constructing the original matrix is as follows:
[0092] The length and width of the outer area of the UAV flight trajectory rectangle are used as the rows and columns of the original matrix, and a coordinate system is established for one of its vertices. Each spectrum collection point is reflected in the coordinate matrix. Each coordinate point is composed of the horizontal coordinate x, the vertical coordinate y and the specific data z, and z reflects the real-time spectrum information.
[0093] See also Figure 4 ,The visualization matrix is mapped to the physical location of the selected land area, the location of the ,collection point represents the actual physical longitude and latitude, and the color depth represents the size of ,specific data, thus the missing matrix information and the visualization ,matrix are obtained.
[0094] S5, completing the data of the visualized original matrix to obtain the optimized final completed matrix;
[0095] See also Figure 4 The spectrum data collected by EVM is only displayed in a dotted distribution on the graph. It is difficult to collect spectrum information in many places. Therefore, in this embodiment, the data that cannot be collected is predicted and supplemented.
[0096] The data completion of the original matrix is as follows:
[0097] S501, modeling matrix data as a tensor;
[0098] S502, completing the missing spectrum data in the tensor using tensor matrices such as ALM and SVT to obtain a pre-completed matrix after preliminary completion of the data;
[0099] By utilizing the low rank and sparsity of the matrix, the incomplete matrix is restored and the missing data is predicted, so that all the spectrum information can be read; and then the pre-completed matrix is obtained after the data is initially completed.
[0100] S503, the data of the pre-completed matrix is input into the BP neural network to learn and obtain new reference data, and finally obtain the optimized final completed matrix.
[0101] The specific steps of constructing BP neural network are as follows:
[0102] The historical spectrum data of the previous period is used as the input variable, and the historical adjusted spectrum data is used as the output variable. By determining the number of neurons and hidden layers, the activation function is constructed to complete the BP neural network.
[0103] When the BP neural network is first used for optimization, there is no historical data, so there is no need to adjust the BP neural network. On the other hand, historical data can be manually input, and the artificial matrix can be estimated and input based on the user's spectrum measurement experience and manual calculation results.
[0104] According to the optimized final completion matrix, the original thermal map is drawn and displayed on the software interface, which can reflect the real-time spectrum size.
[0105] S6. Input the optimized final completion matrix result value into the BP neural network for fuzzification processing to obtain the fuzzified final completion matrix value, and finally draw the completed spectrum posture two-dimensional map and three-dimensional posture space map.
[0106] First, among the many algorithms that can achieve matrix filling, the ALM algorithm is an easy-to-implement, fast iterative algorithm, whose main goal is to solve the convex optimization problem of the target matrix, that is, the nuclear norm minimization problem. In order to observe the superiority of the ALM algorithm, its filling effect is compared. Figure 5 (a), first generate a real spectrum situation heat map based on actual data. Figure 5 In (b), 20% of the original data is randomly missing, and the yellow dots are the locations of the missing data. The missing data is restored through the ALM algorithm, and the restored data is used to regenerate the spectrum situation diagram, as shown in Figure 5 As shown in (c), the ALM algorithm has very few fuzzy areas and the completion effect is very accurate.
[0107] After that, Matlab is used to implement the ALM algorithm and perform spectrum dynamic analysis. A matrix filling algorithm based on ALM is used to calculate the spectrum situation. The entire platform is built using the graphical user interface GUI in MATLAB, all controls are integrated into this environment, and the client is provided with control options for interface appearance, properties, and behavioral response methods. The overall interface layout is as follows: Figure 6 shown.
[0108] See also Figure 7 After the client confirms that the program is running, the platform will first generate a three-dimensional dynamic spectrum situation map in real time, which can be dynamically updated.
[0109] See also Figure 8 , Figure 8 (a) and Figure 8 (b) The software will simultaneously display a two-dimensional spectrum diagram at a specific moment, located at the bottom of the program interface. Figure 8 (c) and Figure 8 (d) The real-time energy size of the spectrum and the progress of the program are displayed respectively, in the form of a disc. When the software starts working, the indicator light flashes from red to green at intervals. At this time, the pointers of the real-time energy and progress meter dials start to rotate. The client can judge the program running progress and other information by observing the pointers.
[0110] Frequency range, loss rate, data compression rate and transmission efficiency are used Figure 8 (e) Figure 8 (f) The representation form of the diagram, wherein the frequency is 0-200 Hz, the loss rate is 0%-100%, the data compression rate is 0%-100%, and the transmission efficiency is 0%-100%. These variables are controlled by the client operator to change the starting information of the data.
[0111] The spectrum situation data tensor generation model provided by the present invention is no less than six dimensions, specifically time domain + energy map, frequency domain + energy map, three-dimensional space domain + energy map, wherein the change of energy value is distinguished by color.
[0112] In the era of big data, the increase in data volume has made analysis more complex and the results more diverse. In the face of complex big data tools, users are not professional data analysis experts, so data visualization is the key to ease of use. In order to achieve data usability, the original data will be filled and predicted to generate spectrum trends, and the generated grid data will be combined with the geographic information system to form an intuitive presentation on the client. We choose to present it in the form of a spectrum heat map and provide query functions for the client.
[0113] The position of dynamic signals changes over time, so the client needs to continuously send query requests to the server in order to achieve real-time updates of the spectrum situation. However, the spectrum situation will have delays during calculation and transmission, which will cause obvious lags when the client displays the spectrum situation. Since calculation delays and transmission delays are inevitable, in order to reduce the impact of delays, a non-blocking method is used to display the spectrum situation of dynamic signals. The detailed steps are as follows:
[0114] (1) Creating a signal queue and a situation queue, respectively used to store the dynamic signal source to be displayed and the spectrum situation generated by the signal;
[0115] (2) Start the situation display thread, which continuously takes out a group of signal sources to be displayed from the signal queue, then calls the situation display function to obtain the calculation results of the server, and finally puts the spectrum situation of this group of signal sources into the queue. This process is repeated continuously, so that the client can obtain the spectrum situation refreshed in real time.
[0116] (3) The main thread constructs the dynamic signal source array at the current moment and then queues the array;
[0117] (4) Take out a set of spectrum situations from the situation queue as the spectrum situation at the current moment, and then continue to execute the previous step.
[0118] In yet another embodiment of the present invention, a dynamic electromagnetic spectrum posture system based on tensors and neural networks is provided. The system can be used to implement the above-mentioned dynamic electromagnetic spectrum posture method based on tensors and neural networks. Specifically, the dynamic electromagnetic spectrum posture system based on tensors and neural networks includes a real-time module, a conversion module, an inspection module, a visualization module, a completion module and a posture module.
[0119] Among them, the real-time module obtains the spectrum data of the area surrounded by the current drone flight, reflects the spectrum information corresponding to the corresponding frequency band of the spectrum data and the physical coordinates in real time, and implements dynamic refresh in the time domain and frequency domain;
[0120] The conversion module uses a programmable gate array (FPGA) to perform analog-to-digital conversion on the spectrum information of the real-time module, and then performs a fast Fourier transform;
[0121] The inspection module reads the spectrum information of the conversion module after fast Fourier transformation, and checks whether the spectrum data displayed at one time is fully collected;
[0122] A visualization module constructs an original matrix based on the spectrum data checked by the inspection module and visualizes the constructed original matrix;
[0123] The completion module completes the data of the original matrix visualized by the visualization module to obtain the optimized final completion matrix;
[0124] The posture module inputs the final completion matrix result value after optimization by the completion module into the BP neural network for fuzzy processing to obtain the final completion matrix value. The final completion matrix value is used to draw the completed spectrum posture two-dimensional map and the three-dimensional posture spatial resolution map, and the spectrum situation signal of the dynamic signal is displayed according to the time and frequency changes.
[0125] Fig.12 Schematic diagram of a computer device provided by an embodiment of the present invention. Fig.12 As shown, the computer device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the computer program 63 is executed by the processor 61, the dynamic electromagnetic spectrum posture method based on tensors and neural networks in the embodiment is implemented. To avoid repetition, it is not described one by one here. Alternatively, when the computer program 63 is executed by the processor 61, the functions of each model / unit in the dynamic electromagnetic spectrum posture system based on tensors and neural networks in the embodiment are implemented. To avoid repetition, it is not described one by one here.
[0126] The computer device 60 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 60 may include, but is not limited to, a processor 61 and a memory 62. Those skilled in the art will appreciate that Figure 6 This is only an example of the computer device 60 and does not constitute a limitation of the computer device 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0127] The processor 61 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0128] The memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. The memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the computer device 60.
[0129] Furthermore, the memory 62 may include both an internal storage unit of the computer device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the computer device. The memory 62 may also be used to temporarily store data that has been output or is to be output.
[0130] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0131] The effectiveness of the method of the embodiment of the present invention is verified by combining specific simulation experiments below:
[0132] The data collection for this experiment was completed in the school where the experimental team was located. Data collection was carried out along the roads within the school. A total of 1,000 location points were collected. The data set included time, frequency, signal strength, and latitude and longitude information of the location points.
[0133] Among them, the frequency band is 850~900MHz, the center frequency is 875MHz, and a total of 1000 frequency points are taken.
[0134] Because the electromagnetic spectrum data is collected along the roads within the school, it presents a linear distribution of sampling data. For the convenience of visualization, a frequency point is selected for analysis. The spatial distribution of the collected data trajectory is as follows: Fig. 9 shown.
[0135] The area is gridded and divided into 80 by 80 grids, so we need to apply the ALM algorithm to complete the 1000 data into 6400 grid values. After completion, a spectrum situation heat map is generated. Different color values in the map represent the energy value. The redder the color, the stronger the received signal. Conversely, blue represents a lower energy value. It can be seen from the figure that a blue area appears in the upper right, with a very weak signal strength, and a red area appears in the upper left, with a strong signal strength. Fig.10 The completed spectrum is presented in the form of contour lines. Compared with the heat map, the contour map divides the signal intensity into several levels, which can better distinguish the high and low energy values. Fig.11 A three-dimensional spectrum situation diagram is drawn to facilitate more intuitive analysis of spectrum data.
[0136] In the embodiment of the present invention, after obtaining experimental data through field monitoring using a hardware platform, a processing and completion analysis of the software dynamic platform is performed. By displaying some analysis results, the effectiveness and superiority of this method can be seen.
[0137] By analyzing the spectrum situation in multiple dimensions such as time domain, frequency domain, and spatial domain, we can better understand the spectrum usage of ground radiation sources and the activity distribution of radiation sources. This will provide a basis for mining the inherent correlation of spectrum data, and realize the discovery and positioning of abnormal frequency usage behavior and subsequent spectrum prediction. It is also of positive significance.
[0138] Based on spectrum perception of communication signals, the present invention studies multi-dimensional spectrum situation data tensor completion, machine learning completion and other completion methods; proposes a spectrum situation multi-perspective presentation method and realizes detail level advancement of three-dimensional spectrum situation visualization; develops server-based dynamic electromagnetic spectrum situation generation software, completes dynamic electromagnetic spectrum situation generation on the premise of solving the spectrum situation completion problem, realizes rapid generation of spectrum situation, and visualization processing of dynamic signal spectrum situation by the client, designs relevant simulation platform and demonstration work, which are used to evaluate and verify the proposed theory and scheme, so as to provide a reference for the application of spectrum situation generation technology in the military field.
[0139] Finally, the current radio environment can be analyzed intuitively through the visualization of the spectrum situation diagram, and the changing trend of the complex multi-dimensional spectrum environment can be predicted by analyzing the historical data and evolution laws.
[0140] In summary, the present invention provides a dynamic electromagnetic spectrum posture method and system based on tensor and neural network, which has the following advantages:
[0141] 1. The present invention innovatively proposes a server-based dynamic electromagnetic spectrum situation generation method and supporting hardware and software, focusing on how the server can quickly generate spectrum situation, and also uses the depth of color to indicate the strength of the spectrum situation, thereby achieving visualization of the spectrum situation.
[0142] 2. Use several high-end built-in algorithms, such as: tensor-based high-dimensional data completion technology, deep learning, ALM-based matrix filling algorithm...
[0143] 3. Through spectrum situation analysis in multiple dimensions such as time domain, frequency domain, and spatial domain, we can better understand the spectrum usage of ground radiation sources and the activity distribution of radiation sources. This will provide a basis for mining the inherent correlation of spectrum data, and realize the discovery and positioning of abnormal frequency usage behaviors and subsequent spectrum predictions.
[0144] 4. Exploring the application prospects of spectrum data. In order to effectively utilize spectrum resources, strengthen the control of illegal frequency use, and ensure victory in the electromagnetic spectrum war, spectrum situation generation has also received increasing attention from domestic and foreign research institutions.
[0145] 5. Dynamic spectrum posture generation software can realize the integration and visualization of these spectrum data, characterize spectrum data from multiple dimensions such as geographic location, frequency, time, energy, etc., and provide users with intuitive spectrum status information, such as which frequency bands are occupied, which time periods have idle frequency bands, and how large the coverage of a specified frequency band is. Spectrum situation generation includes multi-dimensional space spectrum situation completion, spectrum situation multi-perspective presentation, high-dimensional spectrum situation analysis, spectrum situation prediction, etc., which can visualize spectrum data from multiple angles, strengthen the correlation between spectrum situation data, and integrate with geographic information systems to form information-rich spectrum situation maps, so as to better play the value of spectrum situation.
[0146] 6. In addition to being widely used in the fields of radio order management, electromagnetic spectrum warfare, indoor positioning and satellite frequency management, the method of the present invention is applicable to other fields. For example, when encountering data missing problems, it can perform data completion and machine learning prediction for .txt or .mat data with an accuracy rate greater than 92%.
[0147] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0148] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0151] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A dynamic electromagnetic spectrum posture method based on tensor and neural network, characterized in that: The following steps are involved: S1. Obtain the spectrum data of the area surrounded by the current UAV flight, reflect the spectrum information corresponding to the corresponding frequency band of the spectrum data and the physical coordinates in real time, and implement dynamic refresh in time domain and frequency domain; S2, using a field programmable gate array (FPGA) to perform analog-to-digital conversion on the spectrum information of step S1, and then perform fast Fourier transform; S3, reading the spectrum information obtained by fast Fourier transformation in step S2, and checking whether the spectrum data displayed once is full; S4, constructing an original matrix according to the spectrum data checked in step S3, and visualizing the constructed original matrix. The construction of the original matrix is specifically as follows: The length and width of the outer area of the UAV flight trajectory rectangle are used as the rows and columns of the original matrix, and a coordinate system is established for a vertex of the trajectory. Each spectrum collection point is reflected in the coordinate matrix. Each coordinate point consists of a horizontal coordinate x, a vertical coordinate y and a specific data z, and z reflects the real-time spectrum information. S5, completing the data of the original matrix visualized in step S4 to obtain the optimized final completed matrix. The data completion of the original matrix is specifically as follows: Model the matrix data as a tensor; perform ALM and SVT tensor matrix completion on the missing spectrum data in the tensor to obtain a pre-completed matrix after the data is initially completed; Construct a BP neural network, input the data of the pre-completed matrix into the BP neural network to learn and obtain new reference data, and finally obtain the optimized final completed matrix; S6. Input the final completion matrix result value after optimization in step S5 into the BP neural network for fuzzy processing to obtain the final completion matrix value, and use the final completion matrix value to draw the completed spectrum posture two-dimensional map and three-dimensional posture space resolution map, and display the spectrum situation signal of the dynamic signal according to the time and frequency changes.
2. The dynamic electromagnetic spectrum posture method based on tensor and neural network according to claim 1 is characterized in that: In step S1, Matlab is used to call EVM to collect spectrum data of the area surrounded by the current UAV flight in real time, and then input information into the neural network. The input information includes: EVM's IP address, antenna selection, test center frequency, sampling rate, number of samples, signal gain, and latitude and longitude information of each test point; then the spectrum data is checked for correctness.
3. The dynamic electromagnetic spectrum posture method based on tensor and neural network according to claim 2 is characterized in that: The correctness test is as follows: Check whether the spectrum data and the corresponding position coordinates have missing items, whether there is NaN, +∞, -∞ data, or whether there is any mismatch; if there are missing items, NaN, +∞, -∞ data, resend the data and check again, and end when the data accuracy is greater than or equal to 98%.
4. The dynamic electromagnetic spectrum posture method based on tensor and neural network according to claim 1 is characterized in that: Step S3 is specifically as follows: Check whether the spectrum data has missing items, NaN, +∞, -∞ data. If there are missing items, NaN, +∞, -∞ data, re-receive the spectrum data, resend it after analog-to-digital conversion, and check it again. When the data accuracy is greater than or equal to 97%, it is determined that the read data is correct.
5. The dynamic electromagnetic spectrum posture method based on tensor and neural network according to claim 1 is characterized in that: In step S4, the constructed original matrix is visualized as follows: The visualization matrix is mapped to the physical location of the selected land area. The location of the collection point represents the actual physical longitude and latitude, and the color depth represents the size of the specific data, so as to obtain the missing matrix information and the visualization matrix.
6. The dynamic electromagnetic spectrum posture method based on tensor and neural network according to claim 1 is characterized in that: In step S5, constructing the BP neural network is specifically as follows: The historical spectrum data of the previous period is used as the input variable, and the historical adjusted spectrum data is used as the output variable. The activation function is constructed by determining the number of neurons and hidden layers to complete the BP neural network.
7. The dynamic electromagnetic spectrum posture method based on tensor and neural network according to claim 1 is characterized in that: In step S6, the spectrum situation of the dynamic signal is displayed in a non-blocking manner as follows: S601, creating a signal queue and a situation queue, respectively storing a dynamic signal source to be displayed and a spectrum situation generated by the signal, and obtaining original spectrum data; S602, starting the situation display thread according to the original spectrum data, taking out a group of signal sources to be displayed from the signal queue, then calling the situation display function to obtain the calculation result of the server, and finally adding the spectrum situation of the signal source to the posture queue, and repeating it continuously to obtain the spectrum situation refreshed in real time; S603, using the main thread to construct a dynamic signal source array at the current moment according to the refreshed spectrum posture, and then adding the dynamic signal source array to the posture queue; S604, taking out a set of spectrum situations from the situation queue of step S603 as the spectrum situation at the current moment, and then continuing to execute step S603 to draw a dynamic spectrum diagram of the posture queue.
8. A dynamic electromagnetic spectrum posture system based on tensor and neural network, characterized in that: include: The real-time module obtains the spectrum data of the area currently covered by the drone, reflects the spectrum information corresponding to the corresponding frequency band of the spectrum data and the physical coordinates in real time, and implements dynamic refresh in the time domain and frequency domain; The conversion module uses a programmable gate array (FPGA) to perform analog-to-digital conversion on the spectrum information of the real-time module, and then performs a fast Fourier transform; The inspection module reads the spectrum information of the conversion module after fast Fourier transformation, and checks whether the spectrum data displayed at one time is fully collected; The visualization module constructs the original matrix based on the spectrum data checked by the inspection module and visualizes the constructed original matrix. The specific steps of constructing the original matrix are as follows: The length and width of the outer area of the UAV flight trajectory rectangle are used as the rows and columns of the original matrix, and a coordinate system is established for a vertex of the trajectory. Each spectrum collection point is reflected in the coordinate matrix. Each coordinate point consists of a horizontal coordinate x, a vertical coordinate y and a specific data z, and z reflects the real-time spectrum information. The completion module completes the data of the original matrix visualized by the visualization module to obtain the optimized final completion matrix. The data completion of the original matrix is as follows: Model the matrix data as a tensor; perform ALM and SVT tensor matrix completion on the missing spectrum data in the tensor to obtain a pre-completed matrix after the data is initially completed; Construct a BP neural network, input the data of the pre-completed matrix into the BP neural network to learn and obtain new reference data, and finally obtain the optimized final completed matrix; The posture module inputs the final completion matrix result value after optimization by the completion module into the BP neural network for fuzzy processing to obtain the final completion matrix value. The final completion matrix value is used to draw the completed spectrum posture two-dimensional map and the three-dimensional posture spatial resolution map, and the spectrum situation signal of the dynamic signal is displayed according to the time and frequency changes.
