Skip to main content
  • Original Article
  • Open access
  • Published:

Resilient timekeeping algorithm with multi-observation fusion Kalman filter

Abstract

The timescales incorporated into the Primary Frequency Standard (PFS) exhibit excellent stability and accuracy. However, during the dead time of PFS, the reliability of the timescale can be compromised. To address this issue, a resilient timekeeping algorithm with a Multi-observation Fusion Kalman Filter (MFKF) is proposed. This algorithm fuses the frequency measurements from hydrogen masers with various reference frequency standards, including PFS and commercial cesium beam atomic clocks. The simulation results show that the time deviation and instability of the timescale generated by MFKF are improved compared to those with Kalman filtering. The experimental results demonstrate that even within 70 days of PFS dead time the resilient timescale generated by MFKF can operate reliably. Furthermore, it is theoretically proven that MFKF produces a smaller post-covariance than that with single-observation Kalman filtering.

Introduction

Timescale, which is widely used in satellite navigation (Han et al., 2011, 2021; Yang et al., 2020, 2021), astronomical observation, power transmission, finance, and other fields, urgently needs improving in its resilience in terms of continuity, availability, reliability, and robustness in a variety of complex environments (Ferrari et al., 2022; Sherman et al., 2021; Yang, 2016, 2019; Yang et al., 2023).

By incorporating the Cs fountain clock (Primary Frequency Standard, PFS) into the generation of timescale, its autonomy, accuracy, stability, and other characteristics can be easily improved (Levine, 1997; Wang et al., 2020, 2022). Moreover, the emergence of optical clocks (Barbiero et al., 2022; Poli et al., 2013) as the next generation of PFS promotes the research on timekeeping methods for incorporating PFS (Formichella et al., 2021; Galleani et al., 2019, 2020; Grebing et al., 2016; Hachisu et al., 2018; Yao et al., 2017; Yao et al., 2019). In general, the frequency of the Hydrogen Maser (HM) is estimated using PFS and steered to generate a timescale. However, PFS is a laboratory instrument and usually cannot operate continuously for an extended period like commercial clocks. Therefore, maintaining the performance of the timescale when the PFS is not operational presents an urgent issue.

Multiple frequency standards are used as redundant backups to ensure a stable time scale during PFS failures. For example, Sytèmes de Référence Temps Espace of Laboratoire National de Métrologie et d’Essais (LNE-SYRTE) (Rovera et al., 2016) steers HMs using four PFS to generate Coordinated Universal Time (UTC) in France generated at Observatoire de Paris (OP). Furthermore, Physikalisch-Technische Bundesanstalt (PTB) (Bauch et al., 2012) and Italian National Institute of Metrological Research (INRiM) (Galleani et al., 2020) employ frequency standards like PFS and commercial Cs clocks to steer HMs, resulting in the generation of continuous and reliable timescales UTC (PTB) and Italian time scale UTC (IT). Although these algorithms utilize these standards to generate reliable timescales, they lack the integrated performance superiority seen with ensemble timescale algorithms involving multiple atomic clocks. Unfortunately, continuous operation over a long period is difficult for most PFS, which the traditional ensemble timescale algorithms require. Therefore, we propose a resilient timekeeping algorithm utilizing a Multi-observation Fusion Kalman Filter (MFKF). This algorithm resiliently fuses the HM frequency measurements using various standards such as PFS and commercial Cs beam clocks. The filtering results are then used to steer the HM and generate timescale TA_MFKF. TA_MFKF can utilize the measurements with other frequency standards, such as commercial Cs beam clocks, during PFS outages to ensure reliable and continuous operation.

Additionally, this algorithm that fuses multiple frequency standards exhibits a superior performance compared to the one utilizing only a single frequency standard. The simulation results show that TA_MFKF exhibits smaller time deviations and better stability than the Kalman Filter (KF) with a single observation. In addition, the time difference between the rapid realization of the Coordinated Universal Time (UTCr) (Petit et al., 2014) and TA_MFKF is indirectly obtained by utilizing the optical fiber link between the Beijing Satellite Navigation Center (BSNC) and National Institute of Metrology (NIM) (Wang et al., 2020, 2022). The comparison results show that the TA_MFKF can maintain reliable operation within 70 days of PFS’s dead time.

Section "Measurement system" presents the frequency measurement systems utilized for Cs fountain clocks, Cs beam atomic clocks, and HMs. Section "Theory" introduces the theory of timescale based on the MFKF algorithm and theoretically proves that MFKF improves the performance of the fused timescale compared to the KF with a single measurement source. Section “Simulation results and Discussions” simulates two PFSs and one HM to compare the performance of MFKF and KF during PFS regular operation. In the fifth section, one PFS, five commercial Cs beam clocks, and one HM of BSNC are resiliently integrated using MFKF to conduct resilient timescale and then compared with single-observation KF. Finally, the article is concluded with prospects.

