CLOCK SKEW TRACKING METHOD BASED ON WEIGHTED OBSERVATION FUSION AND TIMESTAMP FREE INTERACTION

Information

  • Patent Application
  • 20240204895
  • Publication Number
    20240204895
  • Date Filed
    February 18, 2022
    2 years ago
  • Date Published
    June 20, 2024
    6 months ago
Abstract
The present invention relates to a clock skew tracking method based on weighted observation fusion and timestamp-free interaction, and belongs to the technical field of wireless sensor networks. The method comprises performing listening synchronization by an implicit node S within an overlapping communication range between a reference node and multiple active nodes, 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. The present invention can not only dynamically track a relative clock skew on the basis of sending no message, but also reduce influence of a node with a relatively large tracking error on a listening node, thus robustness of skew tracking of the listening node is increased.
Description
FIELD OF INVENTION

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.


BACKGROUND ART OF THE INVENTION

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


DISCLOSURE OF THE INVENTION

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







Kalman


gain
:







K
k

[
n
]


=




M
k

[

n




"\[LeftBracketingBar]"


n
-
1



]




H
k
T

[
n
]




σ

Z
k

2

+



H
k

[
n
]




M
k

[

n




"\[LeftBracketingBar]"


n
-
1



]




H
k
T

[
n
]









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 σZk2 are a state covariance matrix and an observation noise variance, Q′k[n] represents an observed value at time n, and h({circumflex over (x)}k[n|n−1]) represents an observed value without noise influence.


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:








M
opt

[

n




"\[LeftBracketingBar]"

n


]

=




k
=
1

L




a
k
2

(


M
k

[

n




"\[LeftBracketingBar]"

n


]

)






S3: Calculating a fusion performance evaluation parameter, and an expression is:






Γ
=


t

r



M
opt

[

n




"\[LeftBracketingBar]"

n


]


=


tr





k
,

l
=
1


L



a
k




a
l

(


M

k

l


[

n




"\[LeftBracketingBar]"

n


]

)




=




k
=
1

L



a
k
2

[

tr

(


M
k

[

n




"\[LeftBracketingBar]"

n


]

)

]








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:







a
k

=


1

t

r



M
k

[

n




"\[LeftBracketingBar]"

n


]



/




k
=
1

L



1

t

r



M
k

[

n




"\[LeftBracketingBar]"

n


]









Defining







Λ
=


(


1

t

r



M
1

[

n




"\[LeftBracketingBar]"

n


]



+

1

t

r



M
1

[

n




"\[LeftBracketingBar]"

n


]



+
L
+

1

t

r



M
L

[

n




"\[LeftBracketingBar]"

n


]




)


-
1



,




then the optimal information fusion matrix is expressed as:









x
ˆ

opt

[

n




"\[LeftBracketingBar]"

n


]

=







k
=
1

L




Λ

t

r



M
k

[

n




"\[LeftBracketingBar]"

n


]







x
ˆ

k

[

n




"\[LeftBracketingBar]"

n


]







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:








M
opt

[

n




"\[LeftBracketingBar]"

n


]

=




k
=
1

L





(

Λ

t

r



M
k

[

n




"\[LeftBracketingBar]"

n


]



)

2





M
k

[

n




"\[LeftBracketingBar]"

n


]

.







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:







1
+

ρ

(
SR
)



=


1
+

ρ

(
AR
)




1
+

ρ

(
AS
)








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:

    • 1) The present invention is oriented to a listening synchronization mechanism under timestamp-free interaction, which not only requires no timestamp transmission, but also can effectively track the dynamic clock skew without sending any message, thus the energy consumption for synchronization is reduced.
    • 2) The present invention takes into account network characteristics that multiple pairs of communication messages between the reference node and the multiple active nodes will be overheard by the implicit node, and uses a data fusion technology to improve the robustness of the implicit synchronization, which has a practical significance to expand the application of the implicit synchronization in time synchronization.
    • 3) The present invention can not only dynamically track a relative clock skew on the basis of sending no message, but also reduce influence of a node with a relatively large tracking error on a listening node, thus robustness of skew tracking of the listening node is increased.


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.





