CN112087275B - Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model - Google Patents

Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model Download PDF

Info

Publication number
CN112087275B
CN112087275B CN202010855944.2A CN202010855944A CN112087275B CN 112087275 B CN112087275 B CN 112087275B CN 202010855944 A CN202010855944 A CN 202010855944A CN 112087275 B CN112087275 B CN 112087275B
Authority
CN
China
Prior art keywords
value
hidden
iteration
equal
distribution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010855944.2A
Other languages
Chinese (zh)
Other versions
CN112087275A (en
Inventor
贾忠杰
金明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo University
Original Assignee
Ningbo University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo University filed Critical Ningbo University
Priority to CN202010855944.2A priority Critical patent/CN112087275B/en
Publication of CN112087275A publication Critical patent/CN112087275A/en
Application granted granted Critical
Publication of CN112087275B publication Critical patent/CN112087275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a cooperative spectrum sensing method based on a birth and death process and a viscous hidden Markov model, which takes the corresponding received signal power of each cognitive user in each channel as the observation data of the hidden Markov model, and then determines the hidden state of the observation data, the probability of various hidden states and a state transition probability matrix; introducing a viscosity factor to obtain a viscous hidden Markov model; calculating a clustering result of a hidden state of the observation data under each iteration, updating the clustering result and the category number of the hidden state through a birth and death process, and calculating a state transition probability matrix, a mean vector and a precision matrix; after iteration is finished, calculating the power estimation value of each cognitive user in each channel according to the channel power estimation values of various hidden states and the values of the hidden states in the last iteration, and comparing the power estimation values with a threshold value to determine whether the channel of one cognitive user is occupied by an authorized user; the method has the advantages that the spectrum sensing is carried out on a plurality of cognitive users, and the spectrum sensing performance is good.

Description

Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model
Technical Field
The invention relates to a multi-cognitive user spectrum sensing technology in cognitive radio, in particular to a cooperative spectrum sensing method based on a life-saving process and a viscous hidden Markov model.
Background
Compared with the fourth generation mobile communication technology, the fifth generation mobile communication (5G) technology can increase the data rate to 10Gbit/s, reduce the delay to 1 millisecond, and increase the number of connected devices by 100 times. Achieving these demands relies on a large amount of spectrum resources, but the available spectrum resources are limited and have been substantially allocated. In order to solve the problem of the shortage of spectrum resources of a wireless network, a common idea in the industry at present is to introduce a cognitive radio technology to improve the utilization rate of the spectrum resources. Different from a traditional system in which a frequency band is authorized and occupied by a single user, the wireless network can intelligently detect the frequency band occupation situation from the environment through the cognitive radio spectrum sensing technology, so that the cognitive user can intelligently access the idle authorized frequency band.
In recent years, various spectrum sensing methods have been proposed. Non-cooperative spectrum sensing methods such as energy detection and matched filter detection are used only, and independent decisions are made by the methods according to detection information of other nearby cognitive users; these methods are easily disturbed by the environment, making wrong decisions and making the perception performance unsatisfactory. In order to solve the technical problems of the non-cooperative spectrum sensing method, a cooperative spectrum sensing concept is introduced, and spatial diversity is used so that cognitive users can cooperate and exchange sensing information in a dynamic wireless environment. However, the existing cooperative spectrum sensing scheme often uses hard decision (i.e. the cognitive users only send the local decision result to the fusion center for global decision), and it does not consider more sensing information (such as sample average power information) of each cognitive user and malicious user interference that may exist in the scene, so that the spectrum sensing performance is generally not ideal.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a cooperative spectrum sensing method based on a birth and death process and a viscous hidden Markov model, which is used for sending sample average power information obtained by a plurality of cognitive users from a channel to a fusion center for fusion judgment, thereby realizing spectrum sensing of the cognitive users at a plurality of spatial positions and having good spectrum sensing performance.
The technical scheme adopted by the invention for solving the technical problems is as follows: a cooperative spectrum sensing method based on a birth and death process and a viscous hidden Markov model is characterized by comprising the following steps:
the method comprises the following steps: the method comprises the steps that J cognitive users and L channels exist in a cognitive radio system, each cognitive user samples signals in each channel for N times at equal time intervals, the signals in one channel are sampled by one cognitive user to obtain N samples, the nth sample obtained by sampling the signals in the ith channel by the jth cognitive user is recorded as the nth sample
Figure BDA0002646374120000021
Then, calculating the corresponding received signal power of each cognitive user in each channel, and recording the corresponding received signal power of the jth cognitive user in the ith channel as
Figure BDA0002646374120000022
If the j cognitive user is not a malicious user, then
Figure BDA0002646374120000023
I.e. the average power of all samples obtained by sampling the signal in the ith channel by the jth cognitive user,
Figure BDA0002646374120000024
and when N is more than or equal to 100 and less than or equal to 1000 according to the central limit theorem,
Figure BDA0002646374120000025
obeying a gaussian distribution:
Figure BDA0002646374120000026
if the j cognitive user is a malicious user, according to the central limit theorem when N is more than or equal to 100 and less than or equal to 1000,
Figure BDA0002646374120000027
obeying a gaussian distribution:
Figure BDA0002646374120000028
wherein J, L, N, J, i and N are positive integers, J is more than 1, L is more than 1, N is more than or equal to 100 and less than or equal to 1000, J is more than or equal to 1 and less than or equal to J, i is more than or equal to 1 and less than or equal to L, N is more than or equal to 1 and less than or equal to N, the symbol "" is a modulo symbol,
Figure BDA0002646374120000029
which is indicative of the power of the noise,
Figure BDA00026463741200000210
indicating the signal power of the authorized user received by the j cognitive user in the i channel,
Figure BDA00026463741200000211
indicating that the ith channel is not occupied by an authorized user,
Figure BDA00026463741200000212
indicating that the ith channel has been occupied by an authorized user,
Figure BDA00026463741200000213
to represent
Figure BDA00026463741200000214
Obey mean value of
Figure BDA00026463741200000215
Covariance of
Figure BDA00026463741200000216
The distribution of the gaussian component of (a) is,
Figure BDA0002646374120000031
to represent
Figure BDA0002646374120000032
Obey mean value of
Figure BDA0002646374120000033
Covariance of
Figure BDA0002646374120000034
The gaussian distribution of (c), PM denotes the interference power,
Figure BDA0002646374120000035
to represent
Figure BDA0002646374120000036
Obey mean value of
Figure BDA0002646374120000037
Covariance of
Figure BDA0002646374120000038
The distribution of the gaussian component of (a) is,
Figure BDA0002646374120000039
to represent
Figure BDA00026463741200000310
Obey mean value of
Figure BDA00026463741200000311
Covariance of
Figure BDA00026463741200000312
(ii) a gaussian distribution of;
step two: taking a vector formed by the received signal power corresponding to each cognitive user in all channels as one observation datum in a hidden Markov model, taking a vector formed by the received signal power corresponding to the jth cognitive user in all channels as the jth observation datum in the hidden Markov model, and marking as xj
Figure BDA00026463741200000313
Then determining a hidden state corresponding to each observation data in the hidden Markov model, and determining xjThe corresponding hidden state is recorded as zj,zjIs the interval [1, K ]]Is a value of (a) if zjIf the value of (1) is xjBelongs to class 1 hidden state if zjIf k is the value of (a), x is considered to bejBelongs to class k hidden state if zjIf the value of (A) is K, then x is considered to bejBelong to class K hidden state; then calculating the probability of each observation data in the hidden Markov model belonging to various hidden states, and calculating the probability of each observation data in the hidden Markov modeljThe probability of belonging to class k hidden states is noted
Figure BDA00026463741200000314
Finally, calculating a state transition probability matrix in the hidden Markov model, and marking as Q,
Figure BDA00026463741200000315
wherein the content of the first and second substances,
Figure BDA00026463741200000316
indicating the corresponding received signal power of the j-th cognitive user in the 1 st channel,
Figure BDA00026463741200000317
represents the corresponding received signal power of the j cognitive user in the L channel, K and K are positive integers, K represents the category number of the hidden state set in the hidden Markov model, K is more than or equal to 2 and less than or equal to 10, K is more than or equal to 1 and less than or equal to K,
Figure BDA0002646374120000041
denotes xjObeyed Gaussian distributed probability density function with variable xjMean vector of μkThe covariance matrix is
Figure BDA0002646374120000042
μkA mean vector representing a gaussian distribution belonging to class k hidden states,
Figure BDA0002646374120000043
covariance matrix, Lambda, representing a Gaussian distribution belonging to class k hidden stateskInverse of a covariance matrix, Q, which is a precision matrix representing a Gaussian distribution belonging to class k hidden states1,1、Q1,2、Q1,k'、Q1,KCorresponding to the element in Q, which represents the 1 st row and 1 st column, the 1 st row and 2 nd column, the 1 st row and K' th column, and the 1 st row and K column2,1、Q2,2、Q2,k'、Q2,KCorresponding to the element in Q, which represents the 2 nd row, 1 st column, the 2 nd row, 2 nd column, the 2 nd row, K' th column and the 2 nd row, K columnk,1、Qk,2、Qk,k'、Qk,KCorresponding to the element of the kth row and the 1 st column, the element of the kth row and the 2 nd column, the element of the kth row and the kth' column and the element of the kth row and the kth column in Q, QK,1、QK,2、QK,k'、QK,KElements in line K, line 1, line K, line 2, line K, line K', line Q,Elements in the K-th row and the K-th column, K' is more than or equal to 1 and less than or equal to K, Qk,k'Denotes zj'-1K under the condition of zj'J' is not less than 2 and not more than J, zj'-1Represents the j' -1 st observation data x in the hidden Markov modelj'-1Corresponding hidden state, zj'Representing the jth' observation x in a hidden Markov modelj'The corresponding hidden state;
step three: introducing a viscosity factor into the hidden Markov model to obtain a viscous hidden Markov model; in the viscous hidden Markov model, the mean vector and precision matrix of Gaussian distribution belonging to each class of hidden state are initialized, and mu is calculatedkIs recorded as
Figure BDA0002646374120000044
Figure BDA0002646374120000045
Will be ΛkIs recorded as
Figure BDA0002646374120000046
I is an L-order identity matrix; initializing the class number K of the hidden state, and recording the initialization value of K as K(0),K(0)Is the interval [2,10]Any positive integer within; initializing the state transition probability matrix Q, and recording the initialization value of Q as Q(0),Q(0)The conjugate prior distribution of all elements in each row in (a) obeys a dirichlet distribution, Q(0)K of (1)(0)The conjugate prior distribution of all elements in a row obeys a dirichlet distribution of:
Figure BDA0002646374120000047
wherein the content of the first and second substances,
Figure BDA0002646374120000048
represents Q(0)K of (1)(0)All elements in the row, Dir () represent dirichlet distribution, γ represents the parameters of dirichlet distribution, κ represents the viscosity factor, δ (k)(0)1) two parameters are respectively k(0)And 1 Crohn's linerFunction, δ (k)(0),k'(0)) Denotes that the two parameters are respectively k(0)And k'(0)Kronecker function of (d), δ (k)(0),K(0)) Denotes that the two parameters are respectively k(0)And K(0)The function of the kronecker function of (c),
Figure BDA0002646374120000051
γ+κδ(k(0)1) denotes the 1 st element of the Dirichlet distribution, to which the conjugate prior distribution is subjected, γ + κ δ (k)(0),k'(0)) Denotes the k 'of the Dirichlet distribution to which the conjugate prior distribution obeys here'(0)Element, γ + κ δ (k)(0),K(0)) Kth of Dirichlet distribution representing the conjugate prior distribution obeyed herein(0)Element, 1. ltoreq. k(0)≤K(0),1≤k'(0)≤K(0)
Step four: let t represent the number of iterations, the initial value of t is 1; let tmaxIndicates the set maximum number of iterations, tmax≥3;
Step five: calculating the hidden state clustering result corresponding to all observation data in the viscous hidden Markov model under the t-th iteration, and recording as z(t)
Figure BDA0002646374120000052
Wherein the content of the first and second substances,
Figure BDA0002646374120000053
expression makes p (z | X, Q)(t-1)(t-1)(t-1)) Taking the value of a maximum value time variable z, wherein z is a vector formed by hidden states corresponding to all observation data in the viscous hidden Markov model, and z is [ z ═ z1,z2,…,zj,…,zJ],z1Represents the 1 st observation x1Corresponding hidden state, z2Represents the 2 nd observation x2Corresponding hidden state, zJRepresents the J-th observed data xJCorresponding hidden states, X representing all observation data in a viscous hidden Markov modelMatrix, X ═ X1,x2,…,xj,…,xJ]When t is 1, Q(t-1)Is namely Q(0)Q when t is not equal to 1(t-1)Represents the value of the state transition probability matrix Q in the sticky hidden Markov model at the t-1 th iteration, when t is 1, mu(t-1)Is the initial value mu of mu(0),μ=[μ12,…,μK],μ1Mean vector, μ, representing a Gaussian distribution belonging to class 1 hidden states2Mean vector, μ, representing a Gaussian distribution belonging to class 2 hidden statesKA mean vector representing a gaussian distribution belonging to class K hidden states,
Figure BDA0002646374120000054
represents μ1The initial value of (a) is set,
Figure BDA0002646374120000055
represents μ2The initial value of (a) is set,
Figure BDA0002646374120000056
indicates belonging to the K(0)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA0002646374120000057
When the initialization value of (1), t ≠ 1 μ(t-1)Represents the value of μ at the t-1 th iteration,
Figure BDA0002646374120000058
represents μ1At the value at the t-1 th iteration,
Figure BDA0002646374120000059
represents μ2At the value at the t-1 th iteration,
Figure BDA00026463741200000510
is indicated as belonging to the K(t-1)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA00026463741200000511
Value at the t-1 th iteration, t 1 time Λ(t-1)I.e. the initial value Λ of the set Λ(0),Λ={Λ12,…,ΛK},Λ1Precision matrix, Λ, representing a gaussian distribution belonging to class 1 hidden states2Precision matrix, Λ, representing a gaussian distribution belonging to class 2 hidden statesKA precision matrix representing a gaussian distribution belonging to class K hidden states,
Figure BDA0002646374120000061
Figure BDA0002646374120000062
is represented by1The initial value of (a) is set,
Figure BDA0002646374120000063
is represented by2The initial value of (a) is set,
Figure BDA0002646374120000064
indicates belonging to the K(0)Accuracy matrix of Gaussian distribution of class hidden state
Figure BDA0002646374120000065
When t ≠ 1, Λ(t-1)Representing the value of the set a at the t-1 st iteration,
Figure BDA0002646374120000066
is represented by1At the value at the t-1 th iteration,
Figure BDA0002646374120000067
is represented by2At the value at the t-1 th iteration,
Figure BDA0002646374120000068
indicates belonging to the K(t-1)Accuracy matrix of Gaussian distribution of class hidden state
Figure BDA0002646374120000069
At the value at the t-1 th iteration,k when t is 1(t-1)Is the initial value K of K(0)K when t ≠ 1(t-1)Denotes the value of K at the t-1 iteration, p (z | X, Q)(t-1)(t-1)(t-1)) The posterior probability of z is obtained according to Bayes theorem
Figure BDA00026463741200000610
p(zj|X,Q(t-1)(t-1)(t-1)) Denotes zjThe symbol ". alpha." indicates a direct ratio, xj+1Denotes the j +1 th observation, xj+2Denotes the j +2 th observation, p (z)j,x1,x2,...,xj|Q(t-1)(t-1)(t-1)) Denotes zj,x1,x2,...,xjJoint probability of p (x)j+1,xj+2,...,xJ|zj,Q(t-1)(t-1)(t-1)) Denotes zjUnder the condition of (1) xj+1,xj+2,...,xJJoint probability of p (z)j,x1,x2,...,xj|Q(t-1)(t-1)(t-1)) And p (x)j+1,xj+2,...,xJ|zj,Q(t-1)(t-1)(t-1)) Calculating by a forward and backward algorithm;
step six: updating z by a birth-kill process(t)Further, the value K of the class number K of the hidden state in the viscous hidden Markov model at the t-th iteration is calculated(t)The specific process is as follows:
1) statistics z(t)Median value equal to interval [1, K(t-1)]Total number of elements of each value in, will z(t)Median value equal to k(t-1)Total number of elements of (1) is recorded as
Figure BDA00026463741200000611
2) Press 1, …, k(t-1),…,K(t-1)Num is arranged from small to large1To
Figure BDA00026463741200000612
Obtaining a statistical number arrangement sequence;
3) if the statistical number sequence has only one value of 0 and K: (t-1) Not equal to 2, assume that the 0 value corresponds to the interval [1, K-(t -1)]K in (1)(t-1)Then z will be(t)Median value is respectively equal to (k +1)(t-1)To K(t-1)All the values of z are reduced by 1, and the updated z is obtained(t)Is newly recorded as z*(t)And order K(t)=K(t-1)-1, performing step seven again; if the statistical number is only one 0 value and K in the permutation sequence(t-1)If 2, or the statistical number array sequence has a plurality of 0 values, executing step 4); if there is no 0 value in the statistical number permutation sequence and K is(t-1)If < 10, randomly generating a starting value from 1 to J, and recording the starting value as JminFrom JminRandomly generating an end value of J, and recording the end value as JmaxWill z(t)In (1)
Figure BDA0002646374120000071
Are all set to K(t-1)+1, z to be updated(t)Is newly recorded as z*(t)And order K(t)=K(t-1)+1, then executing step seven; if the statistical number array sequence is other than the four cases, keeping z(t)Without change, will z(t)Is newly recorded as z*(t)And order K(t)=K(t-1)Then, the seventh step is executed;
4) when the ω -th value in the statistical number permutation sequence is J, the 1 st to ω -1 th and the ω +1 th to Kth(t-1)Values are all 0 i.e. z(t)Is equal to ω, randomly generating a starting value from 1 to J, denoted as J'minFrom J'minTo J an end value, denoted J ', is randomly generated'maxWill z(t)In (1)
Figure BDA0002646374120000072
All are set to 2, z(t)In (1)
Figure BDA0002646374120000073
And
Figure BDA0002646374120000074
all the values of (a) are set to 1, and z after updating is carried out(t)Is newly recorded as z*(t)And order K(t)Step seven is executed again when the value is 2; when the statistical number array sequence has a plurality of 0 values and any non-0 value is not J, executing step 5);
5) let 0 have xi, for the 1 st 0 value and the 2 nd 0 value, assume that the 1 st 0 value corresponds to the interval [1, K(t-1)]K in (1)(t-1)And the 2 nd 0 value corresponding interval [1, K ](t-1)]Middle (k + upsilon)(t-1)Then z will be(t)Median value is respectively equal to (k +1)(t-1)To (k + upsilon-1)(t-1)All the values of (a) minus 1; for the 2 nd 0 value and the 3 rd 0 value, assume that the 2 nd 0 value corresponds to the interval [1, K(t -1)]Middle (k + upsilon)(t-1)And the 3 rd 0 value corresponding interval [1, K ](t-1)]In (1)
Figure BDA0002646374120000076
Then z will be(t)Median value is respectively equal to (k + upsilon +1)(t-1)To (k + zeta-1)(t-1)All the values of (a) minus 2; by analogy, for the xi-1 0 values and the xi 0 values, suppose that the xi-1 0 values correspond to the interval [1, K(t-1)]In
Figure BDA0002646374120000077
The xi 0 value corresponds to the interval [1, K ](t-1)]Middle (k + ρ)(t-1)Then z will be(t)Median values are respectively equal to
Figure BDA0002646374120000075
To (k + rho-1)(t-1)All the values of the elements of (1) are decremented by ξ -1; then z is mixed(t)Median value is equal to (k + ρ +1)(t-1)To K(t-1)All the values of (1) are decremented; will updated z(t)Is newly recorded as z*(t)And order K(t)=K(t-1)ξ, then step seven is performed;
above, k(t-1)Is the interval [1, K(t-1)]K of (1)(t-1)Value, Num1Denotes z(t)The total number of elements whose median value is equal to 1,
Figure BDA0002646374120000081
denotes z(t)Median value equal to K(t-1)The total number of the elements (1 ≤ omega ≤ K(t-1),1≤Jmin≤Jmax≤J,
Figure BDA0002646374120000082
Corresponding to represents z(t)J in (1)minElement, item Jmin+1 element, …, Jmax1 is not more than J'min≤J'max≤J,
Figure BDA0002646374120000083
Corresponding to represents z(t)J 'of (1)'minElement, J'min+1 elements, …, J'maxThe number of the elements is one,
Figure BDA0002646374120000084
corresponding to represents z(t)The 1 st element, the 2 nd element, …, the J'min-1 element of the group consisting of,
Figure BDA0002646374120000085
corresponding to represents z(t)J 'of (1)'max+1 elements, J'max+2 elements, …, J element, 1 < xi < K(t-1)
Figure BDA0002646374120000086
K(t)=K(t-1)Wherein "═ is an assigned symbol,
Figure BDA0002646374120000087
denotes z1The value after the birth and death process at the t-th iteration,
Figure BDA0002646374120000088
denotes z2The value after the birth and death process at the t-th iteration,
Figure BDA0002646374120000089
denotes zjThe value after the birth and death process at the t-th iteration,
Figure BDA00026463741200000810
denotes zJThe value after the birth and death process under the t-th iteration;
step seven: calculating the value of the state transition probability matrix Q in the viscous hidden Markov model at the t-th iteration, and recording as Q(t),Q(t)K of (1)(t)The conjugate prior distribution of all elements in a row obeys a dirichlet distribution of:
Figure BDA00026463741200000811
Q(t)k of (1)(t)The posterior distribution of all elements in a row obeys a dirichlet distribution of:
Figure BDA00026463741200000812
Figure BDA00026463741200000817
wherein k is more than or equal to 1(t)≤K(t),1≤k'(t)≤K(t)
Figure BDA00026463741200000813
Represents Q(t)K of (1)(t)All of the elements in the row are,
Figure BDA00026463741200000814
denotes the time from kth (k) after the birth and death process at the t-th iterationt) The amount of observation data that class hidden state transitions to class 1 hidden state,
Figure BDA00026463741200000815
representing the k-th iteration after the birth and death process(t)Class hidden State transition to kth'(t)The number of observations of the class hidden state,
Figure BDA00026463741200000816
representing the k-th iteration after the birth and death process(t)Class hidden state transition to Kth(t)Number of observations like hidden states, δ (k)(t)1) two parameters are respectively k(t)And a Crohn's function of 1, δ (k)(t),k'(t)) Denotes that the two parameters are respectively k(t)And k'(t)Kronecker function of (d), δ (k)(t),K(t)) Denotes that the two parameters are respectively k(t)And K(t)The function of the kronecker function of (c),
Figure BDA0002646374120000091
γ+κδ(k(t)1) denotes the 1 st element of the Dirichlet distribution, γ + κ δ (k), to which the conjugate prior distribution here follows(t),k'(t)) Denotes the k 'of the Dirichlet distribution to which the conjugate prior distribution obeys here'(t)Element, γ + κ δ (k)(t),K(t)) Kth of Dirichlet distribution representing the conjugate prior distribution obeyed herein(t)The number of the elements is one,
Figure BDA0002646374120000092
representing the 1 st element of the dirichlet distribution to which the posterior distribution here obeys,
Figure BDA0002646374120000093
denotes the k 'of the Dirichlet distribution to which the posterior distribution is subjected'(t)The number of the elements is one,
Figure BDA0002646374120000094
k < th > of a Dirichlet distribution representing the posterior distribution obeyed by the distribution here(t)An element;
step eight: all the observation data belonging to the same kind of hidden state are utilized, according to Bayes' theorem,calculated at X and z*(t)Determining the value μ of μ at the t-th iteration(t)And Λ value of Λ at the t-th iteration(t)A posterior probability of (D), is recorded as
Figure BDA0002646374120000095
Wherein, mu(t)Represents the value of μ at the t-th iteration,
Figure BDA0002646374120000096
represents μ1At the value at the t-th iteration,
Figure BDA0002646374120000097
indicates belonging to the k-th(t)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA0002646374120000098
At the value at the t-th iteration,
Figure BDA0002646374120000099
indicates belonging to the K(t)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA00026463741200000910
Value at the t-th iteration, Λ(t)Denotes the value of a at the t-th iteration,
Figure BDA00026463741200000911
is given by1At the value at the t-th iteration,
Figure BDA00026463741200000912
indicates belonging to the k-th(t)Accuracy matrix of Gaussian distribution of class hidden state
Figure BDA00026463741200000913
At the value at the t-th iteration,
Figure BDA00026463741200000914
indicates belonging to the K(t)Gaussian distribution of class hidden statesIs measured in a precision matrix
Figure BDA00026463741200000915
At the value at the t-th iteration,
Figure BDA00026463741200000916
to represent
Figure BDA00026463741200000917
Obeying a probability density function of a Gaussian distribution having a variable of
Figure BDA00026463741200000918
Mean vector of
Figure BDA00026463741200000919
The covariance matrix is
Figure BDA00026463741200000920
Figure BDA00026463741200000921
Represent
Figure BDA00026463741200000922
Obeying a probability density function of a Weisset distribution having the variables
Figure BDA00026463741200000923
The scale matrix is
Figure BDA00026463741200000924
Degree of freedom of
Figure BDA00026463741200000925
Figure BDA0002646374120000101
Figure BDA0002646374120000102
Symbol "()T"is a transposed symbol that is used to identify,
Figure BDA0002646374120000103
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)The number of observations of the class hidden state,
Figure BDA0002646374120000104
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)The average of all observed data for the class hidden state,
Figure BDA0002646374120000105
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)Class i hidden state
Figure BDA0002646374120000106
Individual observation data, η0、m0、W0、ν0Are all constants;
step nine: judging t < tmaxIf yes, making t equal to t +1, and then returning to the fifth step to continue iteration; if not, executing step ten; wherein, t is in t +1, and is an assignment symbol;
step ten: mu to(t)The value of each column element in the (b) is used as the power estimation value of L channels corresponding to a type of hidden state, namely mu(t)K of (1)(t)The value of the column element being the kth(t)Power estimation values of L channels of similar hidden state, specifically, mu(t)K of (1)(t)The value of the ith element in the column element is taken as the k(t)Power estimation value of ith channel of similar hiding state; then, calculating the power estimation value of each cognitive user in each channel according to the power estimation value of L channels of each type of hidden state and the value of the hidden state corresponding to each observation data after the extinction process under the t-th iteration, and recording the power estimation value of the j-th cognitive user in all channels as betajIf, if
Figure BDA0002646374120000107
Then beta isjIs equal to kth(t)The power estimates for the L channels that resemble the hidden state,
Figure BDA0002646374120000108
then comparing the power estimation value of each cognitive user in each channel with a threshold value, and comparing the power estimation value of each cognitive user in each channel with the threshold value
Figure BDA0002646374120000109
If it is not
Figure BDA00026463741200001010
If the number of the channels is smaller than the threshold value, the ith channel at the jth cognitive user is considered to be not occupied by the authorized user, and the ith channel is used as an available channel; if it is used
Figure BDA00026463741200001011
If the channel number is larger than or equal to the threshold value, the ith channel at the jth cognitive user is considered to be occupied by an authorized user and cannot be used by the cognitive user; wherein the content of the first and second substances,
Figure BDA00026463741200001012
indicating the power estimated value of the j cognitive user in the 1 st channel if
Figure BDA00026463741200001013
Then
Figure BDA00026463741200001014
Is equal to kth(t)The power estimate of the 1 st channel like the hidden state,
Figure BDA00026463741200001015
indicating the power estimated value of the j cognitive user in the i channel if
Figure BDA0002646374120000111
Then the
Figure BDA0002646374120000112
Is equal to kth(t)Of class hidden stateThe power estimate for the ith channel,
Figure BDA0002646374120000113
indicating the power estimated value of the jth cognitive user in the Lth channel if
Figure BDA0002646374120000114
Then
Figure BDA0002646374120000115
Is equal to kth(t)The threshold value of the power estimated value of the L-th channel of the similar hidden state is calculated according to the given false alarm probability.
Compared with the prior art, the invention has the advantages that:
1) the method is suitable for performing cooperative spectrum sensing on signals obtained by a plurality of cognitive users from a channel, and in the cooperative spectrum sensing process, the sample average power information obtained by the plurality of cognitive users from the channel is sent to a fusion center for fusion judgment, so that spectrum sensing on the cognitive users at a plurality of spatial positions is realized.
2) The method of the invention builds a viscous hidden Markov model by adding viscous factors between adjacent cognitive users to increase the channel state correlation between the adjacent cognitive users, and because the channel state correlation between the adjacent cognitive users in the multi-cognitive users is used for detecting the frequency spectrum of the multi-cognitive users, the method of the invention can fully improve the frequency spectrum utilization rate of all channels under the same condition.
3) The method of the invention utilizes the channel state correlation between adjacent cognitive users in the plurality of cognitive users, thereby effectively reducing the influence of environmental interference, resisting the attack of malicious users on the cognitive radio network, simultaneously carrying out spectrum sensing on the plurality of cognitive users and having good detection performance.
4) The method of the invention utilizes the specific effective clustering capability of the viscous hidden Markov model to the observed data, thereby realizing rapid convergence and having lower computational complexity.
5) The method of the invention can automatically adjust the category total number of the frequency spectrum state because of utilizing the birth and death process, thereby enabling the algorithm to be more flexible.
Drawings
FIG. 1 is a block diagram of an overall implementation of the method of the present invention;
fig. 2 shows ROC curves when the number of malicious users is 5 and the interference power of the malicious users is 0dBm, 10dBm, and 20dBm, respectively.
Detailed Description
The invention is described in further detail below with reference to the following examples of the drawings.
The invention provides a cooperative spectrum sensing method based on a birth and death process and a viscous hidden Markov model, the overall implementation block diagram of which is shown in figure 1, and the cooperative spectrum sensing method comprises the following steps:
the method comprises the following steps: the method comprises the steps that J cognitive users and L channels exist in a cognitive radio system, each cognitive user samples signals in each channel for N times at equal time intervals, the signals in one channel are sampled by one cognitive user to obtain N samples, the nth sample obtained by sampling the signals in the ith channel by the jth cognitive user is recorded as the nth sample
Figure BDA0002646374120000121
Then, calculating the corresponding received signal power of each cognitive user in each channel, and recording the corresponding received signal power of the jth cognitive user in the ith channel as
Figure BDA0002646374120000122
If the j cognitive user is not a malicious user, then
Figure BDA0002646374120000123
I.e. the average power of all samples obtained by sampling the signal in the ith channel by the jth cognitive user,
Figure BDA0002646374120000124
and when N is more than or equal to 100 and less than or equal to 1000 according to the central limit theorem,
Figure BDA0002646374120000125
obeying a gaussian distribution:
Figure BDA0002646374120000126
if the j cognitive user is a malicious user, according to the central limit theorem when N is more than or equal to 100 and less than or equal to 1000,
Figure BDA0002646374120000127
obeying a gaussian distribution:
Figure BDA0002646374120000128
wherein J, L, N, J, i and N are positive integers, J is more than 1, L is more than 1, N is more than or equal to 100 and less than or equal to 1000, and when the value of N is too large (N is more than 1000), too many samples are sampled, which can cause the reduction of the operation speed, therefore, only the value of N is required to be ensured to be sufficiently large, when N is sufficiently large, according to the central limit theorem,
Figure BDA0002646374120000129
obeying Gaussian distribution, J is more than or equal to 1 and less than or equal to J, i is more than or equal to 1 and less than or equal to L, N is more than or equal to 1 and less than or equal to N, the symbol "|" is a modulo symbol,
Figure BDA00026463741200001210
which is indicative of the power of the noise,
Figure BDA00026463741200001211
indicating the signal power of the authorized user received by the j cognitive user in the i channel,
Figure BDA00026463741200001212
indicating that the ith channel is not occupied by an authorized user,
Figure BDA00026463741200001213
indicating that the ith channel has been occupied by an authorized user,
Figure BDA00026463741200001214
to represent
Figure BDA00026463741200001215
Obey mean value of
Figure BDA00026463741200001216
Covariance of
Figure BDA00026463741200001217
The distribution of the gaussian component of (a) is,
Figure BDA00026463741200001218
to represent
Figure BDA00026463741200001219
Obey mean value of
Figure BDA00026463741200001220
Covariance of
Figure BDA00026463741200001221
The gaussian distribution of (c), PM, represents the interference power, and if a cognitive user is not a malicious user, there is no interference power,
Figure BDA0002646374120000131
to represent
Figure BDA0002646374120000132
Obey mean value of
Figure BDA0002646374120000133
Covariance of
Figure BDA0002646374120000134
The distribution of the gaussian component of (a) is,
Figure BDA0002646374120000135
to represent
Figure BDA0002646374120000136
Obey mean value of
Figure BDA0002646374120000137
Assisting partyThe difference is
Figure BDA0002646374120000138
A gaussian distribution of (a).
Step two: taking a vector formed by the received signal power corresponding to each cognitive user in all channels as one observation datum in a hidden Markov model, taking a vector formed by the received signal power corresponding to the jth cognitive user in all channels as the jth observation datum in the hidden Markov model, and marking as xj
Figure BDA0002646374120000139
Then determining a hidden state corresponding to each observation data in the hidden Markov model, and determining xjThe corresponding hidden state is recorded as zj,zjIs the interval [1, K ]]Is a value of (a) if zjIf the value of (1) is xjBelongs to class 1 hidden state if zjIf k is the value of (a), x is considered to bejBelongs to class k hidden state if zjIf the value of (A) is K, then x is considered to bejBelong to class K hidden state; then calculating the probability of each observation data in the hidden Markov model belonging to various hidden states, and calculating the probability of each observation data in the hidden Markov modeljThe probability of belonging to class k hidden states is noted
Figure BDA00026463741200001310
Finally, calculating a state transition probability matrix in the hidden Markov model, and marking as Q,
Figure BDA00026463741200001311
wherein the content of the first and second substances,
Figure BDA00026463741200001312
indicating the corresponding received signal power of the j-th cognitive user in the 1 st channel,
Figure BDA00026463741200001313
representing the corresponding received signal power of the j cognitive user in the L channel, wherein K and K are positive integers, and K represents the setting in a hidden Markov modelThe number of classes of hidden states is more than or equal to 2 and less than or equal to 10, and more than or equal to 1 and less than or equal to K,
Figure BDA00026463741200001314
denotes xjObeyed Gaussian distributed probability density function with variable xjMean vector of μkThe covariance matrix is
Figure BDA00026463741200001315
μkA mean vector representing a gaussian distribution belonging to class k hidden states,
Figure BDA00026463741200001316
covariance matrix, Lambda, representing a Gaussian distribution belonging to class k hidden stateskInverse of a covariance matrix, Q, which is a precision matrix representing a Gaussian distribution belonging to class k hidden states1,1、Q1,2、Q1,k'、Q1,KCorresponding to the element in Q, which represents the 1 st row and 1 st column, the 1 st row and 2 nd column, the 1 st row and K' th column, and the 1 st row and K column2,1、Q2,2、Q2,k'、Q2,KCorresponding to the element in Q, which represents the 2 nd row, 1 st column, the 2 nd row, 2 nd column, the 2 nd row, K' th column and the 2 nd row, K columnk,1、Qk,2、Qk,k'、Qk,KCorresponding to the element of the kth row and the 1 st column, the element of the kth row and the 2 nd column, the element of the kth row and the kth' column and the element of the kth row and the kth column in Q, QK,1、QK,2、QK,k'、QK,KCorrespondingly represents the elements of the K-th row and the 1 st column, the K-th row and the 2 nd column, the K-th row and the K '-th column, the elements of the K-th row and the K-th column in Q, wherein K' is more than or equal to 1 and less than or equal to K, and Qk,k'Denotes zj'-1K under the condition of zj'J' is not less than 2 and not more than J, zj'-1Represents the j' -1 st observation data x in the hidden Markov modelj'-1Corresponding hidden state, zj'Representing the jth' observation x in a hidden Markov modelj'The corresponding hidden state.
Step three: introducing a viscosity factor into the hidden Markov model to obtainTo a sticky hidden markov model; in the viscous hidden Markov model, the mean vector and precision matrix of Gaussian distribution belonging to each class of hidden state are initialized, and mu is calculatedkIs recorded as
Figure BDA0002646374120000141
Will be ΛkIs recorded as
Figure BDA0002646374120000142
I is an L-order identity matrix; initializing the class number K of the hidden state, and recording the initialization value of K as K(0),K(0)Is the interval [2,10]Within any positive integer, e.g. K(0)A value of 4; initializing the state transition probability matrix Q, and recording the initialization value of Q as Q(0),Q(0)The conjugate prior distribution of all elements in each row in (a) obeys a dirichlet distribution, Q(0)K of (1)(0)The conjugate prior distribution of all elements in a row obeys a dirichlet distribution of:
Figure BDA0002646374120000143
wherein the content of the first and second substances,
Figure BDA0002646374120000144
represents Q(0)K of (1)(0)All elements in the row, Dir () represent dirichlet distribution, γ represents the parameters of dirichlet distribution, κ represents the viscosity factor, δ (k)(0)1) two parameters are respectively k(0)And a Crohn's function of 1, δ (k)(0),k'(0)) Denotes that two parameters are respectively k(0)And k'(0)Kronecker function of (d), δ (k)(0),K(0)) Denotes that the two parameters are respectively k(0)And K(0)The function of the kronecker function of (c),
Figure BDA0002646374120000145
γ+κδ(k(0)1) denotes the 1 st element of the Dirichlet distribution, γ + κ δ (k), to which the conjugate prior distribution here follows(0),k'(0)) Denotes the conjugate prior score hereKth of cloth-compliant Dirichlet distribution'(0)Element, γ + κ δ (k)(0),K(0)) Kth of Dirichlet distribution representing the conjugate prior distribution obeyed herein(0)Element, 1. ltoreq. k(0)≤K(0),1≤k'(0)≤K(0)
Step four: let t represent the number of iterations, the initial value of t is 1; let tmaxIndicates the set maximum number of iterations, tmaxNot less than 3, in this example, t is takenmax=100。
Step five: calculating the hidden state clustering result corresponding to all observation data in the viscous hidden Markov model under the t-th iteration, and recording as z(t)
Figure BDA0002646374120000151
Wherein the content of the first and second substances,
Figure BDA0002646374120000152
expression makes p (z | X, Q)(t-1)(t-1)(t-1)) Taking the value of a maximum value time variable z, wherein z is a vector formed by hidden states corresponding to all observation data in the viscous hidden Markov model, and z is [ z ═ z1,z2,…,zj,…,zJ],z1Represents the 1 st observation data x1Corresponding hidden state, z2Represents the 2 nd observation x2Corresponding hidden state, zJRepresents the J-th observed data xJCorresponding hidden states, X represents a matrix formed by all observation data in the viscous hidden Markov model, and X is [ X [ ]1,x2,…,xj,…,xJ]When t is 1, Q(t-1)Is namely Q(0)Q when t is not equal to 1(t-1)Represents the value of the state transition probability matrix Q in the sticky hidden Markov model at the t-1 th iteration, when t is 1, mu(t-1)Is the initial value mu of mu(0),μ=[μ12,…,μK],μ1Mean vector, μ, representing a Gaussian distribution belonging to class 1 hidden states2Representing a Gaussian distribution belonging to hidden states of class 2Mean vector, μKA mean vector representing a gaussian distribution belonging to class K hidden states,
Figure BDA0002646374120000153
represents μ1The initial value of (a) is set,
Figure BDA0002646374120000154
represents μ2The initial value of (a) is set,
Figure BDA0002646374120000155
indicates belonging to the K(0)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA0002646374120000156
When the initialization value of (1), t ≠ 1 μ(t-1)Representing the value of mu at the t-1 iteration,
Figure BDA0002646374120000157
represents mu1At the value at the t-1 th iteration,
Figure BDA0002646374120000158
represents μ2At the value at the t-1 th iteration,
Figure BDA0002646374120000159
indicates belonging to the K(t-1)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA00026463741200001510
Value at the t-1 th iteration, t 1 time Λ(t-1)I.e. the initial value Λ of the set Λ(0),Λ={Λ12,…,ΛK},Λ1Precision matrix, Λ, representing a gaussian distribution belonging to class 1 hidden states2Precision matrix, Λ, representing a gaussian distribution belonging to class 2 hidden statesKA precision matrix representing a gaussian distribution belonging to class K hidden states,
Figure BDA00026463741200001511
Figure BDA00026463741200001512
is represented by1The initial value of (a) is set,
Figure BDA00026463741200001513
is represented by2The initial value of (a) is set,
Figure BDA00026463741200001514
indicates belonging to the K(0)Accuracy matrix of gaussian distribution of class hidden state
Figure BDA00026463741200001515
When t ≠ 1, Λ(t-1)Representing the value of the set a at the t-1 st iteration,
Figure BDA0002646374120000161
is represented by1At the value at the t-1 th iteration,
Figure BDA0002646374120000162
is represented by2At the value at the t-1 th iteration,
Figure BDA0002646374120000163
indicates belonging to the K(t-1)Accuracy matrix of Gaussian distribution of class hidden state
Figure BDA0002646374120000164
Value at the t-1 th iteration, K when t is 1(t-1)Is the initial value K of K(0)K when t ≠ 1(t-1)Denotes the value of K at the t-1 iteration, p (z | X, Q)(t-1)(t-1)(t-1)) The posterior probability of z is obtained according to Bayes theorem
Figure BDA0002646374120000165
p(zj|X,Q(t-1)(t-1)(t-1)) Denotes zjA posteriori ofProbability, symbol ". alpha." indicates a direct ratio, xj+1Denotes the j +1 th observation, xj+2Denotes the j +2 th observation, p (z)j,x1,x2,...,xj|Q(t-1)(t-1)(t-1)) Denotes zj,x1,x2,...,xjJoint probability of p (x)j+1,xj+2,...,xJ|zj,Q(t-1)(t-1)(t-1)) Denotes zjUnder the condition of (1) xj+1,xj+2,...,xJJoint probability of p (z)j,x1,x2,...,xj|Q(t-1)(t-1)(t-1)) And p (x)j+1,xj+2,...,xJ|zj,Q(t-1)(t-1)(t-1)) Calculated by the existing forward and backward algorithm.
Step six: updating z by a birth-kill process(t)Further, the value K of the class number K of the hidden state in the viscous hidden Markov model at the t-th iteration is calculated(t)The specific process comprises the following steps:
1) statistics z(t)Median value equal to interval [1, K ](t-1)]Total number of elements of each value in, will z(t)Median value equal to k(t-1)Total number of elements of (1) is recorded as
Figure BDA0002646374120000166
2) Press 1, …, k(t-1),…,K(t-1)Num is arranged from small to large1To
Figure BDA0002646374120000167
And obtaining a statistical number array sequence.
3) If the statistical number is only one 0 value in the permutation sequence and K is(t-1)Not equal to 2, assume that the 0 value corresponds to the interval [1, K-(t -1)]K in (1)(t-1)Then z will be(t)Median value is respectively equal to (k +1)(t-1)To K(t-1)All the values of z are reduced by 1, and the updated z is obtained(t)To resumeIs denoted by z*(t)And order K(t)=K(t-1)-1, performing step seven again; if the statistical number is only one 0 value and K in the permutation sequence(t-1)If 2, or the statistical number array sequence has a plurality of 0 values, executing step 4); if there is no 0 value in the statistical number permutation sequence and K is(t-1)If < 10, randomly generating a starting value from 1 to J, and recording the starting value as JminFrom JminRandomly generating an end value of J, and recording the end value as JmaxWill z(t)In (1)
Figure BDA0002646374120000171
Are all set to K(t-1)+1, z to be updated(t)Is newly recorded as z*(t)And order K(t)=K(t-1)+1, then executing step seven; if the statistical number array sequence is other than the four cases, keeping z(t)Without change, will z(t)Is newly recorded as z*(t)And order K(t)=K(t-1)And then step seven is executed.
4) When the ω -th value in the statistical number permutation sequence is J, the 1 st to ω -1 th and the ω +1 th to Kth(t-1)Values are all 0 i.e. z(t)Is equal to ω, randomly generating a starting value from 1 to J, denoted as J'minFrom J'minTo J an end value, denoted J ', is randomly generated'maxWill z(t)In (1)
Figure BDA0002646374120000172
All are set to 2, z(t)In (1)
Figure BDA0002646374120000173
And
Figure BDA0002646374120000174
all of which are set to 1, and the updated z(t)Is re-noted as z*(t)And order K(t)Step seven is executed again when the value is 2; and when the statistical number array sequence has a plurality of 0 values and any non-0 value is not J, executing the step 5).
5) Let 0 have xi, for the 1 st 0 value and the 2 nd 0 value, assume that the 1 st 0 value corresponds to the interval [1, K(t-1)]K in (1)(t-1)And the 2 nd 0 th value corresponds to the interval [1, K(t-1)]Middle (k + upsilon)(t-1)Then z will be(t)Median value is respectively equal to (k +1)(t-1)To (k + upsilon-1)(t-1)All the values of (a) minus 1; for the 2 nd 0 value and the 3 rd 0 value, assume that the 2 nd 0 value corresponds to the interval [1, K(t -1)]Middle (k + upsilon)(t-1)And the 3 rd 0 value corresponding interval [1, K ](t-1)]In (1)
Figure BDA00026463741200001711
Then z will be(t)Median value is respectively equal to (k + upsilon +1)(t-1)To
Figure BDA0002646374120000175
All the values of (a) minus 2; by analogy, for the xi-1 0 values and the xi 0 values, suppose that the xi-1 0 values correspond to the interval [1, K(t-1)]In (1)
Figure BDA0002646374120000176
The xi 0 value corresponds to the interval [1, K ](t-1)]Middle (k + ρ)(t-1)Then z will be(t)Median values are respectively equal to
Figure BDA0002646374120000177
To (k + rho-1)(t-1)All the values of the elements of (1) are decremented by ξ -1; then z is mixed(t)Median value is equal to (k + ρ +1)(t-1)To K(t-1)All the values of (1) are decremented; will updated z(t)Is newly recorded as z*(t)And order K(t)=K(t-1)ξ, then step seven is performed.
Above, k(t-1)Is the interval [1, K(t-1)]K of (1)(t-1)Value, Num1Denotes z(t)The total number of elements whose median value is equal to 1,
Figure BDA00026463741200001710
denotes z(t)Median value equal to K(t-1)The total number of the elements (1 ≤ omega ≤ K(t-1),1≤Jmin≤Jmax≤J,
Figure BDA0002646374120000178
Corresponding to represents z(t)J in (1)minElement, item Jmin+1 element, …, Jmax1 is not more than J'min≤J'max≤J,
Figure BDA0002646374120000179
Corresponding to represents z(t)J 'of (1)'minElement, J'min+1 elements, …, J'maxThe number of the elements is one,
Figure BDA0002646374120000181
corresponding to represents z(t)The 1 st element, the 2 nd element, …, the J'min-1 element of the group consisting of,
Figure BDA0002646374120000182
corresponding to represents z(t)J 'of (1)'max+1 elements, J'max+2 elements, …, J element, 1 < xi < K(t-1)
Figure BDA0002646374120000183
K(t)=K(t-1)Wherein "is an assigned symbol,
Figure BDA0002646374120000184
denotes z1The value after the birth and death process at the t-th iteration,
Figure BDA0002646374120000185
denotes z2The value after the birth and death process at the t-th iteration,
Figure BDA0002646374120000186
denotes zjThe value after the birth and death process at the t-th iteration,
Figure BDA0002646374120000187
denotes zJThe value after the birth and death process at the t-th iteration.
The process updates z again(t)The process is a life-kill process.
Step seven: calculating the value of the state transition probability matrix Q in the viscous hidden Markov model at the t-th iteration, and recording as Q(t),Q(t)K of (1)(t)The conjugate prior distribution of all elements in a row obeys a dirichlet distribution of:
Figure BDA0002646374120000188
Q(t)k of (1)(t)The posterior distribution of all elements in a row obeys a dirichlet distribution of:
Figure BDA0002646374120000189
Figure BDA00026463741200001810
wherein k is more than or equal to 1(t)≤K(t),1≤k'(t)≤K(t)
Figure BDA00026463741200001811
Represents Q(t)K (f) of (1)(t)All of the elements in the row are,
Figure BDA00026463741200001812
representing the k-th iteration after the birth and death process(t)The amount of observation data that class hidden state transitions to class 1 hidden state,
Figure BDA00026463741200001813
representing the k-th iteration after the birth and death process(t)Class hidden State transition to kth'(t)The number of observations of the class hidden state,
Figure BDA00026463741200001814
to representAfter the birth and death process under the t iteration, from the kth(t)Class hidden state transition to Kth(t)Number of observations like hidden states, δ (k)(t)1) two parameters are respectively k(t)And a Crohn's function of 1, δ (k)(t),k'(t)) Denotes that the two parameters are respectively k(t)And k'(t)Crohn's function of (d), δ (k)(t),K(t)) Denotes that the two parameters are respectively k(t)And K(t)The function of the kronecker function of (c),
Figure BDA00026463741200001815
γ+κδ(k(t)1) denotes the 1 st element of the Dirichlet distribution, γ + κ δ (k), to which the conjugate prior distribution here follows(t),k'(t)) Denotes the k 'of the Dirichlet distribution to which the conjugate prior distribution obeys here'(t)Element, γ + κ δ (k)(t),K(t)) Kth of Dirichlet distribution representing the conjugate prior distribution obeyed herein(t)The number of the elements is one,
Figure BDA0002646374120000191
representing the 1 st element of the dirichlet distribution to which the posterior distribution here obeys,
Figure BDA0002646374120000192
denotes the k 'of the Dirichlet distribution to which the posterior distribution is subjected'(t)The number of the elements is one,
Figure BDA0002646374120000193
k < th > of a Dirichlet distribution representing the posterior distribution obeyed by the distribution here(t)And (4) each element.
Step eight: calculating the values in X and z according to Bayes theorem by using all observation data belonging to the same type of hidden state*(t)Determining the value μ of μ at the t-th iteration(t)And Λ value of Λ at the t-th iteration(t)A posterior probability of (D), is recorded as
Figure BDA0002646374120000194
Wherein,μ(t)Represents the value of μ at the t-th iteration,
Figure BDA0002646374120000195
represents μ1At the value at the t-th iteration,
Figure BDA0002646374120000196
indicates belonging to the k-th(t)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA0002646374120000197
At the value at the t-th iteration,
Figure BDA0002646374120000198
indicates belonging to the K(t)Mean vector of Gaussian distribution of hidden-state-like
Figure BDA00026463741200001928
Value at the t-th iteration, Λ(t)Denotes the value of a at the t-th iteration,
Figure BDA0002646374120000199
is represented by1At the value at the t-th iteration,
Figure BDA00026463741200001910
indicates belonging to the k-th(t)Accuracy matrix of Gaussian distribution of class hidden state
Figure BDA00026463741200001911
At the value at the t-th iteration,
Figure BDA00026463741200001912
indicates belonging to the K(t)Accuracy matrix of gaussian distribution of class hidden state
Figure BDA00026463741200001913
At the value at the t-th iteration,
Figure BDA00026463741200001914
to represent
Figure BDA00026463741200001915
Obeying a probability density function of a Gaussian distribution having a variable of
Figure BDA00026463741200001916
Mean vector of
Figure BDA00026463741200001917
The covariance matrix is
Figure BDA00026463741200001918
Figure BDA00026463741200001919
To represent
Figure BDA00026463741200001920
Obeying a probability density function of a Weisset distribution having the variables
Figure BDA00026463741200001921
The scale matrix is
Figure BDA00026463741200001922
Degree of freedom of
Figure BDA00026463741200001923
Figure BDA00026463741200001924
Figure BDA00026463741200001925
Symbol "()T"is a transposed symbol that is used to identify,
Figure BDA00026463741200001926
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)The number of observations of the class hidden state,
Figure BDA00026463741200001927
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)The average of all observed data for the class hidden state,
Figure BDA0002646374120000201
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)Class i hidden state
Figure BDA00026463741200002017
Individual observation data, η0、m0、W0、ν0Are all constants, in this example take η0=1、
Figure BDA0002646374120000202
W0=I、ν0=1。
Step nine: judging t < tmaxIf yes, making t equal to t +1, and then returning to the fifth step to continue iteration; if not, executing step ten; wherein, t + t is an assignment symbol.
Step ten: mu to(t)The value of each column element in the (b) is used as the power estimation value of L channels corresponding to a type of hidden state, namely mu(t)K of (1)(t)The value of the column element being the kth(t)Power estimation values of L channels of similar hidden state, specifically, mu(t)K of (1)(t)The value of the ith element in the column element is taken as the k(t)Power estimation value of ith channel of similar hiding state; then, calculating the power estimation value of each cognitive user in each channel according to the power estimation value of L channels of each type of hidden state and the value of the hidden state corresponding to each observation data after the extinction process under the t-th iteration, and recording the power estimation value of the j-th cognitive user in all channels as betajIf, if
Figure BDA0002646374120000203
Then beta isjIs equal to kth(t)Power estimation values of L channels in similar hidden state,
Figure BDA0002646374120000204
Then comparing the power estimation value of each cognitive user in each channel with a threshold value, and comparing the power estimation value of each cognitive user in each channel with the threshold value
Figure BDA0002646374120000205
If it is not
Figure BDA0002646374120000206
If the number of the channels is smaller than the threshold value, the ith channel at the jth cognitive user is considered to be not occupied by the authorized user, and the ith channel is used as an available channel; if it is not
Figure BDA0002646374120000207
If the channel number is larger than or equal to the threshold value, the ith channel at the jth cognitive user is considered to be occupied by the authorized user and cannot be used by the cognitive user; wherein the content of the first and second substances,
Figure BDA0002646374120000208
indicating the power estimated value of the j cognitive user in the 1 st channel if
Figure BDA0002646374120000209
Then
Figure BDA00026463741200002010
Is equal to kth(t)The power estimate of the 1 st channel like the hidden state,
Figure BDA00026463741200002011
indicating the power estimated value of the j cognitive user in the i channel if
Figure BDA00026463741200002012
Then
Figure BDA00026463741200002013
Is equal to kth(t)The power estimate for the ith channel like the hidden state,
Figure BDA00026463741200002014
indicating the power estimated value of the jth cognitive user in the Lth channel if
Figure BDA00026463741200002015
Then
Figure BDA00026463741200002016
Is equal to kth(t)The threshold value of the power estimation value of the lth channel in the concealment-like state is calculated according to a given false alarm probability, which is 0.1 in this embodiment. In practice, the threshold value can also be set to 2.1521 directly, and the value is obtained through a large number of experiments.
The feasibility and effectiveness of the method of the invention is further illustrated by the following simulations.
In the simulation, the noise power is
Figure BDA0002646374120000211
Supposing that the ith channel is occupied by the authorized user, the signal power of the authorized user received by the jth cognitive user in the ith channel is
Figure BDA0002646374120000212
Wherein, PtranFor authorized users transmitting power, Ptran=10log1030dBm,
Figure BDA0002646374120000213
Representing the path loss of authorized user signal power received from the transmission to the jth cognitive user,
Figure BDA0002646374120000214
the distance between the j cognitive user and the authorized user occupying the i channel is represented, the unit is km, and the maximum iteration time tmax=100,η0=1,
Figure BDA0002646374120000215
W0=I, ν 01, 1 for the dirichlet distribution parameter y,the viscosity factor k is 50, the number of samples N is 100, and the monte carlo number is 1000.
Fig. 2 shows ROC curves when the number of malicious users is 5 and the interference power of the malicious users is 0dBm, 10dBm, and 20dBm, respectively. As can be seen from fig. 2, the method of the present invention can perform spectrum sensing on multiple cognitive users under different malicious user interference power conditions, and has good detection performance, which fully illustrates that the method of the present invention can well improve the detection probability of spectrum sensing of multiple cognitive users.