Measurement system

Cs fountain clocks cannot generate time signals directly like commercial atomic clocks. Instead, they require a frequency signal from another atomic clock to serve as the frequency reference, which is then processed to estimate the frequency compared to that atomic clock. Therefore, a measurement system has been devised to integrate Cs fountain clocks into the conventional atomic clock comparison measurement system.

Figure 1 displays the measurement principle and schematic diagram of the HM, Cs fountain clock, and Cs beam clocks. The HM functions as the master clock for the Cs fountain clock, providing a 5 MHz frequency signal as its reference. Each day, a frequency deviation arises between the Cs fountain clock and the HM. Moreover, HM’s 1 PPS (1 Pulse Per Second) signal is utilized as an input in the time interval counter, enabling the measurement of clock differences with other atomic clocks. The clock deviation signal is processed daily through software. All frequency comparison data and time comparison data are stored in a database. At a fixed time, the data processing software automatically removes the frequency shift of the Cs fountain clock, determining the frequency deviation between the HM and the Cs fountain. Simultaneously, the data processing software utilizes the Least Squares (LS) method to fit the phase comparison data on the previous day, deriving the daily frequency deviation between the HM and other atomic clocks.

Fig. 1
figure 1

Measurement scheme of Cs fountain clock (CsF1), Cs beam clock, and hydrogen maser (H0)

The data processing software automatically executes initial data processing at a set time every day, effectively eliminating the frequency offset of the Cs fountain clock. Following that, the software calculates the discrete frequency deviation between the master clock H0 and Cs fountain:

$$f_{{CsF1 - {\text{HM}}}}^{{}} = f_{CsF1} - f_{{{\text{HM}}}}$$
(1)

where \(f_{{{\text{HM}}}}\) and \(f_{{{\text{CsF1}}}}\) are the frequency of the master clock and Cs fountain clock, respectively. In calculating the frequency difference between Cs beam clocks (\({\text{Cs}} - i\)) and HM, the LS method is applied to the time difference data to estimate the frequency deviations between the master clock H0 and Cs beam clocks, denoted as \(f_{i}\):

$$f_{i} = f_{{{\text{Cs}} - i}} - f_{{{\text{HM}}}}$$
(2)

The frequency differences (\(f_{{\text{CsF1 - HM}}}^{{}}\) and \(f_{i}\)) of Cs fountain and Cs beam clocks with respect to HM are utilized as the data source of MFKF.

Theory

Most Cs fountain clocks cannot operate continuously for a long period of time like commercial atomic clocks and have different measurement mechanisms, which makes it hard to compare their time difference with the atomic clock ensemble directly. As a result, it is difficult for the traditional ensemble clock timescale algorithms to incorporate Cs fountains into the generation of time scales. By utilizing MFKF, it is possible to combine Cs fountain clocks with other frequency standards and achieve resilient timekeeping. The frequency estimation and prediction of the HM are first calculated by using MFKF, and then the frequency of the HM is steered by using the predicted value to generate the timescale. The scheme of the resilient timekeeping algorithm based on MFKF is shown in Fig. 2.

Fig. 2
figure 2

The scheme of resilient timekeeping algorithm based on MFKF

In this section, we begin by introducing the concept of multi-observation fusion Kalman filtering (Gan & Harris, 2001), followed by the development of a dynamic model for HMs and an observation model for frequency standards such as Cs fountain clocks and Cs beam clocks. Based on these models, we present an innovative and resilient timekeeping algorithm with the MFKF method. Finally, the estimation error is analyzed.

Multi-observation fusion Kalman filter

The model of MFKF (Gan & Harris, 2001) describes the tracking of a target by N sensors:

$${\mathbf{x}}(t) = {\mathbf{A}}(t){\mathbf{x}}(t - 1) + {\mathbf{B}}(t){\mathbf{u}}(t) + {\mathbf{v}}(t)$$
(3)
$${\mathbf{y}}_{j} (t) = C_{j} (t){\mathbf{x}}(t) + {\mathbf{w}}_{j} (t),\;\;\;{\kern 1pt} j = 1,2, \ldots ,N$$
(4)