DESCRIPTION OF THE DRAWINGS

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:



FIG. 1 is a schematic diagram showing that multiple pairs of communication messages between a reference node and multiple active nodes are overheard by an implicit node in the embodiment;



FIG. 2 is a flow chart of a weighted observation fusion clock skew tracking method in the embodiment; and



FIG. 3 is a performance comparison chart of a weighted observation fusion clock skew tracking method in the embodiment.





DETAILED DESCRIPTION OF THE INVENTION

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 FIGS. 1-3, FIG. 1 is a schematic diagram showing that synchronization between a reference node and multiple active nodes is overheard by an implicit node provided in the embodiment. As shown in FIG. 1, node R serves as the reference node, nodes A1, A2, . . . , AL are the active nodes, node S serves as the implicit node to perform a listening synchronization mechanism, multiple pairs of timestamp-free communication messages between the reference node R and the multiple active nodes are overheard by the implicit node S to perform tracking by weighted fusion of multiple observed values, and the specific steps are as follows:


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







h

(


x
k

[
n
]

)

=



(


ρ
k

(
AR
)


-

ρ
k

(
AS
)



)




P
k

[
n
]


+




ρ
k

(
AS
)


-

ρ
k

(
AR
)




1
+

ρ
k

(
AR
)








O
k

[
n
]

.







ρ 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









x
k

[
n
]

=

[





ρ
k

(

A

S

)


[
n
]







ρ
k

(

A

R

)


[
n
]




]


,



u
[
n
]

=



[





u

(

A

S

)


[
n
]







u

(

A

R

)


[
n
]




]



and


A

=

[




m
1



0




0



m
2




]



;





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)










Kalman


gain
:



K
k

[
n
]


=




M
k

[

n




"\[LeftBracketingBar]"


n
-
1



]




H
k
T

[
n
]




σ

Z
k

2

+



H
k

[
n
]




M
k

[

n




"\[LeftBracketingBar]"


n
-
1



]




H
k
T

[
n
]








(
5
)








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:











n

]

=




x
opt

[

n




"\[LeftBracketingBar]"

n


]

-


x
ˆ

[

n




"\[LeftBracketingBar]"

n


]


=





k
=
1

L



a
k

(



x
opt

[

n




"\[LeftBracketingBar]"

n


]

-



x
ˆ

k

[

n




"\[LeftBracketingBar]"

n


]


)


=




k
=
1

L



a
k

(



[

n




"\[LeftBracketingBar]"

n


]

)








(
9
)







An optimal mean square error is calculated as follows according to the fusion estimation error (9):















M
opt

[

n




"\[LeftBracketingBar]"

n


]

=

E
(



n



]

T

)

=




k
,

l
=
1


L



a
k




a
l

(


M

k

l


[

n




"\[LeftBracketingBar]"

n


]

)







(
10
)







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:











M
opt

[

n

n

]

=




k
=
1

L



a
k
2

(


M
k

[

n

n

]

)






(
11
)







A fusion performance evaluation parameter is introduced:









Γ
=


t

r



M
opt

[

n

n

]


=


tr





k
,

l
=
1


L



a
k




a
l

(


M

k

l


[

n

n

]

)




=




k
=
1

L



a
k
2

[

tr

(


M
k

[

n

n

]

)

]








(
12
)







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:










a
k

=


1

t

r



M
k

[

n

n

]



/




k
=
1

L


1

t

r



M
k

[

n

n

]









(
13
)







In addition, defining






Λ
=


(


1

t

r



M
1

[

n

n

]



+

1

t

r



M
1

[

n

n

]



+
L
+

1

t

r



M
L

[

n

n

]




)


