The present invention belongs to the technical field of wireless sensor networks, and relates to a clock skew tracking method based on weighted observation fusion and timestamp-free interaction.
Wireless sensor networks have been widely used in many fields such as biology and medical care due to characteristics such as self-organization, reliability and high fault tolerance. Many applications such as data fusion and resource scheduling in the wireless sensor networks need strict and uniform time references. Therefore, time synchronization is a basis for coordinating work of the wireless sensor networks. Timestamp-free synchronization is a synchronization protocol with a low power consumption proposed in recent years. This method requires no timestamp interaction, is easy to embed in a network data flow, and can reduce energy consumption for node synchronization. In addition, an implicit synchronization mechanism can complete self synchronization by listening for synchronization messages between neighbors. Such synchronization method with a very low power consumption is very important for the wireless sensor networks.
The implicit synchronization mechanism under timestamp-free interaction can complete self synchronization by listening for a timestamp-free communication message between a clock source and an active node, which is quite energy-saving and has been studied to some extent. However, most of the existing algorithms for tracking a clock skew of an implicit node under timestamp-free interaction only use a single pair of communication messages, therefore such studies still have some deficiencies: 1) in fact, multiple pairs of communication messages between the clock source and multiple active nodes will be overheard by the implicit node in a real network scenario; 2) the implicit node may incorrectly use paired communication messages with a relatively large time error, resulting in an oversize tracking error between the implicit node and a reference node and unstable tracking. Therefore, a new clock synchronization method for wireless sensor networks is urgently needed
In view of this, the purpose of the present invention is to provide a clock skew tracking method based on weighted observation fusion and timestamp-free interaction, which is based on a dynamic clock parameter of timestamp-free synchronization to make an implicit node use multiple pairs of timestamp-free communication messages between a reference node overheard and multiple active nodes, thus improving robustness of skew tracking of the implicit node.
To achieve the above purpose, the present invention provides the following technical solution:
A clock skew tracking method based on weighted observation fusion and timestamp-free interaction, comprising: performing listening synchronization by an implicit node S within an overlapping communication range between a reference node R and multiple active nodes A1, A2, . . . , AL, and after multiple pairs of timestamp-free communication messages are successfully overheard, using multiple extended Kalman filtering algorithms to perform weighted fusion of multiple observed values on multiple obtained tracking results based on a scalar weighted linear minimum variance information fusion criterion, thus realizing timestamp-free relative skew fusion tracking of the implicit node S.
Further, calculation formulas of the multiple extended Kalman filtering algorithms are:
Prediction:{circumflex over (x)}k[n|n−1]=A{circumflex over (x)}k[n|n−1]
Predicted Minimum mean square error matrix:Mk[n|n−1]=AMk[n−1|n−1]AT+C
Correction:{circumflex over (x)}k[n|n]={circumflex over (x)}k[n|n−1]+Kk[n](Q′k[n]−h({circumflex over (x)}k[n|n−1]))
Minimum mean square error matrix:Mk[n|n]=(I−Kk[n]Hk[n])Mk[n|n−1]
Where, k represents a kth parallel extended Kalman filter executed, {circumflex over (x)}k[n|n−1] is the prediction of {circumflex over (x)}[n] by considering a state matrix A and a previous round state {circumflex over (x)}k[n−1|n−1], and Mk[n|n−1] is the predicted minimum mean square error matrix without observation correction; after the Kalman gain Kk[n] is calculated, a corrected estimated value {circumflex over (x)}k[n|n] and the minimum mean square error matrix Mk[n|n] can be obtained; I represents a unit matrix, H represents an observation matrix, C and σZ
Further, the step of performing weighted fusion of multiple observed values on multiple obtained tracking results based on a scalar weighted linear minimum variance information fusion criterion specifically comprises following steps:
S1: Calculating an optimal information fusion matrix in the scalar weighted linear minimum variance information fusion criterion, and an expression is:
{circumflex over (x)}
opt
[n|n]=a
1
{circumflex over (x)}
1
[n|n]+a
2
{circumflex over (x)}
2
[n|n]+L+a
L
{circumflex over (x)}
L
[n|n]
Where a represents an estimator component weight; and a fusion weight condition of a1+a2+L+aL=1 can be obtained based on unbiased estimation;
S2: Obtaining an optimal mean square error matrix according to a fusion estimation error, and an expression is:
S3: Calculating a fusion performance evaluation parameter, and an expression is:
Where tr represents a trace of the matrix, and Mkl[n|n] represents a cross covariance. A problem of optimal fusion is transformed to selecting a1, a2, . . . , aL to minimize Γ.
Further, the problem of optimal fusion is solved, i.e., a1, a2, . . . , aL is selected to minimize Γ, which specifically comprises: using a Lagrange multiplier method to obtain an optimal weight of:
Defining
then the optimal information fusion matrix is expressed as:
Clock skew tracking by weighted fusion of multiple observed values can be realized according to the optimal information fusion matrix obtained by calculation. Similarly, the optimal mean square error matrix is expressed as:
Further, according to an internal relationship of clock skew among the active nodes, the reference node and the implicit node, a relative clock skew ρ(SR) between the reference node and the implicit node is estimated, the weighted observation fusion skew tracking of the implicit node is realized, and a specific internal relationship is:
Where ρ(AR) represents a relative clock skew between the active nodes and the reference node, and ρ(AS) represents a relative clock skew between the active nodes and the implicit node.
The present invention has the following beneficial effects:
Other advantages, objectives and features of the present invention will be illustrated in the following description to some extent, and will be apparent to those skilled in the art based on the following investigation and research to some extent, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description.
To enable the purpose, the technical solution and the advantages of the present invention to be more clear, the present invention will be preferably described in detail below in combination with the drawings, wherein:
Embodiments of the present invention are described below through specific embodiments. Those skilled in the art can understand other advantages and effects of the present invention easily through the disclosure of the description. The present invention can also be implemented or applied through additional different specific embodiments. All details in the description can be modified or changed based on different perspectives and applications without departing from the spirit of the present invention. It should be noted that the figures provided in the following embodiments only exemplarily explain the basic conception of the present invention, and if there is no conflict, the following embodiments and the features in the embodiments can be mutually combined.
Referring to
A multi-observation equation as follows can be obtained according to an observation equation Q′[n]=h(x[n])+Z[n] of an implicit node skew tracking method under timestamp-free synchronization:
Q′
k
[n]=h(xk[n])+Zk[n] (1)
Where
ρ represents a relative skew between nodes, k represents a kth extended Kalman filter executed, and Zk[n] is a random delay subject to Gaussian distribution.
Similarly, a state equation as follows can be obtained according to a state equation x[n]=Ax[n−1]+u[n] of an implicit node skew tracking method under timestamp-free synchronization:
x
k
[n]=Ax
k
[n−1]+u[n] (2)
Where
u[n] is a driving noise subject to N(0,σu2), and an update coefficient m is regarded as a known constant close to but not exceeding 1.
Based on equations (1) and (2), k extended Kalman filtering algorithms parallelly executed by the implicit node S are as follows:
Prediction:{circumflex over (x)}k[n|n−1]=A{circumflex over (x)}k[n−1|n−1] (3)
Predicted Minimum mean square error matrix:Mk[n|n−1]=AMk[n−1|n−1]AT+C (4)
Correction:{circumflex over (x)}k[n|n]={circumflex over (x)}k[n|n−1]+Kk[n](Q′k[n]−h({circumflex over (x)}k[n|n−1])) (6)
Minimum mean square error matrix:Mk[n|n]=(I−Kk[n]Hk[n])Mk[n|n−1] (7)
L skew estimators and a minimum mean square error matrix are obtained by the above extended Kalman filtering algorithms, and based on a scalar weighted linear minimum variance fusion criterion, a fusion process specifically comprises the following steps:
Optimal fusion tracking information can be expressed by a proportion of each component weight in the following form:
{circumflex over (x)}
opt
[n|n]=a
1
{circumflex over (x)}
1
[n|n]+a
2
{circumflex over (x)}
2
[n|n]+L+a
L
{circumflex over (x)}
L
[n|n] (8)
Where a represents an estimator component weight. The weight shall meet the condition of a1+a2+L+aL=1 based on unbiased estimation.
A fusion estimation error is written as follows according to a definition:
An optimal mean square error is calculated as follows according to the fusion estimation error (9):
In a real wireless sensor network environment, a cross covariance exists, but is small and difficult to capture, and calculation of the cross covariance will greatly increase the complexity of the algorithms. Therefore, no cross covariance is considered in the embodiment, i.e., it is considered that Mkl[n|n](k≠l)=0. Based on the above condition, an optimal mean square error matrix can be expressed as:
A fusion performance evaluation parameter is introduced:
Where tr represents a trace of the matrix. A problem of optimal fusion is transformed to selecting a1, a2, . . . , aL to minimize Γ, and a Lagrange multiplier method is used for equation (12) to obtain an optimal weight as follows:
In addition, defining
and substituting (13) into (8), then an optimal information fusion matrix can be expressed as:
According to (14), an estimated value of a relative skew ρ(AR) between the reference node and the active nodes and an estimated value of a relative skew ρ(AS) between the active nodes and the implicit node after fusion can be obtained. Similarly, the optimal mean square error matrix can be expressed as:
Finally, according to an internal relationship (16) of clock skew among the active nodes, the reference node and the implicit node, a relative clock skew ρ(SR) between the reference node and the implicit node can be estimated, and the multi-observation fusion skew tracking of the implicit node is realized.
Finally, it should be noted that the above embodiments are only used for describing, rather than limiting the technical solution of the present invention. Although the present invention is described in detail with reference to the preferred embodiments, those ordinary skilled in the art shall understand that the technical solution of the present invention can be amended or equivalently replaced without departing from the purpose and the scope of the technical solution. The amendment or equivalent replacement shall be covered within the scope of the claims of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
CN 202110720874.4 | Jun 2021 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/076844 | 2/18/2022 | WO |