where t represents the time index, \({\varvec{x}}(t)\) represents the state vector, \({\mathbf{A}}(t)\) denotes the state transition matrix, \({\mathbf{B}}(t)\) denotes the input control matrix, \({\mathbf{u}}(t)\) denotes the input vector, \({\mathbf{y}}_{j} (t)\) and \(C_{j} (t)\) are measurement vectors and measurement matrices, respectively, and \({\mathbf{v}}(t)\) and \({\mathbf{w}}_{j} (t)\) are noise vectors of dynamic target and measurement with the covariance matrices \({\mathbf{Q}}(t)\) and \({\mathbf{R}}_{j} (t)\), respectively. In this article, the dynamic target is a HM, while the sensors are Cs fountain clocks, Cs beam clocks, and other frequency standards.

The difference between MFKF and the classical Kalman filtering is that MFKF's measurement equation is extended from one to N. MFKF enables the integration of N measurement models into a single unified measurement model (Gan & Harris, 2001):

$${\mathbf{y}}(t) = {\mathbf{C}}(t){\mathbf{x}}(t) + {\mathbf{w}}(t)$$
(5)

where \({\mathbf{w}}(t)\sim N(\rm{0},{\mathbf{R}}(t))\). \({\mathbf{y}}(t)\), \({\mathbf{C}}(t)\), and \({\mathbf{w}}(t)\) are the fusion of N measurement equations:

$${\mathbf{y}}(t) = \left( {\sum\limits_{j = 1}^{N} {{\mathbf{R}}_{j}^{ - 1} } (t)} \right)^{ - 1} \sum\limits_{j = 1}^{N} {{\mathbf{R}}_{j}^{ - 1} } (t){\mathbf{y}}_{j} (t)$$
(6)
$${\mathbf{C}}(t) = \left( {\sum\limits_{j = 1}^{N} {{\mathbf{R}}_{j}^{ - 1} } (t)} \right)^{ - 1} \sum\limits_{j = 1}^{N} {{\mathbf{R}}_{j}^{ - 1} } (t){\mathbf{C}}_{j} (t)$$
(7)
$${\mathbf{R}}(t) = \left( {\sum\limits_{j = 1}^{N} {{\mathbf{R}}_{j}^{ - 1} } (t)} \right)^{ - 1}$$
(8)

The Kalman filter can obtain an optimal estimate for the model described in (3) and (5). The solution is given by Eqs. (9) to (13).

$$\hat{\user2{x}}(t|t - 1) = {\mathbf{A}}(t)\hat{\user2{x}}(t - 1|t - 1) + {\mathbf{B}}(t){\mathbf{u}}(t)$$
(9)
$${\mathbf{P}}(t|t - 1) = {\mathbf{A}}(t){\mathbf{P}}(t - 1|t - 1){\mathbf{A}}^{\rm{T}} (t) + {\mathbf{Q}}(t)$$
(10)
$${\mathbf{K}}(t) = {\mathbf{P}}(t|t - 1){\mathbf{C}}^{\rm{T}} (t)\left( {{\mathbf{C}}(t){\mathbf{P}}(t|t - 1){\mathbf{C}}^{\rm{T}} (t) + {\mathbf{R}}(t)} \right)^{ - 1}$$
(11)
$$\hat{\user2{x}}(t|t) = \hat{\user2{x}}(t|t - 1) + {\mathbf{K}}(t)\left( {{\mathbf{y}}(t) - {\mathbf{C}}(t)\hat{\user2{x}}(t|t - 1)} \right)$$
(12)
$${\mathbf{P}}(t|t) = \left( {{\mathbf{I}} - {\mathbf{K}}(t){\mathbf{C}}(t)} \right){\mathbf{P}}(t|t - 1)$$
(13)

where the superscript ‘^’ denotes the estimation of that variable, and \({\mathbf{P}}(t|t)\) is the post-covariance matrix. (Gan & Harris, 2001).

In the usual Kalman ensemble timescale algorithm (Galleani & Tavella, 2010), the state vector, \({\mathbf{x}}(t)\), represents the estimated clock difference of other clocks relative to the reference clock, while the measurement vector represents the actual clock difference measurements obtained with the measuring instruments. Our proposed algorithm uses the state vector to represent the frequency and the drift of the HM itself, and the measurement vector is the result of the frequency standard's estimation of the HM. Thus, to implement this algorithm, it is imperative to develop a dynamic model (Eq. 3) for the HM and a measurement model (Eq. 4) for the frequency standards.

Dynamic model

In the dynamic model, Eq. (3), the state vector is

$${\mathbf{x}}(t) = \left( \begin{gathered} f(t) \\ d(t) \\ \end{gathered} \right)$$
(14)

where \(f(t)\) and \(d(t)\) are the frequency and drift of the HM, respectively. Then, the state transition matrix is