-
1






and substituting (13) into (8), then an optimal information fusion matrix can be expressed as:












x
ˆ

opt

[

n

n

]

=




k
=
1

L



Λ

t

r



M
k

[

n

n

]







x
ˆ

k

[

n

n

]







(
14
)







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:











M
opt

[

n

n

]

=




k
=
1

L




(

Λ

t

r



M
k

[

n

n

]



)

2




M
k

[

n

n

]







(
15
)







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.










1
+

ρ

(
SR
)



=


1
+

ρ

(
AR
)




1
+

ρ

(
AS
)








(
16
)








FIG. 2 is a flow chart of a weighted observation fusion skew tracking method of the embodiment. The embodiment provides a clock skew tracking method based on weighted observation fusion and timestamp-free interaction, as shown in FIG. 2, specifically comprising the following steps:

    • P1: Starting a clock skew weighted observation fusion tracking process under timestamp-free interaction.
    • P2: Listening for multiple pairs of communication messages between the reference node and the multiple active nodes by the implicit node S.
    • P3: Judging whether the messages are paired; if yes, entering flow P3 to continue the fusion tracking process; otherwise, discarding the unpaired messages and entering flow P2 to continue listening for message information.
    • P4: Judging whether a synchronization cycle is reached; if yes, entering flow P5; otherwise, entering flow P2 to continue listening for synchronization messages.
    • P5: Executing L extended Kalman filtering algorithms according to L pairs of synchronization messages overheard.
    • P6: Executing a scalar weighted minimum variance fusion algorithm according to L skew estimated values obtained by the L extended Kalman filtering algorithms to obtain fused estimated values.
    • P7: Performing relative skew conversion according to the internal relationship among the reference node, the active nodes and the implicit node.
    • P8-P9: Calibrating a local clock by the implicit node, and ending the synchronization process.



FIG. 3 gives a performance comparison chart of a clock skew tracking method based on weighted observation fusion and timestamp-free interaction provided by the embodiment. It can be known from FIG. 3 that compared with unfused skew estimated values, the fused estimated values tracks true values more closely and reduces the influence of the active nodes with a relatively large tracking error, which proves that the method of the present invention improves the robustness of timestamp-free skew tracking of the implicit node.


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.

Claims
  • 1. A clock skew tracking method based on weighted observation fusion and timestamp-free interaction, characterized in that the method comprises: 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.
  • 2. The clock skew tracking method as claimed in claim 1, characterized in that calculation formulas of the multiple extended Kalman filtering algorithms are: prediction:{circumflex over (x)}k[n|n−1]=A{circumflex over (x)}k[n−1|n−1]predicted minimum mean square error matrix:Mk[n|n−1]=AMk[n−1|n−1]AT+CKalman gain:Kk[n]=Mk[n❘n-1]⁢HkT[n]σZk2+Hk[n]⁢Mk[n❘n-1]⁢HkT[n]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] are obtained; I represents a unit matrix, H represents an observation matrix, C and σZk2 are a state covariance matrix and an observation noise variance, Q′k[n] represents an observed value at time n, and h({circumflex over (x)}k[n|n−1]) represents an observed value without noise influence.
  • 3. The clock skew tracking method as claimed in claim 2, characterized in that 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]=a1{circumflex over (x)}1[n|n]+a2{circumflex over (x)}2[n|n]+L aL{circumflex over (x)}L[n|n]where a represents an estimator component weight; and a fusion weight condition of a1+a2+L+aL=1 is obtained based on unbiased estimation;S2: obtaining an optimal mean square error matrix according to a fusion estimation error, and an expression is:
  • 4. The clock skew tracking method as claimed in claim 3, characterized in that 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:
  • 5. The clock skew tracking method as claimed in claim 1, characterized in that 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:
Priority Claims (1)
Number Date Country Kind
CN 202110720874.4 Jun 2021 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2022/076844 2/18/2022 WO