Claims (1)

1. A cooperative spectrum sensing method based on a birth and death process and a viscous hidden Markov model is characterized by comprising the following steps:
the method comprises the following steps: the method comprises the steps that J cognitive users and L channels exist in a cognitive radio system, each cognitive user samples signals in each channel for N times at equal time intervals, the signals in one channel are sampled by one cognitive user to obtain N samples, the nth sample obtained by sampling the signals in the ith channel by the jth cognitive user is recorded as the nth sample
Figure FDA0002646374110000011
Then, calculating the corresponding received signal power of each cognitive user in each channel, and recording the corresponding received signal power of the jth cognitive user in the ith channel as
Figure FDA0002646374110000012
If the j cognitive user is not a malicious user, determining that the cognitive user is a malicious user
Figure FDA0002646374110000013
I.e. the average power of all samples obtained by sampling the signal in the ith channel by the jth cognitive user,
Figure FDA0002646374110000014
and when N is more than or equal to 100 and less than or equal to 1000 according to the central limit theorem,
Figure FDA0002646374110000015
obeying a gaussian distribution:
Figure FDA0002646374110000016
if the j cognitive user is a malicious user, according to the central limit theorem when N is more than or equal to 100 and less than or equal to 1000,
Figure FDA0002646374110000017
obeying a gaussian distribution:
Figure FDA0002646374110000018
wherein J, L, N, J, i and N are positive integers, J is more than 1, L is more than 1, N is more than or equal to 100 and less than or equal to 1000, J is more than or equal to 1 and less than or equal to J, i is more than or equal to 1 and less than or equal to L, N is more than or equal to 1 and less than or equal to N, the symbol "|" is a modulo symbol,
Figure FDA0002646374110000019
which is indicative of the power of the noise,
Figure FDA00026463741100000110
indicating the signal power of the authorized user received by the j cognitive user in the i channel,
Figure FDA00026463741100000111
indicating that the ith channel is not occupied by an authorized user,
Figure FDA00026463741100000112
indicating that the ith channel has been occupied by an authorized user,
Figure FDA00026463741100000113
to represent
Figure FDA00026463741100000114
Obey mean value of
Figure FDA00026463741100000115
Has a covariance of
Figure FDA00026463741100000116
The distribution of the gaussian component of (a) is,
Figure FDA00026463741100000117
to represent
Figure FDA00026463741100000118
Obey mean value of
Figure FDA00026463741100000119
Covariance of
Figure FDA00026463741100000120
PM, the interference power,
Figure FDA0002646374110000021
to represent
Figure FDA0002646374110000022
Obey mean value of
Figure FDA0002646374110000023
Covariance of
Figure FDA0002646374110000024
The distribution of the gaussian component of (a) is,
Figure FDA0002646374110000025
to represent
Figure FDA0002646374110000026
Obey mean value of
Figure FDA0002646374110000027
Covariance of
Figure FDA0002646374110000028
(ii) a gaussian distribution of;
step two: taking a vector formed by the received signal power corresponding to each cognitive user in all channels as one observation datum in a hidden Markov model, taking a vector formed by the received signal power corresponding to the jth cognitive user in all channels as the jth observation datum in the hidden Markov model, and marking as xj
Figure FDA0002646374110000029
Then determining a hidden state corresponding to each observation data in the hidden Markov model, and determining xjThe corresponding hidden state is recorded as zj,zjIs the interval [1, K ]]Is a value of (a) if zjIf the value of (1) is xjBelongs to class 1 hidden state if zjIf k is the value of (a), x is considered to bejBelongs to class k hidden state if zjIf the value of (A) is K, then x is considered to bejBelong to class K hidden state; then calculating the probability of each observation data in the hidden Markov model belonging to various hidden states, and calculating the probability of each observation data in the hidden Markov modeljThe probability of belonging to class k hidden states is noted
Figure FDA00026463741100000210
Finally, calculating a state transition probability matrix in the hidden Markov model, and marking as Q,
Figure FDA00026463741100000211
wherein the content of the first and second substances,
Figure FDA00026463741100000212
indicating the corresponding received signal power of the j-th cognitive user in the 1 st channel,
Figure FDA00026463741100000213
representing the corresponding received signal power of the j cognitive user in the L channel, wherein K and K are positive integers, K represents the number of categories of hidden states set in a hidden Markov model, and 2 is less than or equal toK≤10,1≤k≤K,
Figure FDA00026463741100000214
Denotes xjObeyed Gaussian distributed probability density function with variable xjMean vector of μkThe covariance matrix is
Figure FDA00026463741100000215
μkA mean vector representing the gaussian distribution belonging to the kth class of hidden states,
Figure FDA0002646374110000031
covariance matrix, Lambda, representing a Gaussian distribution belonging to class k hidden stateskInverse of a covariance matrix, Q, which is a precision matrix representing a Gaussian distribution belonging to class k hidden states1,1、Q1,2、Q1,k'、Q1,KCorresponding to the element in Q, which represents the 1 st row and 1 st column, the 1 st row and 2 nd column, the 1 st row and K' th column, and the 1 st row and K column2,1、Q2,2、Q2,k'、Q2,KCorresponding to the elements in the 2 nd row, 1 st column, the 2 nd row, 2 nd column, the 2 nd row, K' th column in Q, Qk,1、Qk,2、Qk,k'、Qk,KCorresponding to the element of the kth row and the 1 st column, the element of the kth row and the 2 nd column, the element of the kth row and the kth' column and the element of the kth row and the kth column in Q, QK,1、QK,2、QK,k'、QK,KCorrespondingly represents the elements of the K-th row and the 1 st column, the K-th row and the 2 nd column, the K-th row and the K '-th column, the elements of the K-th row and the K-th column in Q, wherein K' is more than or equal to 1 and less than or equal to K, and Qk,k'Denotes zj'-1K under the condition of zj'J' is not less than 2 and not more than J, zj'-1Represents the j' -1 st observation data x in the hidden Markov modelj'-1Corresponding hidden state, zj'Representing the jth' observation x in a hidden Markov modelj'The corresponding hidden state;
step three: a viscosity factor is introduced in the hidden markov model,obtaining a viscous hidden Markov model; in the viscous hidden Markov model, the mean vector and precision matrix of Gaussian distribution belonging to each class of hidden state are initialized, and mu is calculatedkIs recorded as
Figure FDA0002646374110000032
Figure FDA0002646374110000033
Will be ΛkIs recorded as
Figure FDA0002646374110000034
Figure FDA0002646374110000035
I is an L-order identity matrix; initializing the class number K of the hidden state, and recording the initialization value of K as K(0),K(0)Is the interval [2,10]Any positive integer within; initializing the state transition probability matrix Q, and recording the initialization value of Q as Q(0),Q(0)The conjugate prior distribution of all elements in each row in (a) obeys a dirichlet distribution, Q(0)K of (1)(0)The conjugate prior distribution of all elements in a row obeys a dirichlet distribution of:
Figure FDA0002646374110000036
wherein the content of the first and second substances,
Figure FDA0002646374110000037
represents Q(0)K of (1)(0)All elements in the row, Dir () represent dirichlet distribution, γ represents the parameters of dirichlet distribution, κ represents the viscosity factor, δ (k)(0)1) two parameters are respectively k(0)And a Crohn's function of 1, δ (k)(0),k'(0)) Denotes that the two parameters are respectively k(0)And k'(0)Crohn's function of (d), δ (k)(0),K(0)) Denotes that the two parameters are respectively k(0)And K(0)Kronecker function of,
Figure FDA0002646374110000038
γ+κδ(k(0)1) denotes the 1 st element of the Dirichlet distribution, to which the conjugate prior distribution is subjected, γ + κ δ (k)(0),k'(0)) Denotes the k 'of the Dirichlet distribution to which the conjugate prior distribution obeys here'(0)Element, γ + κ δ (k)(0),K(0)) Kth of Dirichlet distribution representing the conjugate prior distribution obeyed herein(0)Element, 1. ltoreq. k(0)≤K(0),1≤k'(0)≤K(0)
Step four: let t represent the number of iterations, the initial value of t is 1; let tmaxIndicates the set maximum number of iterations, tmax≥3;
Step five: calculating the hidden state clustering result corresponding to all observation data in the viscous hidden Markov model under the t-th iteration, and recording as z(t)
Figure FDA0002646374110000041
Wherein the content of the first and second substances,
Figure FDA0002646374110000042
expression makes p (z | X, Q)(t-1)(t-1)(t-1)) Taking the value of a maximum value time variable z, wherein z is a vector formed by hidden states corresponding to all observation data in the viscous hidden Markov model, and z is [ z ═ z1,z2,…,zj,…,zJ],z1Represents the 1 st observation data x1Corresponding hidden state, z2Represents the 2 nd observation x2Corresponding hidden state, zJRepresents the J-th observed data xJCorresponding hidden states, X represents a matrix formed by all observation data in the viscous hidden Markov model, and X is [ X [ ]1,x2,…,xj,…,xJ]When t is 1, Q(t-1)Is namely Q(0)Q when t is not equal to 1(t-1)Representing state transition probabilities in a sticky hidden Markov modelThe value of the matrix Q at the t-1 th iteration, μ when t is 1(t-1)Is the initial value mu of mu(0),μ=[μ12,…,μK],μ1Mean vector, μ, representing a Gaussian distribution belonging to class 1 hidden states2Mean vector, μ, representing a Gaussian distribution belonging to class 2 hidden statesKA mean vector representing a gaussian distribution belonging to class K hidden states,
Figure FDA0002646374110000043
Figure FDA0002646374110000044
represents μ1The initial value of (a) is set,
Figure FDA0002646374110000045
represents μ2The initial value of (a) is set,
Figure FDA0002646374110000046
indicates belonging to the K(0)Mean vector of Gaussian distribution of hidden-state-like
Figure FDA0002646374110000047
When the initialization value of (1), t ≠ 1 μ(t-1)Represents the value of μ at the t-1 th iteration,
Figure FDA0002646374110000048
Figure FDA0002646374110000049
represents μ1At the value at the t-1 th iteration,
Figure FDA00026463741100000410
represents μ2At the value at the t-1 th iteration,
Figure FDA00026463741100000411
indicates belonging to the K(t-1)Mean vector of Gaussian distribution of hidden-state-like
Figure FDA00026463741100000412
Value at t-1 iteration, Λ at t ═ 1(t-1)I.e. the initial value Λ of the set Λ(0),Λ={Λ12,…,ΛK},Λ1Precision matrix, Λ, representing a gaussian distribution belonging to class 1 hidden states2Precision matrix, Λ, representing a gaussian distribution belonging to class 2 hidden statesKA precision matrix representing a gaussian distribution belonging to class K hidden states,
Figure FDA00026463741100000413
Figure FDA0002646374110000051
is represented by1The initial value of (a) is set,
Figure FDA0002646374110000052
is represented by2The initial value of (a) is set,
Figure FDA0002646374110000053
indicates belonging to the K(0)Accuracy matrix of Gaussian distribution of class hidden state
Figure FDA0002646374110000054
When t ≠ 1, Λ(t-1)Representing the value of the set a at the t-1 st iteration,
Figure FDA0002646374110000055
Figure FDA0002646374110000056
is represented by1At the value at the t-1 th iteration,
Figure FDA0002646374110000057
is given by2At the value at the t-1 th iteration,
Figure FDA0002646374110000058
indicates belonging to the K(t-1)Accuracy matrix of Gaussian distribution of class hidden state
Figure FDA0002646374110000059
Value at the t-1 th iteration, K when t is 1(t-1)Is the initial value K of K(0)K when t ≠ 1(t-1)Denotes the value of K at the t-1 iteration, p (z | X, Q)(t-1)(t-1)(t-1)) The posterior probability of z is obtained according to Bayes theorem
Figure FDA00026463741100000510
p(zj|X,Q(t-1)(t-1)(t-1)) Denotes zjThe symbol ". alpha." indicates a direct ratio, xj+1Denotes the j +1 th observation, xj+2Denotes the j +2 th observation, p (z)j,x1,x2,...,xj|Q(t-1)(t-1)(t-1)) Denotes zj,x1,x2,...,xjJoint probability of p (x)j+1,xj+2,...,xJ|zj,Q(t-1)(t-1)(t-1)) Denotes zjUnder the condition of (1) xj+1,xj+2,...,xJJoint probability of p (z)j,x1,x2,...,xj|Q(t-1)(t-1)(t-1)) And p (x)j+1,xj+2,...,xJ|zj,Q(t-1)(t-1)(t-1)) Calculating by a forward and backward algorithm;
step six: updating z by a birth-kill process(t)Further, the value K of the class number K of the hidden state in the viscous hidden Markov model at the t-th iteration is calculated(t)The specific process is as follows:
1) statistics z(t)Median value, etcIn the interval [1, K(t-1)]Total number of elements of each value in, will z(t)Median value equal to k(t-1)Total number of elements of (1) is recorded as
Figure FDA00026463741100000511
2) According to 1, …, k(t-1),…,K(t-1)Num is arranged from small to large1To
Figure FDA00026463741100000512
Obtaining a statistical number arrangement sequence;
3) if the statistical number is only one 0 value and K in the permutation sequence(t-1)Not equal to 2, assume that the 0 value corresponds to the interval [1, K-(t-1)]K in (1)(t-1)Then z will be(t)Median value is respectively equal to (k +1)(t-1)To K(t-1)All the values of z are reduced by 1, and the updated z is obtained(t)Is newly recorded as z*(t)And order K(t)=K(t-1)-1, performing step seven again; if the statistical number is only one 0 value and K in the permutation sequence(t-1)If 2, or the statistical number array sequence has a plurality of 0 values, executing step 4); if there is no 0 value in the statistical number permutation sequence and K is(t-1)If < 10, randomly generating a starting value from 1 to J, and recording the starting value as JminFrom JminRandomly generating a termination value in J, denoted as JmaxWill z(t)In (1)
Figure FDA0002646374110000061
Are all set to K(t-1)+1, z to be updated(t)Is newly recorded as z*(t)And order K(t)=K(t-1)+1, then executing step seven; if the statistical number array sequence is other than the four cases, keeping z(t)Without change, will z(t)Is newly recorded as z*(t)And order K(t)=K(t-1)Then, the seventh step is executed;
4) when the ω -th value in the statistical number permutation sequence is J and the 1 st to ω -1 st andomega +1 to Kth(t-1)Values are all 0 i.e. z(t)Is equal to ω, randomly generating a starting value from 1 to J, denoted as J'minFrom J'minTo J an end value, denoted J ', is randomly generated'maxWill z(t)In
Figure FDA0002646374110000062
All are set to 2, z(t)In (1)
Figure FDA0002646374110000063
And
Figure FDA0002646374110000064
all the values of (a) are set to 1, and z after updating is carried out(t)Is re-noted as z*(t)And order K(t)Step seven is executed again when the value is 2; when the statistical number array sequence has a plurality of 0 values and any non-0 value is not J, executing step 5);
5) let 0 have xi, for the 1 st 0 value and the 2 nd 0 value, assume that the 1 st 0 value corresponds to the interval [1, K(t-1)]K in (1)(t-1)And the 2 nd 0 th value corresponds to the interval [1, K(t-1)]Middle (k + upsilon)(t-1)Then z will be(t)Median value is respectively equal to (k +1)(t-1)To (k + upsilon-1)(t-1)All the values of (a) minus 1; for the 2 nd 0 value and the 3 rd 0 value, assume that the 2 nd 0 value corresponds to the interval [1, K(t-1)]Middle (k + upsilon)(t-1)And the 3 rd 0 value corresponding interval [1, K ](t-1)]In (1)
Figure FDA0002646374110000065
Then z will be(t)Median value is respectively equal to (k + upsilon +1)(t-1)To
Figure FDA0002646374110000066
All the values of (a) minus 2; by analogy, for the xi-1 0 values and the xi 0 values, suppose that the xi-1 0 values correspond to the interval [1, K(t-1)]Middle (k + theta)(t-1)And the xi 0 value corresponding areaM 1, K(t-1)]Middle (k + ρ)(t-1)Then z will be(t)Median value is equal to (k + theta +1)(t-1)To (k + rho-1)(t-1)All the values of the elements of (1) are decremented by ξ -1; then z is mixed(t)Median value is equal to (k + ρ +1)(t-1)To K(t-1)All the values of (1) are decremented; will updated z(t)Is newly recorded as z*(t)And order K(t)=K(t-1)ξ, then step seven is performed;
above, k(t-1)Is the interval [1, K(t-1)]K of (1)(t-1)Value, Num1Denotes z(t)The total number of elements whose median value is equal to 1,
Figure FDA0002646374110000067
denotes z(t)Median value equal to K(t-1)The total number of the elements (1 ≤ omega ≤ K(t-1),1≤Jmin≤Jmax≤J,
Figure FDA0002646374110000071
Corresponding to represents z(t)J in (1)minElement, item Jmin+1 element, …, Jmax1 is not more than J'min≤J'max≤J,
Figure FDA0002646374110000072
Corresponding to represents z(t)J 'of (1)'minElement, J'min+1 elements, …, J'maxThe number of the elements is one,
Figure FDA0002646374110000073
corresponding to represents z(t)The 1 st element, the 2 nd element, …, the J'min-1 element of the group consisting of,
Figure FDA0002646374110000074
corresponding to represents z(t)J 'of (1)'max+1 elements, J'max+2 elements, …, J element, 1 < xi < K(t-1)
Figure FDA0002646374110000075
K(t)=K(t-1)Wherein "═ is an assigned symbol,
Figure FDA0002646374110000076
Figure FDA0002646374110000077
denotes z1The value after the birth and death process at the t-th iteration,
Figure FDA0002646374110000078
denotes z2The value after the birth and death process at the t-th iteration,
Figure FDA0002646374110000079
denotes zjThe value after the birth and death process at the t-th iteration,
Figure FDA00026463741100000710
denotes zJThe value after the birth and death process under the t-th iteration;
step seven: calculating the value of the state transition probability matrix Q in the viscous hidden Markov model at the t-th iteration, and recording as Q(t),Q(t)K of (1)(t)The conjugate prior distribution of all elements in a row obeys a dirichlet distribution of:
Figure FDA00026463741100000711
Q(t)k of (1)(t)The posterior distribution of all elements in a row obeys a dirichlet distribution of:
Figure FDA00026463741100000712
(ii) a Wherein k is more than or equal to 1(t)≤K(t),1≤k'(t)≤K(t)
Figure FDA00026463741100000713
Represents Q(t)K of (1)(t)All of the elements in the row are,
Figure FDA00026463741100000714
representing the k-th iteration after the birth and death process(t)The amount of observation data that class hidden state transitions to class 1 hidden state,
Figure FDA00026463741100000715
representing the k-th iteration after the birth and death process(t)Transition of quasi-hidden state to kth'(t)The number of observations of the class hidden state,
Figure FDA00026463741100000716
representing the k-th iteration after the birth and death process(t)Class hidden state transition to Kth(t)Number of observations like hidden states, δ (k)(t)1) two parameters are respectively k(t)And a Crohn's function of 1, δ (k)(t),k'(t)) Denotes that two parameters are respectively k(t)And k'(t)Kronecker function of (d), δ (k)(t),K(t)) Denotes that the two parameters are respectively k(t)And K(t)The function of the kronecker function of (c),
Figure FDA00026463741100000717
γ+κδ(k(t)1) denotes the 1 st element of the Dirichlet distribution, γ + κ δ (k), to which the conjugate prior distribution here follows(t),k'(t)) Denotes the k 'of the Dirichlet distribution to which the conjugate prior distribution obeys here'(t)Element, γ + κ δ (k)(t),K(t)) Kth of Dirichlet distribution representing the conjugate prior distribution obeyed herein(t)The number of the elements is one,
Figure FDA0002646374110000081
is shown hereThe posterior distribution of (a) obeys the 1 st element of the dirichlet distribution,
Figure FDA0002646374110000082
denotes the k 'of the Dirichlet distribution to which the posterior distribution is subjected'(t)The number of the elements is one,
Figure FDA0002646374110000083
k < th > of a Dirichlet distribution representing the posterior distribution obeyed by the distribution here(t)An element;
step eight: calculating the values in X and z according to Bayes theorem by using all observation data belonging to the same type of hidden state*(t)Determining the value μ of post μ at the t-th iteration(t)And Λ value of Λ at the t-th iteration(t)The posterior probability of (d), is denoted as p (μ)(t)(t)|X,z*(t)),
Figure FDA0002646374110000084
Wherein, mu(t)Represents the value of μ at the t-th iteration,
Figure FDA0002646374110000085
Figure FDA0002646374110000086
represents μ1At the value at the t-th iteration,
Figure FDA0002646374110000087
indicates belonging to the k-th(t)Mean vector of Gaussian distribution of hidden-state-like
Figure FDA0002646374110000088
At the value at the t-th iteration,
Figure FDA0002646374110000089
indicates belonging to the K(t)Mean vector of Gaussian distribution of hidden-state-like
Figure FDA00026463741100000810
Value at the t-th iteration, Λ(t)Denotes the value of a at the t-th iteration,
Figure FDA00026463741100000811
Figure FDA00026463741100000812
is represented by1At the value at the t-th iteration,
Figure FDA00026463741100000813
indicates belonging to the k-th(t)Accuracy matrix of Gaussian distribution of class hidden state
Figure FDA00026463741100000814
At the value at the t-th iteration,
Figure FDA00026463741100000815
indicates belonging to the K(t)Accuracy matrix of Gaussian distribution of class hidden state
Figure FDA00026463741100000816
At the value at the t-th iteration,
Figure FDA00026463741100000817
to represent
Figure FDA00026463741100000818
Obeying a probability density function of a Gaussian distribution having a variable of
Figure FDA00026463741100000819
Mean vector of
Figure FDA00026463741100000820
The covariance matrix is
Figure FDA00026463741100000821
Figure FDA00026463741100000822
Figure FDA00026463741100000823
To represent
Figure FDA00026463741100000824
Obeying a probability density function of a Weisset distribution having the variables
Figure FDA00026463741100000825
The scale matrix is
Figure FDA00026463741100000826
Degree of freedom of
Figure FDA00026463741100000827
Figure FDA00026463741100000828
Figure FDA0002646374110000091
Symbol "()T"is a transposed symbol that is used to identify,
Figure FDA0002646374110000092
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)The number of observations of the class hidden state,
Figure FDA0002646374110000093
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)The average of all observed data for the class hidden state,
Figure FDA0002646374110000094
Figure FDA0002646374110000095
indicates that the signal belongs to the kth after the birth and death process under the t-th iteration(t)Class i hidden state
Figure FDA00026463741100000920
Individual observation data, η0、m0、W0、ν0Are all constants;
step nine: judging t < tmaxIf yes, making t equal to t +1, and then returning to the fifth step to continue iteration; if not, executing step ten; wherein, t is in t +1, and is an assignment symbol;
step ten: mu is to be(t)The value of each column of elements in the table is used as the power estimation value of L channels corresponding to a type of hidden state, namely mu(t)K of (1)(t)The value of the column element being the kth(t)Power estimation values of L channels of similar hidden state, specifically, mu(t)K of (1)(t)The value of the ith element in the column element is taken as the k(t)Power estimation value of ith channel of similar hiding state; then, calculating the power estimation value of each cognitive user in each channel according to the power estimation value of L channels of each type of hidden state and the value of the hidden state corresponding to each observation data after the extinction process under the t-th iteration, and recording the power estimation value of the j-th cognitive user in all channels as betajIf, if
Figure FDA0002646374110000096
Then beta isjIs equal to kth(t)The power estimates for the L channels that resemble the hidden state,
Figure FDA0002646374110000097
then comparing the power estimation value of each cognitive user in each channel with a threshold value, and comparing the power estimation value of each cognitive user in each channel with the threshold value
Figure FDA0002646374110000098
If it is not
Figure FDA0002646374110000099
If the current channel is smaller than the threshold value, the ith channel at the jth cognitive user is considered not occupied by the authorized user, and the ith channel is used as an available channel; if it is not
Figure FDA00026463741100000910
If the channel number is larger than or equal to the threshold value, the ith channel at the jth cognitive user is considered to be occupied by the authorized user and cannot be used by the cognitive user; wherein the content of the first and second substances,
Figure FDA00026463741100000911
indicating the power estimated value of the j cognitive user in the 1 st channel if
Figure FDA00026463741100000912
Then
Figure FDA00026463741100000913
Is equal to kth(t)The power estimate of the 1 st channel like the hidden state,
Figure FDA00026463741100000914
indicating the power estimated value of the j cognitive user in the i channel if
Figure FDA00026463741100000915
Then
Figure FDA00026463741100000916
Is equal to kth(t)The power estimate for the ith channel like the hidden state,
Figure FDA00026463741100000917
indicating the power estimated value of the jth cognitive user in the Lth channel if
Figure FDA00026463741100000918
Then
Figure FDA00026463741100000919
Is equal to kth(t)The power estimation value of the L-th channel of the similar hidden state and the threshold value are calculated according to the given false alarm probability.
CN202010855944.2A 2020-08-24 2020-08-24 Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model Active CN112087275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010855944.2A CN112087275B (en) 2020-08-24 2020-08-24 Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010855944.2A CN112087275B (en) 2020-08-24 2020-08-24 Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model