$${\mathbf{A}}(t) = \left( {\begin{array}{*{20}c} 1 & {\tau_{0} } \\ 0 & 1 \\ \end{array} } \right)$$
(15)

where \(\tau_{0}\) is the sampling period, which is the time difference of \(t\) and \(t - 1\). The noise covariance matrix of atomic clocks (Galleani & Tavella, 2010; Zucca & Tavella) is written as:

$${\mathbf{Q}}(t) = \left( {\begin{array}{*{20}c} {q_{f} \tau_{0} + q_{d} \frac{{\tau_{0}^{3} }}{3}} & {q_{d} \frac{{\tau_{0}^{2} }}{2}} \\ \quad {q_{d} \frac{{\tau_{0}^{2} }}{2}} & {q_{d} \tau_{0} } \\ \end{array} } \right)$$
(16)

where \(q_{f}\) and \(q_{d}\) are the intensity of the atomic clock’s White Frequency Modulation (WFM) noise and Random Walk Frequency Modulation (RWFM) noise, respectively. They can be calculated from the Allan variance, and the formula (Galleani & Tavella, 2010; Zucca & Tavella) is written as:

$$\sigma_{y}^{2} \left( \tau \right) = \frac{{q_{f} }}{\tau }{ + }\frac{{q_{d} \tau }}{3}$$
(17)

Since the dynamic model in this paper are HMs, the noise covariance matrix of the clock can be simplified to:

$${\mathbf{Q}}(t) = \left( {\begin{array}{*{20}c} {q_{f} \tau_{0} } & 0 \\ 0 & 0 \\ \end{array} } \right)$$
(18)

Measurement model

In the measurement model, Eq. (4), the measurement vector represents the frequency of the HM measured by the frequency standards. Therefore, the measurement matrices \({\mathbf{C}}_{j} (t)\) in measurement Eq. (4) is written as:

$${\mathbf{C}}_{j} (t) = \left( {\begin{array}{*{20}c} 1 & 0 \\ \end{array} } \right)$$
(19)

At this point, the vector \({\mathbf{R}}_{j} (t)\) degenerates into a scalar \(R_{j} (t)\). The sampling time interval in the measurement system is one day, so when sampling over this period, the noise in usual frequency standards, such as Cs fountain clocks and Cs beam clocks, is dominated by WFM. Therefore, the measurement covariance \(R_{j} \left( t \right)\) is given by:

$$R_{j} (t) = q_{j} \tau_{0}$$
(20)

where \(q_{j}\) is the WFM intensity of the frequency standards. In Cs beam atomic clocks, \(q_{j}\) is also known as \(q_{f}\) and can be calculated using Eq. (17).

The dominant noise type in Cs fountain clocks is WFM. Moreover, the stability of Cs fountain is written as (Santarelli et al., 1999):

$$\sigma_{y} \left( \tau \right) = \frac{1}{{{\uppi }Q_{at} }}\sqrt {\frac{{T_{c} }}{\tau }} \left( {\frac{1}{{\left( {S/N} \right)^{2} }} + \gamma } \right)^{1/2}$$
(21)

For the meanings of each symbol in (21), refer to (Wang et al., 2020). Therefore, RWFM of the PFS can be ignored, so the formula of \(q_{j}\) related to Allan variance is written as:

$$\sigma_{y}^{2} \left( \tau \right) = \frac{{q_{j} }}{\tau }$$
(22)

\(q_{j}\) of PFS can be expressed by:

$$q_{j} = \frac{{T_{c} }}{{\left( {{\uppi }Q_{at} } \right)^{2} }}\left( {\frac{1}{{\left( {S/N} \right)^{2} }} + \gamma } \right)$$
(23)

Resilient timekeeping algorithm based on MFKF

MFKF is a model that measures one dynamic target using multiple sensors, and N frequency standards, such as PFS and commercial Cs clocks, measure the frequency of the HM. Therefore, the MFKF model for this resilient timekeeping algorithm is as follows:

$${\mathbf{x}}(t) = {\mathbf{\rm A}}(t){\mathbf{x}}(t - 1) + {\mathbf{v}}(t)$$
(23)
$$y_{j} (t) = {\mathbf{C}}_{j} (t){\mathbf{x}}(t) + w_{j} (t),\;\;\;{\kern 1pt} j = 1,2, \ldots ,N$$
(24)

where \({\mathbf{v}}(t)\sim N(\rm{0},{\mathbf{Q}}(t))\), \(w_{j} (t)\sim N(0,R_{j} (t))\). The specific meanings of each expression are explained in detail in Sections "Dynamic Model and Measurement Model".

To avoid the impact of specific frequency standard outages on fusion results, a resilient factor \(\rho_{j} (t)\) is added to the MFKF, and then the fusion equations are:

$$y(t) = {\mathbf{C}}(t){\mathbf{x}}(t) + w(t)$$
(25)

where \(w(t)\sim N(0,R(t))\),

$$y(t) = \left( {\sum\limits_{j = 1}^{N} {\frac{{\rho_{j} (t)}}{{R_{j}^{{}} \left( \tau \right)}}} } \right)^{ - 1} \sum\limits_{j = 1}^{N} {\frac{{\rho_{j} (t)y_{j} (t)}}{{R_{j}^{{}} \left( \tau \right)}}}$$
(26)
$$C(t) = \left( {\sum\limits_{j = 1}^{N} {\frac{{\rho_{j} (t)}}{{R_{j}^{{}} \left( \tau \right)}}} } \right)^{ - 1} \sum\limits_{j = 1}^{N} {\frac{{\rho_{j} (t)C_{j} (t)}}{{R_{j}^{{}} \left( \tau \right)}}}$$
(27)
$$R(t) = \left( {\sum\limits_{j = 1}^{N} {\frac{{\rho_{j} (t)}}{{R_{j}^{{}} \left( \tau \right)}}} } \right)^{ - 1}$$
(28)

where \(\rho_{j} (t) = 1\) when the j-th frequency standard is available and \(\rho_{j} (t) = 0\) when it is unavailable. The incorporation of resilient factors enables the adaptive update of the weights of frequency standards and observed noise variance in the circumstances where specific frequency standards become unavailable, thereby reducing the impact of interruptions to some frequency standards on the frequency estimation of the HM.

By utilizing the five solution equations to, we can obtain the estimated and predicted frequency of the HM through equations and. By steering the HM with the predicted frequency, the resilient timescale TA_MFKF can ultimately be obtained.

Estimation error analysis

This section gives the post-covariance of the estimates provided by MFKF and compares it with that of KF with a single measurement source. The post-covariance matrices of KF and MFKF have the same formula expressed as Eq. (13). Let the post-covariance matrix of timescale provided by MFKF be \({\mathbf{P}}(t|t)\), and that provided by Kalman filter based on only one of the observation sources be \({\mathbf{P}}_{i} (t|t)\). Substituting (10) into (13), we get

$${\mathbf{P}}(t|t) = \left( {{\mathbf{I}} - {\mathbf{K}}(t){\mathbf{C}}(t)} \right)\left( {{\mathbf{A}}(t){\mathbf{P}}(t - 1|t - 1){\mathbf{A}}^{\rm{T}} (t) + {\mathbf{Q}}(t)} \right)$$
(29)

Therefore, the estimated covariance matrix is correlated with the previous round and iteratively propagated. Assuming that the covariance matrix of the estimated timescale at the previous round by using MFKF is the same as that of the classical Kalman filter, namely

$${\mathbf{P}}(t - 1|t - 1){ = }{\mathbf{P}}_{i} (t - 1|t - 1)$$
(30)

the estimated error of the two algorithms can be compared. Moreover, suppose that

$${\mathbf{C}}(t) = {\mathbf{C}}_{i} (t)$$
(31)

MFKF and Kalman filter observe the same object, so

$${\mathbf{A}}(t){ = }{\mathbf{A}}_{i} (t)$$
(32)
$${\mathbf{Q}}(t) = {\mathbf{Q}}_{i} (t)$$
(33)

Therefore, the difference between \({\mathbf{P}}(t|t)\) and \({\mathbf{P}}_{i} (t|t)\) is

$${\mathbf{P}}(t|t) - {\mathbf{P}}_{i} (t|t){\kern 1pt} {\kern 1pt} = \left( {{\mathbf{K}}_{i} (t) - {\mathbf{K}}(t)} \right){\mathbf{C}}(t){\mathbf{P}}(t|t - 1)$$
(34)

Substitute (11) into (34), then

$${\mathbf{P}}(t|t) - {\mathbf{P}}_{i} (t|t) = {\mathbf{S}}\left( {R(t) - R_{i} (t)} \right)$$
(35)

where

$${\mathbf{S}} = \frac{{{\mathbf{P}}(t|t - 1){\mathbf{C}}^{T} (t){\mathbf{C}}(t){\mathbf{P}}(t|t - 1)}}{{\left( {{\mathbf{C}}(t){\mathbf{P}}(t|t - 1){\mathbf{C}}^{T} (t) + R(t)} \right)\left( {{\mathbf{C}}(t){\mathbf{P}}(t|t - 1){\mathbf{C}}^{T} (t) + R_{i} (t)} \right)}}$$
(36)

Therefore, the magnitude of \({\mathbf{P}}(t|t)\) and \({\mathbf{P}}_{i} (t|t)\) is only related to \(R(t)\) and \(R_{i} (t)\).

Due to Eq. (8),

$$\frac{{R_{i} (t)}}{R(t)} = R_{i} (t)\sum\limits_{j = 1}^{N} {R_{j}^{ - 1} } (t) = 1 + \sum\limits_{\begin{subarray}{l} j = 1 \\ j \ne i \end{subarray} }^{N} {R_{i} (t)R_{j}^{ - 1} } (t) > 1$$
(37)

\(R(t) < R_{i} (t)\), thus \({\mathbf{P}}(t|t)\) is smaller than \({\mathbf{P}}_{i} (t|t)\), therefore, it is proved that MFKF has a smaller post-covariance than KF with a single measurement source.

Simulation results and discussions

This section uses simulation experiments to demonstrate that the timescale generated by the MFKF algorithm using multiple PFS outperforms that generated by the KF algorithm using one PFS. Section 3 has theoretically proven that the MFKF algorithm has a smaller post-covariance than the KF algorithm. However, it is difficult to verify in our laboratory as we only have one Cs fountain clock and several commercial Cs beam atomic clocks. The noise of the Cs beam atomic clocks is an order of magnitude higher than that of the Cs fountain clock, and therefore their fusion with the Cs fountain clock does not significantly improve performance, as shown in the next section. To address this limitation, two Cs fountain clocks with a similar performance and one HM were simulated, and the MFKF and KF algorithms were used to generate timescales, respectively. The time differences and stability analysis were compared with an ideal reference.

Based on the performance of Cs fountain clocks and HMs in our laboratory, the noise parameters of two Cs fountain clocks and one HM were determined and presented in Table 1.

Table 1 Noise parameters of simulated clocks

Using Stable32 (Riley, 2020), several clocks' frequency and time difference data were simulated relative to an ideal reference. The simulation had a sampling interval of one day and lasted for 500 days. Figure 3 presents the stability analysis of the simulated clocks compared to the ideal noiseless reference.

Fig. 3
figure 3

Stability of simulated atomic clocks relative to the ideal reference

By subtracting the data of the HM and the Cs fountain, we obtained their differences, namely HM1_CsF1 and HM1_CsF2. KF was then used to filter both HM1_CsF1 and HM1_CsF2 separately, and the filtering result steered the HM. This process led to the creation of two timescales, TA_KF_SIM_1 and TA_KF_SIM_2. With MFKF, HM1_CsF1 and HM1_CsF2 data were fused and filtered, generating TA_MFKF_SIM by steering the HM with the filter result. Figures 4 and 5 present the three timescales' time differences and stability relative to the ideal reference, respectively.

Fig. 4
figure 4

Time deviation with reference to the ideal reference of TA_MFKF_SIM, TA_KF_SIM_1, and TA_KF_SIM_2, respectively

Fig. 5
figure 5

Stabilities of TA_MFKF_SIM, TA_KF_SIM_1, and TA_KF_SIM_2 relative to the ideal reference

In Fig. 4, the maximum time difference of 12.0 ns between TA_KF_SIM_1 and TA_KF_SIM_2 is observed on the 490th day. The corresponding average frequency deviation (\(f_{d}\)) of TA_KF_SIM_1 and TA_KF_SIM_2 within 490 days is 2.83 × 10–16. Based on the WFM of CsF1_SIM and CsF2_SIM, their stability for the averaging times of 500 days is calculated to be 1.08 × 10–16 (\(\sigma_{1}\)) and 1.11 × 10–16 (\(\sigma_{2}\)), respectively. The stability of the deviation between CsF1_SIM and CsF2_SIM is 1.55 × 10–16 (\(\sigma_{c}\)). The ratio of \(f_{d}\) to \(\sigma_{c}\) is 1.83, indicating that the 12.0 ns time deviation of the two falls within the normal range.

The Root Mean Square (RMS) of TA_MFKF_SIM, TA_KF_SIM_1, and TA_KF_SIM_2 is 0.84, 2.99, and 2.67 ns, respectively. As shown in Fig. 5, the stability of TA_MFKF_SIM is either superior or comparable to TA_KF_SIM_1 and TA_KF_SIM_2 at nearly all averaging times. As indicated by the simulation results, the MFKF algorithm exhibits a better performance in terms of time deviation and stability compared to the traditional KF algorithm.

Therefore, by utilizing MFKF to fuse multiple frequency standards, a better timescale is obtained compared to that using a single frequency standard alone.

Experiment results and analysis

In this section, the Cs fountain clock CsF1 (Shi et al., 2019; Wang et al., 2020, 2022) and five commercial Cs beam clocks in BSNC were integrated using MFKF to predict the HM’s frequency, and then steer the HM to generate the resilient timescale TA_MFKF. The time difference between UTCr and TA_MFKF was indirectly obtained by the optical fiber link between BSNC and NIM. The time stability of the optical fiber link is less than 6.0 ps/s and 0.9 ps/100 s. (Liang et al., 2015).

The experimental data comprised the frequency comparison data obtained with Cs fountain clock CsF1, five commercial Cs beam clocks, and one HM for the period from MJD58284 to MJD58448 (165 days). The observed HM's daily stability was 8.5 × 10–16, and its frequency drift was 4.21 × 10–17 d−1. The noise parameters of frequency standards CsF1 and five Cs beam clocks are shown in Table 2. Furthermore, the frequency of Cs beam clocks was calibrated using CsF1.

Table 2 Noise parameters of frequency standards

To evaluate the performance of TA_MFKF in the event of a failure of CsF1, a data interruption of CsF1 was simulated during the period MJD58354-58424 (70 days). MFKF was used to resiliently generate the timescale TA_MFKF using the data from both Cs beam clocks and the interrupted CsF1. Furthermore, another timescale, TA_PFS, was generated by the Kalman filter using the data from a continuous CsF1. Both TA_MFKF and TA_PFS were compared and evaluated for their performance during CsF1 interruption and its normal operation.

Figure 6 shows the measured and filtered values obtained with the two methods. The red star represents the fusion measurement result of one discontinuous Cs fountain clock and five commercial Cs clocks based on MFKF, and the red curve is its filter result. The blue dots represent the measurement result of the continuous Cs fountain clock, and the blue curve is its filter result based on the Kalman filter. Measurement_MFKF represents the HM's fusion measurement with reference to CsF1 and five Cs beam clocks, including a simulated 70-day CsF1 interruption. Measurement_PFS represents the measurement of the HM with reference to continuous CsF1. Estimate_MFKF and Estimate_PFS represent the filtering results obtained with MFKF and KF, respectively. The frequency difference between Estimate_MFKF and Estimate_PFS is shown in Fig. 7.

Fig. 6
figure 6

Measurement and estimation of the frequency difference between frequency standards and hydrogen maser with MFKF and KF, respectively

Fig. 7
figure 7

Frequency difference between Estimate_MFKF and Estimate_PFS

Two timescales, TA_MFKF and TA_PFS, were generated by steering the HM using its frequency estimates, expressed as Estimate_MFKF and Estimate_PFS, respectively. Figure 8 illustrates the indirect comparison of the time difference between UTCr and the two timescales. This comparison is made by utilizing an optical fiber link to UTC(NIM) and referencing the downloaded time difference data between UTCr and UTC(NIM) from the BIPM FTP server. TA_MFKF and TA_PFS were generated using the interrupted and continuous data of Cs Fountain, respectively.

Fig. 8
figure 8

Time deviation with reference to UTCr of TA_MFKF and TA_PFS, respectively

Figures 6 and 7 show that when the Cs fountain clock is available (MJD58284-58353), Estimate_MFKF is nearly identical to Estimate_PFS, with a maximum frequency difference of only 3.61 × 10–16. This is because the measurement noise of commercial Cs clocks is approximately ten times higher than that of Cs fountains. As a result, the weight assigned to commercial Cs clocks tends toward zero, while the weight assigned to the Cs fountain clock approaches 100% in Eq. during observation fusion. Consequently, when the Cs fountain clock operates normally, the measurements and estimates obtained from the fusion observation and the Cs fountain clock are nearly identical.

Figures 7 and 8 show that during the 70-day period when the Cs fountain clock is unavailable (MJD58354-58424), the frequency difference between Estimate_MFKF and Estimate_PFS remains within ± 1 × 10–14, while the time deviation between TA_MFKF and UTCr within ± 5 ns. When the Cs fountain clock is in regular operation, the frequency difference between Estimate_MFKF and Estimate_PFS immediately is reduced to 1.96 × 10–15, and their maximum frequency difference is reduced to 3.78 × 10–16 after five days.

The classic weighted average algorithm introduces a prediction term to prevent phase and frequency jumps when some clocks fail. However, the MFKF approach does not require additional operations and avoids jumps. Due to that, Kalman filtering performs a weighted average of the measured value and the predicted value, where the Kalman gain determines the weight. As shown in Eq. (11), even if the clock with the best performance (the Cs fountain clock in this experiment) experiences an interruption, the covariance of observation noise will increase, which causes the Kalman gain to decrease. As a result, the weight of the prediction term automatically increases, reducing the impact of observation errors on the Kalman-filtered value.

