Three-threshold cooperative spectrum sensing method with adaptive intermediate threshold
Through the collaboration mechanism of adaptive intermediate threshold and K-rank fusion criterion, the detection accuracy of traditional energy detection algorithms under low signal-to-noise ratio and noise uncertainty is improved, and the performance degradation problem of traditional methods under shadow effect is solved, and the performance degradation of traditional methods is achieved. More efficient spectrum perception.
Patent Information
- Application Number
- CN202410697127.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-11-08
AI Technical Summary
Traditional energy detection algorithms have poor detection performance under low signal-to-noise ratio and noise uncertainty conditions, and cannot effectively handle the shadow effect, resulting in a decrease in detection accuracy.
Adopting the three-threshold cooperative spectrum perception method of adaptive intermediate threshold, the sampling reception and judgment statistics of M secondary users are calculated, combined with dual-threshold energy detection and intermediate threshold calculation, and the K-rank fusion criterion is used to make global judgments to improve detection accuracy .
It effectively improves the probability and accuracy of signal detection of main users, improves the detection performance under the influence of low signal-to-noise ratio and noise uncertainty, and enhances the processing ability of shadow effects.
Smart Images

Figure CN118921138A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of cognitive radio spectrum sensing, and relates to a three-threshold collaborative spectrum sensing method with an adaptive intermediate threshold. Background Art
[0002] With the rapid development of wireless communication technology, people's requirements for wireless services are getting higher and higher. Its business scope is also constantly expanding, which inevitably conflicts with the limited spectrum resources. Since almost all the spectrum resources suitable for communication have been allocated and used, there are no extra resources to support more wireless devices, so it is difficult to find new spectrum resources to add new services or expand existing services. In order to improve the utilization of spectrum resources, it is necessary to change the current static spectrum management method. Since it is impossible to fully recover spectrum resources and schedule and allocate spectrum resources equally again, a dynamic spectrum sharing mode with primary users and secondary users has become the most effective way to solve the current spectrum resource problem. In this context, cognitive radio technology came into being.
[0003] The function of cognitive radio is to realize dynamic spectrum allocation, so that secondary users can detect spectrum usage information in some way and opportunistically access the frequency band allocated to the primary user. This part of the frequency band is the frequency band not used by the primary user in this time period. When the secondary user detects that the primary user needs to access the frequency band, it will immediately exit and let the primary user use it first. The basic requirement of this technology is to first quickly and accurately understand the spectrum status of the target frequency band. The most commonly used solution is frequency sensing because spectrum sensing has the advantages of low construction cost and strong compatibility.
[0004] Common frequency-aware technologies mainly include energy detection, cyclostationary feature detection, matched filter detection, and covariance absolute value detection. Among them, energy detection is a blind perception algorithm. It has become the first choice in engineering practice due to its advantages such as no need to understand the user's prior information and low complexity. The principle of energy detection is that the secondary user samples and calculates the received signal at the receiving end, compares its energy value with the pre-set value, and then determines whether the spectrum is occupied.
[0005] However, the wireless environment is extremely complex, and the energy detection algorithm will be seriously affected:
[0006] (1) Noise uncertainty causes the system detection performance to fluctuate uncontrollably. Traditional energy detection algorithms need to estimate the noise variance to set the decision threshold, but the existence of noise uncertainty causes a difference between the theoretical noise variance and the actual noise variance, which leads to the emergence of the signal-to-noise ratio wall phenomenon, which will limit the detection performance of energy detection.
[0007] (2) Insufficient detection performance under low signal-to-noise ratio conditions. The signal attenuates to varying degrees with different propagation distances. In practice, the signal-to-noise ratio of the signal received by the secondary user is generally not high. Under low signal-to-noise ratios, it is difficult for the energy detection algorithm to obtain correct judgment results. In theory, the detection probability can be increased by increasing the number of observation points, but increasing the number of observation points will prolong the detection time and increase the amount of calculation, which has a significant impact on the spectrum detection efficiency. In addition, there is a signal-to-noise ratio wall.
[0008] (3) Shadow effect and multipath fading are unavoidable. In the current environment, it is inevitable that signals are blocked by large buildings during propagation. When facing the shadow effect, the performance of the non-cooperative spectrum sensing algorithm will be greatly reduced. Summary of the invention
[0009] In view of this, the purpose of the present invention is to provide a three-threshold collaborative spectrum sensing method with an adaptive intermediate threshold to improve the problems of poor detection performance of traditional energy detection algorithms at low signal-to-noise ratios, susceptibility to noise uncertainty, and a significant drop in detection performance under shadow effects.
[0010] In order to achieve the above object, the present invention provides the following technical solutions:
[0011] A three-threshold cooperative spectrum sensing method with an adaptive intermediate threshold, the method comprising the following steps:
[0012] S1, M independent secondary users sample and receive the radio frequency signal s(t) in the electromagnetic environment, and use the sampled signal to calculate the decision statistic T;
[0013] S2, the secondary user uses a dual threshold energy detection algorithm to make a decision on the decision statistic, that is, to compare the decision statistic T with the threshold. If it is greater than the high threshold γ H , then it is determined that the main user signal exists. If it is less than the lower threshold γ L , it is determined that the primary user signal does not exist;
[0014] S3. If the decision statistic is γ L <T<γ H The secondary user calculates the intermediate threshold according to the proportional coefficient issued by the fusion center, and obtains the intermediate threshold γ I ;
[0015] S4, the secondary user compares the mean T′ of the historical decision statistic T with the intermediate threshold γ I Compare and judge, if it is greater than the threshold γ I , then it is determined that the primary user signal exists, otherwise it is determined that it does not exist;
[0016] S5. M secondary users upload the local decision results obtained in steps S1 to S4 to the fusion center;
[0017] S6. The fusion center aggregates the local decision results of M secondary users participating in the collaboration, uses the K-rank fusion criterion to make a hard decision, and finally obtains a global decision result on whether there is a primary user signal in the detected frequency band.
[0018] The beneficial effects of the present invention are:
[0019] 1) The present invention introduces an adaptively variable intermediate threshold to perform a secondary judgment on the historical average energy, which can effectively improve the detection probability of the primary user signal;
[0020] 2) Based on the collaborative mechanism, by aggregating the local decision information of multiple secondary users, a unified intermediate threshold is used to make a global decision according to the historical average channel utilization rate;
[0021] 3) The intermediate threshold is used for the signal between the double thresholds to determine whether there is a primary user, and a multi-user cooperation mechanism is introduced, and the "K-rank" criterion is used for fusion decision, thereby improving the detection accuracy under the influence of shadow fading, low signal-to-noise ratio and noise uncertainty.
[0022] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0024] Figure 1 A flowchart of calculating the decision statistic T of a received signal at a receiving end.
[0025] Figure 2 This is the flow chart of the dual threshold energy detection algorithm.
[0026] Figure 3 Flowchart of the three-threshold energy detection algorithm with adaptive intermediate threshold.
[0027] Figure 4 Graph of the collaborative detection model.
[0028] Figure 5 The figure is a schematic diagram of the comparison between the present invention and several related algorithms in the case of a single user.
[0029] Figure 6is a schematic diagram of the comparison between the present invention and several related algorithms in the case of collaborative sensing, Figure 6 (a) is the comparison result when the average channel utilization is ε = 0.3. Figure 6 (b) is the comparison result when the average channel utilization is ε=0.7. DETAILED DESCRIPTION
[0030] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0031] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0032] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0033] For the received RF signal s(t), there are two main situations, namely, H1 - the primary user signal exists and the channel is unavailable; H0 - the primary user signal does not exist and the channel is idle. For the case where the channel is an additive white Gaussian noise channel (AWGN), assuming that fading is not considered, we have:
[0034]
[0035] like Figure 3 The figure shows a three-threshold cooperative spectrum sensing method with an adaptive intermediate threshold provided by the present invention, and the specific contents are as follows:
[0036] S1: M independent secondary users sample and receive the radio frequency signal s(t) in the electromagnetic environment, and use the sampled signal to calculate the decision statistic T; the calculation process of the decision statistic T is as follows:
[0037] according to Figure 1 As shown in the process, in order to detect the target frequency band, the received signal must first be frequency selected by a bandpass filter, and then the filtered signal is sampled to obtain a sampling signal of N points, and the square sum of the sampling points is compared with the threshold to obtain the result.
[0038] Among them, the sampling signal is expressed as:
[0039]
[0040] Where x(n) is the signal after the primary user transmits the signal through the channel, w(n) is the signal with a mean of 0 and a variance of σ n 2 Gaussian signal.
[0041] Assuming that the decision statistic is T and the number of observation points is N, the calculation formula of the decision statistic is:
[0042]
[0043] S2: According to Figure 2 In the process shown in the figure, the secondary user uses a dual threshold energy detection algorithm to make a decision on the decision statistic, that is, to compare the decision statistic T with the threshold. If it is greater than the high threshold γ H , then it is determined that the main user signal exists. If it is less than the lower threshold γ L , then it is determined that the primary user does not exist; for γ L <T<γ H If the condition is not met, proceed to step S3.
[0044] For high threshold γ H and low threshold γ L Make the following instructions:
[0045] When the influence of noise uncertainty is not considered, the calculation formula of the decision statistic shows that the decision statistic T obeys the chi-square distribution. When the number of observation points N approaches infinity, according to the central limit theorem, the decision statistic T obeys the Gaussian distribution:
[0046]
[0047] Among them, σ s 2 is the average power of the primary user signal, The mean is μ and the variance is σ 2 Gaussian distribution. Assume that the signal-to-noise ratio ρ = σs 2 / σ n 2 , then the distribution of the decision statistic can be simplified to:
[0048]
[0049] Assuming the decision threshold is γ, the detection probability P can be obtained d and false alarm probability P f The theoretical calculation formulas are:
[0050]
[0051]
[0052] Where Q(·) is a commonly used function of the standard normal distribution, and its expression is as follows:
[0053]
[0054] Using the principle of constant false alarm probability, first set the target false alarm probability P f , then according to the detection probability P d and false alarm probability P f The theoretical calculation formula can be used to obtain the expression of the threshold γ:
[0055]
[0056] From the expression of the threshold γ, it can be seen that when the false alarm probability P f When the threshold γ is known, it only depends on the number of observation points N and the noise variance σ n 2 related.
[0057] However, the noise variance σ n 2 It is not a constant value. In actual situations, the noise variance is often estimated, but the noise is time-varying and its digital characteristics are uncertain. It will be affected by the temperature changes of the surrounding environment and will change and fluctuate randomly. In addition, the receiver will produce estimation errors when estimating the noise variance. This phenomenon is called noise uncertainty. When estimating the threshold γ according to the above threshold calculation formula, a large error will be generated. Therefore, it is necessary to introduce a noise uncertainty coefficient α, then the actual noise variance σ 2 It can be expressed as:
[0058]
[0059] The actual noise variance σ 2 Instead of the theoretical noise variance σ n 2 , substitute the false alarm probability Pf and the detection probability P d The calculation formula, considering the worst case, is:
[0060]
[0061]
[0062] Therefore, according to the idea of double threshold, we get the high threshold γ H and low threshold γ L The expressions are:
[0063]
[0064]
[0065] S3: If the first judgment cannot get an accurate result, the secondary user will Figure 2 The process shown uses the proportional coefficient λ sent by the fusion center to calculate the intermediate threshold and obtain the intermediate threshold γ I .
[0066] The proportionality factor λ is explained as follows:
[0067] Due to the false alarm probability P f and the detection probability P d Both are negatively correlated with the threshold value, and the algorithm has a detection probability P d At the same time, it also has a high false alarm probability P f Therefore, combined with the historical channel utilization rate obtained by the fusion center, the decision error probability standard is used to comprehensively evaluate the detection performance of the algorithm, and its expression is:
[0068] P e =(1-ε)P f +ε(1-P d )
[0069] Among them, ε is the average utilization rate of the channel sent by the fusion center.
[0070] The decision error probability (DEP) is closely related to the actual detection probability and the actual false alarm probability, which in turn depend on the decision threshold γ. The high and low decision thresholds are related to the noise variance σ. n 2 , the signal-to-noise ratio, and the adaptive intermediate threshold are related to the proportional coefficient λ. Therefore, the fusion center needs to issue a suitable proportional coefficient to minimize the probability of decision error:
[0071] λ opt =argminP e (σ n 2, SNR, ε, λ)
[0072] At the fusion center, this example uses the traversal solution method to obtain λ opt And send it to each secondary user, then each secondary user can calculate the intermediate threshold γ I :
[0073] γ I =(1-λ opt )γ L +λ opt γ H .
[0074] S4: The secondary user compares the mean T′ of the historical decision statistic T with the intermediate threshold γ I Compare and judge, if it is greater than the threshold γ I , then it is determined that the primary user signal exists, otherwise it is determined that it does not exist.
[0075] The mean value T′ of the historical decision statistic is explained as follows:
[0076] In order to obtain better detection performance, when the decision statistic T obtained by this perception calculation falls between two thresholds, the mean T′ of the decision statistics of the past L times is calculated according to the perception slot width L, and it is compared with the middle threshold to obtain the result. In this way, a perception result can be obtained within each perception time.
[0077] For a cold-start node, that is, when the current total number of perceptions is less than the perception slot width L, the calculation formula for the average decision statistic T′ is expressed as:
[0078]
[0079] Where num is the current number of perceptions.
[0080] S5: M secondary users upload the local decision results obtained through steps S1-S4 to the fusion center;
[0081] S6: The fusion center aggregates the local decision results of M secondary users participating in the collaboration, uses the "K-rank" fusion criterion to make a hard decision, and finally obtains a global decision result on whether there is a primary user signal in the detected frequency band.
[0082] After steps S3 and S4, the M secondary users participating in the collaboration can obtain a local decision result in each sensing cycle. Due to the existence of channel fading in the actual signal transmission process, a single detector is likely to be affected by channel fading and make wrong decisions, affecting the detection results and reducing the detection accuracy, thereby causing interference to the primary user.
[0083] Therefore, this embodiment adopts a collaborative detection method. The collaborative detection model is as follows: Figure 4 As shown. Each secondary user sends the local decision result to the fusion center, and the fusion center obtains the final global decision result based on the "K-rank" fusion criterion. In this way, even if a secondary user with a bad channel environment gets an incorrect decision result locally, it can be corrected by the fusion center and other secondary users who get the correct decision. The specific instructions are as follows:
[0084] First, M secondary users perceive and judge the signal to be measured, and obtain the local judgment result D under this round of perception. i , i = 1, 2, 3, ..., M:
[0085]
[0086] The specific "K-rank" fusion criterion is: when K or more of the M secondary users believe that the channel is busy, the fusion center determines that the channel is occupied.
[0087] In another embodiment of the present invention, a Monte Carlo simulation method is used to first compare the performance of the present invention, the dual threshold energy detection algorithm and the single threshold energy detection algorithm on a single user. Under an AWGN channel, a BPSK signal with a center frequency of 1000 Hz is sampled at a frequency of 5000 Hz, the sensing time is 0.1 s, the number of Monte Carlo experiments is 2500 times, the average channel utilization rate is 0.5, the proportionality coefficient is 0.6, the target false alarm probability is 0.01, the target detection probability is 0.99, the noise uncertainty is 1.1, and the sensing slot width L=3.
[0088] like Figure 5 As shown, it can be seen that under the condition of constant false alarm probability, even if a single user uses the method proposed by the present invention, its final detection probability and DEP are better than the dual-threshold energy detection algorithm and the single-threshold energy detection algorithm.
[0089] Secondly, in terms of collaborative detection, the collaborative spectrum sensing algorithm (FC-DEP) in which each secondary user uses the proportional coefficient issued by the fusion center, the collaborative spectrum sensing algorithm based on single threshold energy detection (S-DEP), and the collaborative spectrum sensing algorithm based on dual threshold energy detection (D-DEP) are compared. Assuming that the number of users participating in collaborative sensing is 5, the signal-to-noise ratio of each secondary user is added with a random number of [-3,0] on the same basis, the number of Monte Carlo experiments is 2500, the target false alarm probability is 0.01, the target detection probability is 0.99, the proportional coefficient is set to 0.6, the sensing slot L = 5, the average channel utilization is 0.3 and 0.7, the noise uncertainty is 1.05, and K = 2.
[0090] like Figure 6As shown, it can be seen that under the condition of constant false alarm probability, when the average channel utilization rate is low and when it is low, the detection performance of the method proposed in the present invention is better than the other two detection algorithms.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A three-threshold cooperative spectrum sensing method with an adaptive intermediate threshold, characterized in that: The method comprises the following steps: S1, M independent secondary users sample and receive the radio frequency signal s(t) in the electromagnetic environment, and use the sampled signal to calculate the decision statistic T; S2, the secondary user uses a dual threshold energy detection algorithm to make a decision on the decision statistic, that is, to compare the decision statistic T with the threshold. If it is greater than the high threshold γ H , then it is determined that the main user signal exists. If it is less than the lower threshold γ L , it is determined that the primary user signal does not exist; S3. If the decision statistic is γ L <T<γ H The secondary user calculates the intermediate threshold according to the proportional coefficient issued by the fusion center, and obtains the intermediate threshold γ I ; S4, the secondary user compares the mean T′ of the historical decision statistic T with the intermediate threshold γ I Compare and judge, if it is greater than the threshold γ I , then it is determined that the primary user signal exists, otherwise it is determined that it does not exist; S5. M secondary users upload the local decision results obtained in steps S1 to S4 to the fusion center; S6. The fusion center aggregates the local decision results of M secondary users participating in the collaboration, uses the K-rank fusion criterion to make a hard decision, and finally obtains a global decision result on whether there is a primary user signal in the detected frequency band.
2. The spectrum sensing method according to claim 1, characterized in that: In step S2, the high threshold γ H It is expressed as: The low threshold γ L It is expressed as: Where N is the number of observation points in the target frequency band, Q(·) is the commonly used function of the standard normal distribution, and P f represents the false alarm probability, P d represents the detection probability, α represents the noise uncertainty coefficient, σ n 2 represents the noise variance, and SNR represents the signal-to-noise ratio.
3. The spectrum sensing method according to claim 1, characterized in that: In step S3, the proportional coefficient issued by the fusion center is the proportional coefficient that minimizes the probability of decision error, that is: l opt =argminP e (s n 2 ,SNR,e,l) In the formula, ε represents the average channel utilization, and λ is the proportional coefficient that minimizes the probability of decision error.
4. The spectrum sensing method according to claim 3, characterized in that: In step S3, the intermediate threshold is calculated by the proportionality coefficient λ opt , high threshold γ H and low threshold γ L The calculation results are: c I =(1-λ opt )c L +λ opt c H 。 5. The spectrum sensing method according to claim 1, characterized in that: In step S4, the mean of the decision statistic is calculated as follows: Where num represents the current number of perceptions.
