Real-time radio frequency spectrum situation monitoring method based on density increment clustering algorithm
Through density-based incremental clustering algorithms and multiple visual views, the calculation complexity and data redundancy problems of traditional clustering algorithms in real-time monitoring are solved, and efficient analysis and visualization of real-time radio spectrum situation monitoring is realized.
Patent Information
- Application Number
- CN202411004562.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-15
AI Technical Summary
Traditional grid-based clustering algorithms are suitable for offline data processing, with high computational complexity and difficult to meet real-time monitoring requirements, and there are problems of data redundancy and low computing efficiency.
Using density-based incremental clustering algorithm, combined with the joint processing of signal data and spectrum data, radio spectrum data is collected through SDR equipment, and a variety of visual views are designed to show real-time spectrum situation and signal data characteristics, using incremental calculation and multi-dimensional folding lines Views such as diagrams improve real-time and efficiency.
Real-time signal data dynamic clustering analysis is realized, the calculation speed and efficiency are improved, data redundancy is reduced, and the spectrum situational awareness and visualization are provided, adapting to complex and variable signal types and interference sources.
Smart Images

Figure CN118972011A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of radio spectrum monitoring and visual analysis, and provides a real-time radio spectrum situation monitoring method based on a density increment clustering algorithm. Background Art
[0002] Radio spectrum is a basic resource for radio communications and is widely used in military, aviation, broadcasting, mobile communications and other fields. Existing radio spectrum situation monitoring methods mainly rely on spectrum data and perceive the surrounding spectrum environment through spectrum graphs and time-frequency graphs. However, these methods require a lot of field experience and have difficulty in handling complex and changing signal types and interference sources.
[0003] Traditional spectrum monitoring methods mainly use spectrum analyzers or spectrum scanners to scan the spectrum to collect and process spectrum data. Modern spectrum monitoring is achieved through software-defined radio (SDR) platforms, which can monitor and analyze signals with higher frequency bands and wider bandwidths. Existing methods such as grid-based clustering algorithms are mainly aimed at offline data and are difficult to meet real-time monitoring needs.
[0004] This proposal proposes a new solution to the limitations of existing technical solutions. Traditional grid-based clustering algorithms are mainly suitable for offline data processing, with high computational complexity and difficulty in meeting real-time monitoring requirements. At the same time, there are problems of data redundancy and low computational efficiency when processing repeated signal data records. In contrast, this proposal introduces a density-based incremental clustering algorithm, which can realize dynamic clustering analysis of real-time signal data, and significantly improves the computational speed and efficiency through incremental calculation methods, while optimizing signal data processing, reducing redundancy, and improving the overall performance of the system. For the traditional spectrum analyzer method, this proposal combines the joint analysis of signal data and spectrum data to dynamically display the real-time changes of spectrum situation, and designs a variety of visualization views to simplify monitoring operations, using advanced signal processing and data mining technologies to effectively deal with complex and changeable signal types and interference sources. For the existing spectrum monitoring system based on software-defined radio (SDR), this proposal realizes real-time spectrum data acquisition and processing based on SDR technology, combines incremental clustering algorithms to improve real-time performance and response speed, designs a flexible system architecture to adapt to the needs of different application scenarios, comprehensively displays radio spectrum situation and signal data characteristics, and improves visualization effects and system practicality. Summary of the invention
[0005] The purpose of the present invention is to solve the problems that the traditional grid-based clustering algorithm is mainly suitable for offline data processing, has high computational complexity and is difficult to meet real-time monitoring needs, and has data redundancy and low computational efficiency when processing repeated records of signal data.
[0006] In order to achieve the above purpose, the present invention adopts the following technical solutions:
[0007] The present invention provides a real-time radio spectrum situation monitoring method based on a density increment clustering algorithm, comprising the following steps:
[0008] Step 1: Use SDR equipment to collect radio spectrum data and obtain structured data including signal characteristic parameters;
[0009] Step 2: Process the spectrum data and signal data jointly, and solve the problem of duplicate signal data recording through a density-based incremental clustering algorithm.
[0010] Step 3: Design multiple visualization views to display the radio spectrum situation and signal data characteristics from multiple angles to help monitoring personnel fully understand the surrounding spectrum situation.
[0011] In the above scheme, step 1 specifically includes the following steps:
[0012] Step 1.1: Use the RTL-SDR device to collect the original IQ signal, and obtain the spectrum data through sampling and digitization;
[0013] Step 1.2: Perform DFT processing on the spectrum data to obtain the frequency domain signal:
[0014]
[0015] Where x[n] is the time domain signal, X[k] is the frequency domain signal, N is the number of sampling points, j represents the complex unit, e is the base of the natural logarithm, k represents the frequency index of the frequency domain signal, and n represents the sampling point index of the time domain signal;
[0016] Step 1.3: Extract signal characteristic parameters, including center frequency, signal bandwidth, strength, and signal-to-noise ratio. The signal band refers to the width of the signal main lobe. The boundary of the main lobe is determined by finding the half-power points on both sides of the peak (i.e., the point where the power drops to half of the maximum value), and then the frequency difference between the two boundaries is calculated to obtain the signal bandwidth. These parameters are used for subsequent cluster analysis and situation display to accurately identify and distinguish different radio signal sources and optimize the allocation and management of spectrum resources.
[0017] In the above scheme, step 2 specifically includes the following steps:
[0018] Step 2.1: Grid division of signal data: Divide the "center frequency-signal bandwidth" data space obtained in step 1.3 into grids of equal size. The grid size is determined by the maximum channel bandwidth and the minimum channel spacing. The specific calculation formula for the number of grids N is as follows:
[0019]
[0020] where f max and f min The maximum and minimum frequencies of the monitoring frequency band, Δf is half of the minimum channel spacing, bw max Channel bandwidth, Δb is the bandwidth width of each grid. Through grid division, the original signal data can be mapped to a two-dimensional grid, and the complex signal features can be converted into simple grid data, which provides a basis for subsequent clustering analysis;
[0021] Step 2.2: Find the local maximum value on the grid data that has been divided in step 2.1, compress the bandwidth array into a bandwidth matrix, observe the density distribution of the data, and use a 5x5 mean filter to convolve the density matrix to reduce noise interference. The formula is as follows:
[0022]
[0023] Where i and j represent the offset of the image on the x-axis and y-axis respectively, I represents the input two-dimensional image (I(x,y) represents the pixel value of the image at the coordinate (x,y)), I′ represents the two-dimensional image after convolution, K represents the convolution kernel, and k represents the radius of the convolution kernel;
[0024] By setting the signal threshold and noise threshold, classifying the local maximum points, filtering out the constant signal and the noise signal, and further distinguishing the instantaneous signal, the potential instantaneous signal is obtained;
[0025] Step 2.3: For potential instantaneous signal identification, for signals between the noise threshold and the signal threshold, observe their grid data on the time axis and extract the frequency range [f 1 , f 2 ] and signal bandwidth range [w 1 , w 2 ] grid, calculate its connectivity ratio in the time window, if the connectivity ratio exceeds 80%, it is judged as an instantaneous signal;
[0026] Step 2.4: Calculate the cluster center of the instantaneous signal determined in step 2.3. Take the local maximum grid as the center, consider the 5x5 grids around it, select the grid with density greater than or equal to half of the local maximum grid density, and weight it according to the grid density to calculate the cluster center frequency f c :
[0027]
[0028] Among them, N s is the number of grids that meet the conditions, is the mean of all signal frequencies in the i-th grid, w i is the number of signals in the grid;
[0029] Step 2.5: Incremental calculation. When new data is added, if the distance between the new data point and the existing cluster center is close (less than the preset threshold), or the density of the relevant grid is significantly increased, it will affect the known local maximum value calculated in step 2.4. At this time, the cluster center calculation method in step 2.4 is referenced to update the corresponding cluster center and local maximum value information; if there is no impact, only the data insertion operation is performed;
[0030] When old data is discarded, recalculate the local maximum information around the grid where it is located to determine whether the corresponding signal cluster needs to be deleted. Maintain a bandwidth array and density matrix of the time window size to describe the data distribution and use the local maximum to perform clustering operations. Refer to the cluster center calculation method in step 2.4.
[0031] In the above scheme, step 3 specifically includes the following steps:
[0032] Step 3.1: Design a grid density plot to show the density distribution of signal data in the bandwidth grid.
[0033] Data acquisition: Extract grid density data from the incremental clustering algorithm output in step 2;
[0034] Chart drawing: Draw a two-dimensional grid based on the signal frequency and signal bandwidth, and represent the signal density with light and dark colors. The darker the color, the greater the signal density.
[0035] Real-time update: New signal data is acquired regularly and the grid density map is updated to reflect the latest data.
[0036] Step 3.2: Design a signal situation diagram to show how the noise signal and different signals change over time.
[0037] Data classification: Based on signal characteristics, signal data is classified into noise signals and other signals. Generally, noise signals have lower intensity, narrower bandwidth, and lower signal-to-noise ratio, while other signals have higher intensity, wider bandwidth, and higher signal-to-noise ratio.
[0038] Chart drawing: With frequency as the horizontal axis and time as the vertical axis, different colored lines are used to represent different types of signals, showing how the signal changes over time;
[0039] Real-time update: Get the latest signal data from the server regularly and update the chart to reflect the real-time spectrum situation.
[0040] Step 3.3: Design signal analysis views such as multidimensional line charts and signal spectrograms to compare different signal characteristics.
[0041] Data processing: Extract the multidimensional feature data of the signal from the DIC algorithm classification results and perform normalization.
[0042] Multidimensional line chart: The characteristic values of each signal are represented by a line, different signals are distinguished by different colors, and the performance of the signals in different dimensions is compared.
[0043] Signal Spectrogram: Draw the signal's spectrum, power spectrum density and phase spectrum, display different types of spectrograms based on user selection, and compare the signal's frequency domain characteristics.
[0044] Step 3.4: Provide interactive features such as filtering, zooming, selection, and annotation to enable users to perform customized analysis.
[0045] The present invention aims to solve the difficulties of the prior art in processing complex signals and interference sources, as well as the problem of insufficient real-time performance. The following is an analysis of the technical effects of the method:
[0046] 1. Dynamic clustering analysis of real-time signal data: By introducing a density-based incremental clustering algorithm, this proposal implements dynamic clustering analysis of real-time signal data. This technical means effectively improves the calculation speed and efficiency, while optimizing signal data processing and reducing redundancy. Compared with existing technologies, this method can better handle monitoring needs in dynamic environments and solve the problem of duplicate signal data recording.
[0047] 2. Joint analysis of spectrum data and signal data: This proposal combines the joint analysis of spectrum data and signal data and designs a variety of visualization views. These views fully display the radio spectrum situation and signal data characteristics, improving the visualization effect and system practicality. Compared with existing technologies, this method provides more comprehensive spectrum situation awareness.
[0048] 3. Extraction of signal characteristic parameters: The original IQ signal collected by the SDR device is sampled and digitized to obtain spectrum data. Subsequently, the signal characteristic parameters such as center frequency, bandwidth, strength, and signal-to-noise ratio are extracted through DFT processing. These parameters are used for subsequent cluster analysis and situation display, which helps to accurately identify and distinguish different radio signal sources and optimize the allocation and management of spectrum resources.
[0049] 4. Grid division of signal data and finding local maximum values: Grid division of signal data divides the frequency-bandwidth data space into grids of equal size, providing a basis for cluster analysis. By finding the local maximum value and using a mean filter to reduce noise interference, this method effectively classifies constant signals and noise signals, and further distinguishes instantaneous signals.
[0050] 5. Calculation and incremental update of cluster centers: For potential transient signals, this method calculates the frequency of cluster centers and uses an incremental calculation method. When new data is added, it is determined whether it affects the known local maximum, and the cluster center and local maximum information are updated accordingly. This method maintains a bandwidth array and density matrix of the time window size to describe the data distribution and use local maximums for clustering operations.
[0051] 6. Design of multiple visualization views: This proposal designs multiple visualization views such as grid density map, signal situation map, multi-dimensional line graph and signal spectrum map. These views help monitoring personnel to fully understand the surrounding spectrum situation and provide interactive functions such as filtering, zooming, selection and annotation to facilitate users to conduct customized analysis.
[0052] In summary, this proposal improves the real-time and efficiency of radio spectrum situation monitoring by introducing a density-based incremental clustering algorithm and multiple visualization views, while optimizing signal data processing, providing monitoring personnel with a more comprehensive and practical spectrum situation awareness. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 System architecture diagram;
[0054] Figure 2 Data processing flow chart;
[0055] Figure 3 Visualization system module structure diagram. DETAILED DESCRIPTION
[0056] The following is a detailed description of the embodiments of the present invention. Although the present invention will be described and illustrated in conjunction with some specific embodiments, it should be noted that the present invention is not limited to these embodiments. On the contrary, modifications or equivalent substitutions made to the present invention should all be included in the scope of the claims of the present invention.
[0057] In addition, in order to better illustrate the present invention, numerous specific details are given in the following specific embodiments. It will be understood by those skilled in the art that the present invention can also be implemented without these specific details.
[0058] The present invention provides a real-time radio spectrum situation monitoring based on a density increment clustering algorithm, comprising the following steps:
[0059] Step 1: Use SDR equipment to collect radio spectrum data and obtain structured data including signal characteristic parameters.
[0060] Step 2: Process the spectrum data and signal data jointly, and solve the problem of duplicate signal data recording through a density-based incremental clustering algorithm.
[0061] Step 3: Design multiple visualization views to display the radio spectrum situation and signal data characteristics from multiple angles to help monitoring personnel fully understand the surrounding spectrum situation.
[0062] The above step 1 specifically includes the following steps:
[0063] Step 1.1: Use the RTL-SDR device to collect the original IQ signal, and obtain the spectrum data through sampling and digitization.
[0064] Step 1.2: Perform DFT processing on the spectrum data to obtain the frequency domain signal.
[0065]
[0066] Where x[n] is the time domain signal, X[k] is the frequency domain signal, N is the number of sampling points, j represents the complex unit, e is the base of the natural logarithm, k represents the frequency index of the frequency domain signal, and n represents the sampling point index of the time domain signal;
[0067] Step 1.3: Extract signal characteristic parameters, such as center frequency, bandwidth, strength, and signal-to-noise ratio. These parameters are used for subsequent cluster analysis and situation display to accurately identify and distinguish different radio signal sources and optimize the allocation and management of spectrum resources.
[0068] The above step 2 specifically includes the following steps:
[0069] Step 2.1: Grid division of signal data. Divide the frequency-bandwidth data space into grids of equal size. The grid size is determined by the maximum channel bandwidth and the minimum channel spacing. The specific calculation formula for the number of grids N is as follows:
[0070]
[0071] where f max and f min The maximum and minimum frequencies of the monitoring frequency band, Δf is half of the minimum channel spacing, bw max Channel bandwidth, Δb is the bandwidth width of each grid. Through grid division, the original signal data can be mapped to a two-dimensional grid, and the complex signal features can be converted into simple grid data, which provides a basis for subsequent clustering analysis.
[0072] Step 2.2: Find the local maximum. Compress the bandwidth array to a bandwidth matrix and observe the density distribution of the data. Use a 5x5 mean filter to convolve the density matrix to reduce noise interference. The formula is as follows:
[0073]
[0074] Among them, I represents the input image, I' represents the image after convolution, K represents the convolution kernel, and k represents the radius of the convolution kernel. By setting the signal threshold and noise threshold, the local maximum points are classified, the constant signal and the noise signal are screened out, and the instantaneous signal is further identified.
[0075] Step 2.3: Instantaneous signal discrimination. For signals between the noise threshold and the signal threshold, observe their grid data on the time axis. Extract the frequency range [f 1 , f 2 ] and bandwidth range [w 1 , w 2 ] grids and calculate their connectivity ratio in the time window. If the connectivity ratio exceeds 80%, it is identified as an instantaneous signal.
[0076] Step 2.4: Cluster center calculation. Taking the local maximum grid as the center, consider the 5x5 grids around it and select the grid whose density is greater than or equal to half of the local maximum grid density. Calculate the cluster center frequency f by weighting the grid density. c :
[0077]
[0078] Among them, N s is the number of grids that meet the conditions, is the mean of all signal frequencies in the i-th grid, w i is the number of signals in the grid.
[0079] Step 2.5: Incremental calculation. When new data is added, determine whether it affects the known local maximum: if so, update the corresponding cluster center and local maximum information; if not, only perform data insertion. When old data is discarded, recalculate the local maximum information around the grid where it is located: determine whether the corresponding signal cluster needs to be deleted. Maintain a bandwidth array and density matrix of the time window size to describe the data distribution and use the local maximum for clustering operations.
[0080] The above step 3 specifically includes the following steps:
[0081] Step 3.1: Design a grid density plot to show the density distribution of signal data in the bandwidth grid.
[0082] Data Acquisition: Extract mesh density data from the DIC algorithm output.
[0083] Chart drawing: Draw a two-dimensional grid based on frequency and bandwidth, and represent the signal density with light and dark colors. The darker the color, the greater the signal density.
[0084] Real-time update: New signal data is acquired regularly and the grid density map is updated to reflect the latest data.
[0085] Step 3.2: Design a signal situation diagram to show how the noise signal and different signals change over time.
[0086] Data classification: Signal data is classified into noise signals and other signals based on signal characteristics.
[0087] Chart drawing: With frequency as the horizontal axis and time as the vertical axis, different colored lines are used to represent different types of signals, showing how the signal changes over time.
[0088] Real-time update: Get the latest signal data from the server regularly and update the chart to reflect the real-time spectrum situation.
[0089] Step 3.3: Design signal analysis views such as multidimensional line charts and signal spectrograms to compare different signal characteristics.
[0090] Data processing: Extract the multidimensional feature data of the signal from the DIC algorithm classification results and perform normalization.
[0091] Multidimensional line chart: The characteristic values of each signal are represented by a line, different signals are distinguished by different colors, and the performance of the signals in different dimensions is compared.
[0092] Signal Spectrogram: Draw the signal's spectrum, power spectrum density and phase spectrum, display different types of spectrograms based on user selection, and compare the signal's frequency domain characteristics.
[0093] Step 3.4: Provide interactive features such as filtering, zooming, selection, and annotation to enable users to perform customized analysis.
Claims
1. A real-time radio spectrum situation monitoring method based on density increment clustering algorithm, It is characterized in that The following steps are involved: Step 1: Use SDR equipment to collect radio spectrum data and obtain structured data including signal characteristic parameters; Step 2: Process the spectrum data and signal data jointly, and solve the problem of duplicate signal data recording through a density-based incremental clustering algorithm. Step 3: Design multiple visualization views to display the radio spectrum situation and signal data characteristics from multiple angles to help monitoring personnel fully understand the surrounding spectrum situation.
2. A real-time radio spectrum situation monitoring method based on density increment clustering algorithm according to claim 1, It is characterized in that Step 1 specifically includes the following steps: Step 1.1: Use the RTL-SDR device to collect the original IQ signal, and obtain the spectrum data through sampling and digitization; Step 1.2: Perform DFT processing on the spectrum data to obtain the frequency domain signal: Where x[n] is the time domain signal, X[k] is the frequency domain signal, N is the number of sampling points, j represents the complex unit, e is the base of the natural logarithm, k represents the frequency index of the frequency domain signal, and n represents the sampling point index of the time domain signal; Step 1.3: Extract signal characteristic parameters, that is, obtain "center frequency-signal bandwidth", including center frequency, signal bandwidth, strength, and signal-to-noise ratio. Signal bandwidth refers to the width of the signal main lobe. The boundary of the main lobe is determined by finding the half-power points on both sides of the peak, and then the frequency difference between the two boundaries is calculated to obtain the signal bandwidth. These parameters are used for subsequent cluster analysis and situation display to accurately identify and distinguish different radio signal sources and optimize the allocation and management of spectrum resources.
3. The real-time radio spectrum situation monitoring method based on density increment clustering algorithm according to claim 1, It is characterized in that Step 2 specifically includes the following steps: Step 2.1: Grid division of signal data: Divide the "center frequency-signal bandwidth" data space obtained in step 1.3 into grids of equal size. The grid size is determined by the maximum channel bandwidth and the minimum channel spacing. The specific calculation formula for the number of grids N is as follows: where f max and f min The maximum and minimum frequencies of the monitoring frequency band, Δf is half of the minimum channel spacing, bw max Channel bandwidth, Δb is the bandwidth width of each grid. Through grid division, the original signal data can be mapped to a two-dimensional grid, and the complex signal features can be converted into simple grid data, which provides a basis for subsequent clustering analysis; Step 2.2: Find the local maximum value on the grid data that has been divided in step 2.1, compress the bandwidth array into a bandwidth matrix, observe the density distribution of the data, and use a 5x5 mean filter to convolve the density matrix to reduce noise interference. The formula is as follows: Where i and j represent the offset of the image on the x-axis and y-axis respectively, I represents the input two-dimensional image (I(x,y) represents the pixel value of the image at the coordinate (x,y)), I′ represents the two-dimensional image after convolution, K represents the convolution kernel, and k represents the radius of the convolution kernel; By setting the signal threshold and noise threshold, classifying the local maximum points, filtering out the constant signal and the noise signal, and further distinguishing the instantaneous signal, the potential instantaneous signal is obtained; Step 2.3: For potential instantaneous signal identification, for signals between the noise threshold and the signal threshold, observe their grid data on the time axis and extract the frequency range [f 1 , f 2 ] and signal bandwidth range [w 1 , w 2 ] grid, calculate its connectivity ratio in the time window, if the connectivity ratio exceeds 80%, it is judged as an instantaneous signal; Step 2.4: Calculate the cluster center of the instantaneous signal determined in step 2.
3. Take the local maximum grid as the center, consider the 5x5 grids around it, select the grid with density greater than or equal to half of the local maximum grid density, and weight it according to the grid density to calculate the cluster center frequency f e : Among them, N s is the number of grids that meet the conditions, is the mean of all signal frequencies in the i-th grid, w i is the number of signals in the grid; Step 2.5: Incremental calculation. When new data is added, if the distance between the new data point and the existing cluster center is less than the preset threshold, or if it causes a significant increase in the density of the relevant grid, it will affect the known local maximum value calculated in step 2.
4. At this time, the cluster center calculation method in step 2.4 is referenced to update the corresponding cluster center and local maximum value information; if there is no impact, only the data insertion operation is performed; When old data is discarded, recalculate the local maximum information around the grid where it is located to determine whether the corresponding signal cluster needs to be deleted. Maintain a bandwidth array and density matrix of the time window size to describe the data distribution and use the local maximum to perform clustering operations. Refer to the cluster center calculation method in step 2.
4.
4. The real-time radio spectrum situation monitoring method based on density increment clustering algorithm according to claim 1, It is characterized in that Step 3 specifically includes the following steps: Step 3.1: Design a grid density plot to show the density distribution of signal data in the bandwidth grid. Data acquisition: Extract grid density data from the incremental clustering algorithm output in step 2; Chart drawing: Draw a two-dimensional grid based on the signal frequency and signal bandwidth, and represent the signal density with light and dark colors. The darker the color, the greater the signal density. Real-time update: Get new signal data regularly and update the grid density map to reflect the latest data; Step 3.2: Design a signal situation diagram to show how the noise signal and different signals change over time. Data classification: According to the signal characteristics, the signal data is classified into noise signals and other signals. The noise signal has lower intensity, narrower bandwidth and lower signal-to-noise ratio; while other signals have higher intensity, wider bandwidth and higher signal-to-noise ratio; Chart drawing: With frequency as the horizontal axis and time as the vertical axis, different colored lines are used to represent different types of signals, showing how the signal changes over time; Real-time update: Get the latest signal data from the server regularly and update the chart to reflect the real-time spectrum situation; Step 3.3: Design signal analysis views such as multi-dimensional line graphs and signal spectrograms to compare different signal characteristics; Data processing: extract the multi-dimensional feature data of the signal from the classification results of the DLC algorithm and perform normalization processing; Multidimensional line chart: The characteristic values of each signal are represented by a line, different signals are distinguished by different colors, and the performance of the signal in different dimensions is compared; Signal spectrogram: Draw the signal's spectrum, power spectrum density and phase spectrum, display different types of spectrograms according to user selection, and compare the frequency domain characteristics of the signal; Step 3.4: Provide interactive features such as filtering, zooming, selection, and annotation to enable users to perform customized analysis.
Citation Information
Cited By
Rapid signal acquisition system for radio monitoring receiver
CN119382728A
5G NR multi-resource grid center frequency calculation method
CN119603699A