Publications (2)

Publication Number Publication Date
CN112087275A CN112087275A (en) 2020-12-15
CN112087275B true CN112087275B (en) 2022-05-20

Family

ID=73729209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010855944.2A Active CN112087275B (en) 2020-08-24 2020-08-24 Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model

Country Status (1)

Country Link
CN (1) CN112087275B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110094983A (en) * 2010-02-18 2011-08-24 인하대학교 산학협력단 Weighted-cooperative spectrum sensing scheme using markov model in cognitive radio systems
CN107070569A (en) * 2017-03-06 2017-08-18 广西大学 Multipoint cooperative frequency spectrum sensing method based on HMM model
CN109194417A (en) * 2018-09-12 2019-01-11 宁波大学 A kind of covariance matrix frequency spectrum sensing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8805428B2 (en) * 2010-10-27 2014-08-12 Dynamic Invention Llc Cooperative spectrum sensing in cognitive radio networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110094983A (en) * 2010-02-18 2011-08-24 인하대학교 산학협력단 Weighted-cooperative spectrum sensing scheme using markov model in cognitive radio systems
CN107070569A (en) * 2017-03-06 2017-08-18 广西大学 Multipoint cooperative frequency spectrum sensing method based on HMM model
CN109194417A (en) * 2018-09-12 2019-01-11 宁波大学 A kind of covariance matrix frequency spectrum sensing method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Cooperative Spectrum Sensing Under Ambient Malicious Interference;Jin Ming等;<IEEE COMMUNICATIONS LETTERS>;20181228;全文 *
Dual sticky hierarchical Dirichlet process hidden Markov model and its application to natural language description of motions;Weiming Hu等;《IEEE Transactions on Pattern Analysis & Machine Intelligence》;20170926;全文 *
Mobile Collaborative Spectrum Sensing for Heterogeneous Networks: A Bayesian Machine Learning Approach;Yizhen Xu等;《 IEEE Transactions on Signal Processing》;20180914;全文 *
不完备先验信息下的稳健频谱感知方法研究;金明等;《宁波大学科技成果》;20180910;全文 *