The Cs clock ensemble's role was demonstrated by conducting an experiment during the 70-day interruption period of the Cs fountain clock, where the HM was allowed to run freely without being steered by the Cs clock ensemble. The time scale generated by this experiment is referred to as TA_Free. Figure 9 shows that there is a time deviation of more than 1100 ns between TA_Free and UTCr during the 70-day interruption of CsF1. The reason is that there is the frequency drift and bias (usually at the level of 1 × 10–13) of the HM, which causes a huge time deviation when it runs freely and without being steered by the Cs clock ensemble, even though the short-term stability of the HM is good. Therefore, during the interruption of the Cs fountain clock, if the proposed resilient timescale algorithm is applied to fuse the Cs clock ensemble and steer the HM, the performance of the time scale can effectively be improved.

Fig. 9
figure 9

Time deviation with reference to UTCr of TA_MFKF, TA_PFS, and TA_Free, respectively

Furthermore, the stability of both TA_MFKF and TA_Free relative to UTCr were computed separately and depicted in Fig. 10. The red and green curves represent the stability of TA_MFKF and TA_Free.

Fig. 10
figure 10

Overlapping Allan deviation of TA_MFKF and TA_Prediction with reference to UTCr, respectively

As shown in Fig. 10, TA_MFKF exhibits much better stability than TA_Free. When the Cs fountain clock is interrupted, TA_Free relies on a free-running HM, which has frequency drift and bias. As a result, TA_Free does not receive the correction from other frequency standards, leading to frequency drift and deviation. On the other hand, during the Cs fountain clock interruption period, TA_MFKF utilized five Cs beam atomic clocks as frequency standards, which were fused to steer the HM and correct its frequency drift and deviation. This difference in the fusion of frequency standards explains why TA_MFKF demonstrates much better stability than TA_Free.

When the Cs fountain is interrupted, the predicted data from the previous day can also be utilized as a fixed reference to steer the HM during the interruption period, resulting in a time scale TA_Prediction. As shown in Fig. 11, TA_Prediction follows the trend before the interruption, while the HM experiences a small frequency deviation. Due to the lack of fused frequency standards to steer the HM, the resulting time deviation (9.7 ns) is greater than that of TA_MFKF and TA_PFS.

Fig. 11
figure 11

Time deviation with reference to UTCr of TA_MFKF, TA_PFS, and TA_Prediction, respectively

Therefore, the experiments verify the TA_MFKF's resilient timekeeping ability, whether the Cs fountain clock is in regular operation or not.

Conclusion

A resilient timekeeping algorithm with a multi-observation fusion Kalman filter is proposed. It integrates the frequency measurements of a HM with several frequency standards, including one discontinuous Cs fountain clock and five commercial Cs clocks, to generate the timescale (TA_MFKF). During the 70-day interruption of the fountain clock, the time deviation between TA_MFKF and UTCr is maintained within ± 5 ns. In contrast to the traditional Kalman filtering algorithms, which fail when reference clock data is interrupted, the MFKF algorithm can resiliently adjust the observation noise covariance matrix and fuse the measurement data from other continuous frequency standards, thus maintaining reliable operation of the timescale.

Furthermore, the simulations have shown that the timescale generated by MFKF is more stable than that of KF due to the resilient fusion of multiple PFS, which reduces the impact of measurement noise on HM frequency estimates. Moreover, externally compared data can also be incorporated into the resilient timekeeping algorithm as a measurement reference source for the institutions that do not emphasize autonomy.

Availability of data and materials

The datasets used and/or analysed during the current study are available from the corresponding author on reasonable request.

References

Download references

Acknowledgements

The authors would like to thank Dr. Zhiqiang Yang of NIM for their valuable help.

Funding

This work was supported by the National Natural Science Foundation of China (Grant No. 41931076) and the National Key Research and Development Program of China (grant number 2020YFB0505801).

Author information

Authors and Affiliations

Authors

Contributions

XW: original draft, proposed the idea and carried out the simulation and experiment; YY: theoretical guidance, review, and editing. BW, YL, and CH: review. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Xiaobin Wang.

Ethics declarations

Competing interests

The authors declare no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Wang, X., Yang, Y., Wang, B. et al. Resilient timekeeping algorithm with multi-observation fusion Kalman filter. Satell Navig 4, 25 (2023). https://doi.org/10.1186/s43020-023-00115-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s43020-023-00115-4

Keywords