Also Published As

Publication number Publication date
CN112087275A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
Lee et al. Deep power control: Transmit power control scheme based on convolutional neural network
CN109195214B (en) Genetic algorithm-based NOMA power allocation method
CN112910806B (en) Joint channel estimation and user activation detection method based on deep neural network
CN111224905B (en) Multi-user detection method based on convolution residual error network in large-scale Internet of things
CN112910811B (en) Blind modulation identification method and device under unknown noise level condition based on joint learning
CN111464469B (en) Hybrid digital modulation mode identification method based on neural network
Zhang et al. Power versus spectrum 2-D sensing in energy harvesting cognitive radio networks
CN111817803A (en) Frequency spectrum sensing method and system based on correlation coefficient and K-means clustering algorithm and computer readable storage medium
CN108631817B (en) Method for predicting frequency hopping signal frequency band based on time-frequency analysis and radial neural network
CN112087275B (en) Cooperative spectrum sensing method based on birth and death process and viscous hidden Markov model
CN116170066B (en) Load prediction method for low-orbit satellite Internet of things
CN111510232B (en) Vehicle networking combined spectrum sensing method based on neural network and application thereof
CN112187382B (en) Noise power estimation method based on viscous hidden Markov model
CN108390735B (en) Pheromone-driven distributed cooperative broadband spectrum sensing method
CN108564167B (en) Method for identifying abnormal data in data set
CN103795436B (en) Based on the robust multi-user test method of Quantum Hopfield Neural Network and quantum fish-swarm algorithm
CN112202513B (en) Multi-band spectrum sensing method based on birth and death process and viscous hidden Markov model
CN112187383B (en) Multi-band spectrum sensing method based on viscous hidden Markov model
CN114337883A (en) CNN cooperative spectrum sensing method and system based on covariance matrix Cholesky decomposition
CN107801190B (en) HDP-NSHMM-based spectrum sensing method
CN107623553B (en) Robust cooperative spectrum sensing method based on reliable evaluation standard
CN113541726B (en) Code index spread spectrum underwater acoustic communication method based on recurrent neural network
Rahman et al. Convolutional neural network based optimization approach for wireless resource management
Chen et al. Reduce the Correlation Phenomena over Massive-MIMO System by Deep Learning Algorithms
Zhang et al. Two-dimensional sensing in energy harvesting cognitive radio networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant