1 Introduction

Structural health monitoring (SHM) has been widely accepted as an effectively approach to ensure the structural safety, serviceability and reliability of long-span bridges. Various parameters monitored by SHM systems are adopted for structural damage detection and performance evaluation [1,2,3,4]. Among them, displacement is a typical one and has been flexibly used by many researchers [5,6,7]. However, in addition to structural damages and operational loads such as wind load and vehicle load, temperature can also induce remarkable displacement in long-span bridges. Sometimes, the displacement caused by temperature may exceed the displacement caused by structural damages or operational loads [8, 9]. Therefore, in order to use displacement to reliably indicate damages in long-span bridges, it is significant to thoroughly understand the correlation between temperature and displacement. As a result, the displacement caused by temperature could be reasonably separated from the monitored displacement results and the displacement caused by damages is discernible.

In recent decades, intensive research activities regarding the correlation between temperature and thermal displacement of long-span bridges have been carried out. Li et al. provided an excellent review on the temperature distribution and the temperature actions of various types of bridges, including beam bridges, arch bridges, cable-stayed bridges, and suspension bridges [10]. Specifically, as early as 1989, Potgieter and Gamble investigated the effects of nonlinear temperature distributions in bridge structures resulting from solar radiation and other related weather parameters [11]. With the development of SHM technology, the temperature distribution and its impact on long-span bridges have been widely studied based on long-term monitored data. Ni et al. discussed the influence of temperature on modal frequencies and longitudinal displacement earlier and developed influential methods to establish correlation models between temperature and temperature-induced responses [12, 13]. Subsequently, Catbas et al. found that temperature has a significant effect on the overall system reliability of long-span bridges [14]. Xu et al. studied the statistical relationship between effective temperature and displacement of the Tsing Ma Bridge using data recorded in the equipped SHM system [8]. Kromanis and Kripakaran proposed a data-driven strategy for predicting thermal response of structures from distributed temperature measurements [15]. Yang et al. carried out a monitoring-based analysis of temperature-induced girder deflection for a combined highway and railway cable-stayed bridge and formulated the correlation between the structural temperature and the girder deflections [16]. Zhou et al. proposed a closed-form thermal correlation model based on monitoring data and applied it to a bridge to verify the model universality [17]. Zhou et al. deduced the analytical formulas to describe the thermal deformation of suspension bridges and used eight real long-span suspension bridges as examples to verify the results [9]. Those research works provide valuable information for establishing the relationship between temperature and thermal displacement.

Because of the complication of material thermodynamic properties and structural geometric configurations of long-span bridges, the change of structural temperature and the variation of structural displacement may be asynchronous, which is term as the time-lag effect. The time-lag effect has been found in many monitored temperature and displacement data from different bridge health monitoring systems [7, 18, 19]. Westgate et al. discussed the phenomenon of the time-lag effect in long-span bridges and attributed it to the difference of thermodynamic features between concrete and steel [20]. Wang et al. observed the time-lag effect between the surface solar radiation intensity and structural effective temperature [21]. The time-lag effect will cause notable hysteresis loops between temperature and thermal deformation. As a result, there is no obvious linear temperature–displacement correlation any more, which in turn reduce the reliability of displacement-based damage identification and safety assessment results [22]. Thus, in order to establish more accurate temperature–displacement correlation models for long-span bridges and obtain more reliable displacement-based damage detection results, the time-lag effect should be carefully compensated.

At present, the time-lag effect is arbitrarily compensated by shifting a fixed time interval in most researches. For examples, Guo et al. put the temperature data 45 min behind the displacement data to enhance the linearity [23]; Yang et al. shifted the deflection of the main girder of a combined highway and railway cable-stayed bridge for 2.2 h to mitigate the time-lag effect [24]; Wang et al. used the historical average lag time to remove the time-lag effect [21]; Ju et al. adopted 2.8 h and 2.9 h to eliminate the temperature time-lag effect in bridge tower data, respectively [22]. However, due to the lag time may change with time and be variable between different temperature and displacement variables, these compensation methods of shifting a fixed time interval cannot completely eliminate it. At the same time, the intrinsic reason inducing the time-lag effect has not yet been captured. Therefore, it becomes necessary to fully study the mechanism of the time-lag effect and develop a more accurate and flexible compensation method to address it. In this paper, the characteristics of the time-lag effect between temperature and thermal displacement are carefully investigated based on long-term monitored temperature and displacement data recorded by a SHM system equipped on a long-span steel box-girder arch bridge. The inherent reason leading to the time-lag effect is extracted. Following that, a general method is proposed to compensate the time-lag effect, and data obtained from three bridges are adopted to verify its effectiveness. The research results can provide reference value for modeling temperature–displacement correlation and conducting displacement-based structural safety assessment of long-span bridges.

2 Characteristics of the time-lag effect

2.1 Temperature and response data

The synchronously temperature and response data (i.e. displacements) used for analysis obtained from a SHM system installed on a three-span continuous steel box-girder arch bridge, as shown in Fig. 1. Each of the three spans is 210 m. The arch system, which is supported by the V-shaped thin-wall pier, is composed of the external-inclined main arch rib, the internal-inclined auxiliary arch rib, the transversal brace between the main and auxiliary rib, and the transversal vault connector between the two auxiliary arch ribs. Thirty-eight suspenders are adopted to transfer the load from the main girder to the arch system. The main girder is a steel-box girder with a uniform cross-section. The precast concrete slab with a thickness of 260 mm is used as the bridge deck system. The main rib, auxiliary rib, transversal brace, transversal vault connector, suspenders and main girder make the load transfer extremely complex. In order to ensure the safety of the bridge, a versatile SHM system was installed to monitor the external environment, operation load and structural responses in real time [25].

Fig. 1
figure 1

Overview of the steel box-girder arch bridge

Digital temperature sensors are adopted to monitor structural temperatures in the main arch rib, suspenders and main girder, as shown in Figs. 2 and 3. The subscript in Fig. 2 represents the number of the monitored section and the number in the bracket denotes the sensor number; while the first subscript in Fig. 3 indicates the monitored section number and the second subscript is the sensor number. The resolution of the digital temperature sensor is 0.0625 °C, and the measurement range is − 55 to 125 °C. The sampling period is set as 1 min.

Fig. 2
figure 2

Layout of temperature sensors

Fig. 3
figure 3

Locations of temperature sensors on bridge components

The vertical displacement of the main girder is monitored by connecting pipes combined with pressure sensors. Twenty pressure sensors are installed in each quarter span and mid-span, as shown in Fig. 4. These sensors are divided into two groups. In each group, the pressure sensor located on the top of the pier, where the vertical displacement is almost equal to zero, is selected as the reference sensor. The real vertical displacement is equal to the measured result of the pressure sensor minus the measured result of the reference sensor. The measuring range of the pressure sensor is 1000 mm, and the measuring accuracy is ± 0.065%. The sampling period of pressure sensors is 10 s. The longitudinal displacement of the main girder is measured by two magnetostrictive displacement transducers, which are located at both ends of the main girder, as displayed in Fig. 4. The measuring range of the magnetostrictive displacement transducer is 7600 mm, and its resolution is 0.1 mm. The sampling period of the longitudinal displacement is also 10 s.

Fig. 4
figure 4

Layout of displacement sensors

2.2 Data preprocessing

The sampling frequencies of monitored temperature and displacement data may be different, which brings difficulties to the discussion and compensation of the time-lag effect. Not only that, the monitored displacement, especially the vertical displacement, includes not only the part induced by temperature, but also the part caused by other factors, such as wind and vehicle load. In this paper, the following procedures are employed to extract the vertical and longitudinal displacement induced by temperature. The flowchart is shown in Fig. 5.

Fig. 5
figure 5

Flowchart of data preprocessing

Step (1). The measured temperature and displacement are simultaneously averaged in a fixed time interval. Here, the 10 min is used. As a result, the sampling frequency of temperature and displacement is kept the same and the computational efficiency is improved. Furthermore, these dynamic parts induced by vehicle load and environmental vibrations and the measurement noises are deleted from the monitored displacement.

Step (2). These temperature and displacement samples are deleted when the average wind speed in 10 min is greater than 5 m/s, supposing that the wind-induced displacement can be ignored. As a consequence, the influence of the wind load is eliminated.

Step (3). The updated finite element model of the bridge is employed to calculate the vertical static displacement by using the vehicle load obtained from the weight in motion system as input [17]. Then, the vertical static displacement induced by the vehicle load can be eliminated.

2.3 Phenomenon of the time-lag effect

In general, the mean temperature or the effective temperature of a bridge is chosen as the representative temperature variables to perform temperature-based structural evaluation [26, 27]. For the employed long-span bridge, the mean temperature and thermal displacement in the middle cross-section of the middle span is calculated by Eqs. (1) ~ (7).

$${T}_{mean}=\frac{1}{4}\left({AT}_{mean}+{ST}_{mean}+{GT}_{u-mean}+{GT}_{l-mean}\right)$$
(1)
$${AT}_{mean}=\frac{1}{4}\sum_{i=1}^{4}{ATS}_{4-i}$$
(2)
$${ST}_{mean}=\frac{1}{4}\sum_{i=1}^{4}{STS}_{1-i}+\frac{1}{4}\sum_{i=1}^{4}{STS}_{2-i}$$
(3)
$${GT}_{u-mean}=\frac{1}{2}\left({GTS}_{4-1}+{GTS}_{4-3}\right)$$
(4)
$${GT}_{l-mean}=\frac{1}{2}\left({GTS}_{4-2}+{GTS}_{4-4}\right)$$
(5)
$${VD}_{mean}=\frac{1}{2}\left({VDS}_{1-5}-{RDS}_{1}+{VDS}_{2-5}-{RDS}_{2}\right)$$
(6)
$${LD}_{mean}=\frac{1}{2}\left({LDS}_{1}+{LDS}_{2}\right),$$
(7)

where \({T}_{mean}\), \({AT}_{mean}\), \({ST}_{mean}\), \({GT}_{u-mean}\) and \({GT}_{l-mean}\) represent mean temperatures in the whole cross-section, arch rib, suspender, upper surface of the main girder and lower surface of the main girder, respectively; \({ATS}_{4-i}\), \({ATS}_{1-i}\), \({ATS}_{2-i}\) and \({GTS}_{4-i}\) denote temperatures monitored by sensors \({ATS}_{4-i}\), \({STS}_{1-i}\), \({STS}_{2-i}\) and \({GTS}_{4-i}\) shown in Figs. 2 and 3, respectively; \({VD}_{mean}\) and \({LD}_{mean}\) are vertical mean displacement and longitudinal mean displacement, respectively; \({VDS}_{1-5}\), \({RDS}_{1}\), \({VDS}_{2-5}\), \({RDS}_{2}\), \({LDS}_{1}\) and \({LDS}_{2}\) denotes displacement measured by sensors \({VDS}_{1-5}\), \({RDS}_{1}\), \({VDS}_{2-5}\), \({RDS}_{2}\), \({LDS}_{1}\) and \({LDS}_{2}\) shown in Fig. 4, respectively.

The mean temperature in the whole cross-section and thermal displacement data of five continuous days in summer and winter are randomly selected to analyze. The time histories of displacement and temperature are plotted and compared in Fig. 6. And the corresponding lag times are listed in Table 1. In the figure, the subscripts w and s represent summer and winter, respectively. In the table, negative numbers indicate that the mean temperature lags behind the displacement, and vice versa. It can be seen from the two figures and the table that the time-lag effect is remarkable and similar in winter and summer. Specifically, vertical displacement is ahead of mean temperature in the whole cross-section; while longitudinal displacement lags behind mean temperature in the whole cross-section. The time-lag effect is time-dependent. Furthermore, the lag times between vertical displacement and mean temperature in the whole cross-section and that between longitudinal displacement and mean temperature in the whole cross-section are different. The time-lag effect changes with thermal displacement variables. It can be concluded that the method of using a fixed time interval to arbitrarily compensate the time-lag effect is inadvisable.

Fig. 6
figure 6

Time histories of mean temperature in the whole cross section and displacement

Table 1 Lag times between mean temperature and displacement (Unit: min)

2.4 Inherent reason of the time-lag effect

According to the thermodynamic theory, the thermal deformation of the material is completely synchronous with the temperature change, and there is no time-lag effect. However, noticeable time-lag effects between thermal displacement and temperature are found in monitored data. Therefore, careful investigation is required to capture the reason.

The time histories of mean temperatures in bridge components and thermal displacements are plotted in Figs. 7 and 8. It can be seen from these figures that, for the same mean temperature and thermal displacement, the characteristics of the time-lag effect are almost the same in summer and winter; but for different mean temperatures and thermal displacements, the properties of the time-lag effect are different from each other even in the same season. When taking a closer look, there is no obvious time-lag effect between the mean temperatures in the main arch rib and the suspender and vertical displacement, as shown in Fig. 7. But vertical displacement is ahead of the mean temperatures in the upper surface and the lower surface of the main girder. Moreover, the time-lag effect between vertical displacement and the mean temperature in the upper surface of the main girder is more remarkable. As displayed in Fig. 8, longitudinal displacement lags behind the mean temperatures in the main arch rib and suspender and is ahead of the mean temperature in the upper surface of main girder. The time-lag effect between longitudinal displacement and the mean temperature in the lower surface of main girder in Fig. 7 is inconspicuous. In short, the time-lag effect dependents on the picked temperature and displacement variables and the selected time instance.

Fig. 7
figure 7

Time histories of mean temperature and vertical displacement

Fig. 8
figure 8

Time histories of mean temperature and longitudinal displacement

Focusing on the mean temperatures themselves in different bridge components, it can be observed that the change of different mean temperatures is asynchronous and the phase difference among mean temperatures is notable. Taking the heat exchange features of materials and geometric configurations of components into account, the main arch rib and suspender have similar heat exchange speed with ambient air because both of the them are made of steel and have small cross sections. As a consequence, the change of temperatures in the main arch rib and suspender is almost synchronous. On the contrary, the large amount of air in the box of the main girder results in lower heat exchange speed of the main girder than that of the main arch rib and suspender. As a result, the change of temperatures in the upper and lower surface lags behind that of the main arch rib and suspender. Furthermore, the upper surface of the main girder is in close contact with the concrete bridge deck with low thermal conductivity, which results in that the change of temperature in the upper surface of the main girder is the slowest.

The Kendall correlation coefficient, which measure the correlation of two sequences even if they do not obey the Gaussian distribution, among various mean temperatures and thermal displacements are calculated and listed in Table 2. Vertical displacement has high Kendall correlation coefficients with the mean temperatures in the main arch rib and suspender and low Kendall correlation coefficients with the mean temperatures in the upper and lower surface of the main girder, which indicates that the vertical displacement is governed by the mean temperatures in the main arch rib and suspender. Therefore, there should be no time-lag effect between vertical displacement and the mean temperatures in the main arch rib and suspender, as shown in Fig. 7. The asynchrony of the mean temperatures in the main arch rib and suspender and the mean temperatures in the upper and lower surface of the main girder results in the time-lag effect between vertical displacement and the mean temperatures in the upper and lower surface of the main girder. Similarly, the high Kendall correlation coefficient between longitudinal displacement and the mean temperature in the lower surface of the main girder illustrates that longitudinal displacement is dominated by the mean temperature in the lower surface of the main girder. As a result, there is no time-lag effect between them. And the mean temperature in the lower surface of the main girder lags behind the mean temperatures in the main arch rib and suspender and is ahead of the mean temperature in the upper surface of the main girder, as shown in Fig. 8, which leads to the remarkable time-lag effect of the longitudinal displacement. Finally, the unsynchronization of the mean temperatures in the main arch rib and suspender and the mean temperature in the lower surface of the main girder leads to the unsynchronization of vertical displacement and longitudinal displacement, respectively, controlled by them.

Table 2 Kendall correlation coefficients between mean temperatures and thermal displacements

3 Compensation method for the time-lag effect

In many SHM systems, only several temperature sensors are employed [23, 28]. There is not enough information to distinguish which is the dominant temperature for a certain displacement. Moreover, the dominant temperature for a certain displacement may be difficult to extract because of the complicated load and heat transfer. The environmental, effective or mean temperature is arbitrarily used to model the temperature-displacement correlation. In this instance, the time-lag effect is unavoidable and the model error may be unacceptable. Therefore, effective compensation method becomes necessary to eliminate the time-lag effect and enhance the correlation. The general compensation method without special processing for monitored data is proposed in this paper.

Mathematically, long-term monitored temperature and displacement results are typical functional data, so they can be processed by functional data analysis methods. It is supposed that the time histories of temperature and thermal displacement are represented by two functions \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\), respectively, where \(t\) denotes time. The compensation of the time-lag effect is equivalent to the alignment or registration of the two functions \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\). The core of function alignment is to separate amplitude variation from phase variation by the warping function, i.e., match peaks and valleys of the function [29].

Being different from general function alignment, in which functions are smooth, the smoothness of monitored temperature and thermal displacement is hard to ensure because of sudden climate changes and measurement errors. The Bayesian method, which has the capability to comprehensively explore the parameter space of the warping function and avoid the discretization of the infinite dimensional parameter space until the last step by incorporating prior knowledge [30], is thus integrated into the alignment to improve robustness and accuracy. In addition, a novel Z-mixture preconditioned Crank-Nicolson (pCN) algorithm is employed to effectively rank the posterior distribution on the space of the warping function.

3.1 Function space transformation

The long-term monitored temperature and thermal displacement are separated by day to meet the corresponding arrangement of the functional data analysis. The daily temperature-displacement pair is aligned independently. Then, without loss of generality, the time interval [0 h, 24 h] is mapped linearly to [0, 1]. The collection that \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\) belong to is represented by \(\mathcal{F}\). The collection \(\mathcal{F}\) has the property of \(\mathcal{F}=\left\{f\left(t\right):\left[\mathrm{0,1}\right]\to {\mathbb{R}}\right\}\), where \({\mathbb{R}}\) is the real number set. The aim of the alignment of \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\) is to find an optimal warping function \(\gamma (t)\) to minimize the time-lag of \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\circ \gamma \left(t\right)\) or \({f}_{1}\left(t\right)\circ \gamma \left(t\right)\) and \({f}_{2}(t)\), where \(\circ\) represents the composite operation; \(\gamma (t)\in \Gamma\), Γ is the set of boundary-preserving diffeomorphisms with the unit interval [0, 1]. Γ belongs to the Lie group with the identity element \({\gamma }_{{\text{id}}}\left(t\right)=t\) and is defined as [30]

$$\Gamma =\left\{\gamma :\left[\mathrm{0,1}\right]\to \left[\mathrm{0,1}\right]|\gamma \left(0\right)=0,\gamma \left(1\right)=1\right\}$$
(8)

Unfortunately, this alignment is neither symmetric nor positive definite, which is

$${inf}_{\gamma (t)\in\Gamma }\Vert {f}_{1}\left(t\right),{f}_{2}(t)\circ {\gamma }_{2}(t)\Vert \ne {inf}_{\gamma (t)\in\Gamma }\Vert {f}_{1}\left(t\right)\circ {\gamma }_{1}\left(t\right),{f}_{2}(t)\Vert$$
(9)

where \(\Vert \cdot \Vert\) represents the \({{\text{L}}}_{2}\) norm.

To cope with this problem, the square-root slope function (SRSF) is introduced [31]. The function \(f(t)\) can be converted to

$$q\left(f\right): \left[\mathrm{0,1}\right]\to {\mathbb{R}},q\left(t\right)=sign(\dot{f}(t))\sqrt{\left|\dot{f}(t)\right|}$$
(10)

where \(q\left(t\right)\) represents the SRSF of \(f\left(t\right)\), \(\dot{f}(t)\) is the derivative of \(f\left(t\right)\), and \(sign(\cdot )\) denotes the symbolic function.

According to the properties of Eq. (10) and its inverse transformation [32], the SRSF of \(f(t)\circ \gamma \left(t\right)\) is equal to

$$\left(q,\gamma \right)\left(t\right)=q(\gamma (t))\sqrt{\dot{\gamma }(t)}$$
(11)

As a result, the following symmetric equation can be obtained.

$$\Vert {q}_{1}\left(t\right)-{q}_{2}\left(t\right)\Vert =\Vert \left({q}_{1},\gamma \right)\left(t\right)-\left({q}_{2},\gamma \right)\left(t\right)\Vert$$
(12)

where \({q}_{1}\left(t\right)\) and \({q}_{2}\left(t\right)\) are SRSFs of \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\), respectively.

It can be seen from Eq. (12) that the warping function \(\gamma (t)\) can solve the problem of symmetric alignment between \({q}_{1}\left(t\right)\) and \({q}_{2}\left(t\right)\). That is to say, if \({q}_{1}\left(t\right)\) is aligned with \({q}_{2}\left(t\right)\) by \(\gamma (t)\), \({q}_{2}\left(t\right)\) is also aligned with \({q}_{1}\left(t\right)\) by the same \(\gamma (t)\). Furthermore, \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\) are aligned by the same warping function \(\gamma (t)\) and the time-lag effect between \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\) is eliminated. The collection of \(q\left(t\right)\) is termed as a quotient space, represented by \({{\text{L}}}_{2}/\Gamma\).

However, the Bayesian function registration is difficult to operate in the quotient space for the reason that \(\Gamma\) is a nonlinear manifold. In order to incorporate the Bayesian function registration model to improve the alignment accuracy, the warping function \(\gamma (t)\) should be mapped to the tangent space \({\rm T}_{1}\left({\mathbb{Q}}\right)\), which is a linear space with the property of isometry and invertibility. The detailed derivation is listed in Appendix A [30, 31, 33, 34].

3.2 Bayesian model specification

As mentioned above, the alignment of \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\) can be performed on the quotient space. The difference \(q\left({f}_{1}\right)\left(t\right)-q\left({f}_{2}\right)\left(t\right)\) can be assumed as a standard multivariate Gaussian distribution. Using \(g\) instead of \(\gamma\), the likelihood is reparametrized as follows:

$$q\left({f}_{2}\circ \gamma \right)\left(t\right)=q\left({f}_{2}\right)\left\{{\int }_{0}^{t}{exp}_{1}^{2}\left(g\right)\left(s\right)ds\right\}{exp}_{1}\left(g\right)\left(t\right)$$
(13)

The prior distribution on \(g\) is restricted to a subset \(\mathcal{H}\), which is defined by

$$g\in \mathcal{H}\subset {\rm T}_{1}\left({\mathbb{Q}}\right)\iff {exp}_{1}(g)>0$$
(14)

The Bayesian model of the warping function is fully specified as.

\(q\left({f}_{1}\right)\left(\left[t\right]\right)-q\left({f}_{2}\right)\left\{{\int }_{0}^{\left[t\right]}{exp}_{1}^{2}\left(g\right)\left(s\right)ds\right\}{exp}_{1}\left(g\right)\left(t\right)|g\),

\({\sigma }_{1}^{2}\sim N\left({0}_{N},{\sigma }_{1}^{2}{I}_{N}\right)\),

\(g\sim \text{Gaussian }\left(0,{\mathcal{C}}_{g}{;I}_{A}\right)\),

$${\sigma }_{1}^{2}\sim IG(a, \, b)$$
(15)

where \(\text{Gaussian }\left(\bullet ,\bullet {;I}_{A}\right)\) represents the Gaussian process restricted to the domain \(\mathcal{H}\), \({\mathcal{C}}_{g}\) is a prespecified covariance operator, \(IG({\bullet}, \, {\bullet})\) denotes the inverse gamma distribution with determined constants \(a\) and \(b\), \({\sigma }_{1}^{2}I\) is the covariance matrix of the normal distribution, \(I\) denotes the identity matrix, and the subscript \(N\) is the length of the vector representing \({f}_{1}\left(t\right)\) and \({f}_{2}(t)\). The detailed derivation of this model can be referred to Lu et al. [30].

The solve of the prior and posterior distributions by the Z-mixture pCN algorithm is provided in Appendix B. The procedure for the time-lag effect compensation is shown in Fig. 9.

Fig. 9
figure 9

Procedure of the time-lag effect compensation

4 Method verification

Three cases are adopted to validate the proposed time-lag effect compensation method. Data in case one are those monitored results in Sect. 2. Data in case two and case three are obtained from two long-span cable-stayed bridges with steel truss main girders. In each case, the compensated method proposed in this paper and the compensated method by shifting a fixed time interval, which are termed as “method I” and “method II” in the following description, respectively, are applied and compared.

4.1 Case one

By using the data in Sect. 2, typical time histories of the mean temperature and thermal displacement before and after compensation in 24 h is shown in Fig. 10. The fixed time intervals in method II are selected as -50 min, -60 min, 80 min, 70 min so that peaks of these curves are accurately aligned. As can be seen, the time-lag effect is no longer observed after compensated by the method proposed in this paper (method I), while the time-lag effect still exists after compensated by the method of shifting a fixed time interval (method II). Because the time-lag effect change with time, there is not a fixed time to meet the requirement that the peak and valley of mean temperature and thermal displacement are aligned simultaneously. Further, the correlation between mean temperature and thermal displacement before and after compensation are plotted in Fig. 11. It can be easily found that the thermal displacement compensated by method I has a stronger correlation with the mean temperature. The feature of the hysteresis loop can still be detected, even if the thermal displacement is compensated by method II. The superiority of the compensation method proposed in this paper has been demonstrated.

Fig. 10
figure 10

Typical time histories of mean temperature and thermal displacement before and after compensation

Fig. 11
figure 11

Correlations between mean temperature and thermal displacement before and after compensation

The Kendall correlation coefficients between mean temperature and thermal displacement before and after compensation are calculated and listed in Table 3. After the time-lag effect is compensated by method I, the essential relationship between mean temperature and thermal displacement is revealed and the linearity between them is significantly enhanced. The Kendall correlation coefficients are greatly improved (i.e. from 0.38 to 0.92). On the contrary, the improvement of the linearity between mean temperature and thermal displacement compensated by method II is limited (i.e. from 0.38 to 0.78) for the reason that the time-lag effect has not been completely eliminated. The effectiveness of the proposed compensation method is verified again. These compensated mean temperature and thermal displacement would result in more accurate temperature–displacement models and more reliable displacement-based safety evaluation.

Table 3 Kendall correlation coefficients before and after compensation

The warping functions, which are adopted to align these functional data in Fig. 10, are plotted in Fig. 12. In the figure, the time interval [0 h, 24 h] is mapped linearly to [0, 1] and the distance between the warping function and the diagonal can measure the time-lag effect. The larger the distance is, the more obvious the time-lag effect is. It can be found that, the time-lag effects are different on different days and at different time instances. Flexible time compensation can better remove the time-lag effect.

Fig. 12
figure 12

Warping functions in case one

4.2 Case two

The data used for verification in this case were recorded by a SHM system equipped on a long-span cable-stayed bridge. The main span and two equal side spans are 300 m and 170 m, respectively. The elevation view of the bridge and the arrangement of longitudinal displacement sensors are shown in Fig. 13(a). The longitudinal displacement is monitored by sensors located on two ends of the main girder and the structural temperature is monitored by sensors located on the cross-section, as plotted in Fig. 13b, c.

Fig. 13
figure 13

Layout of displacement and temperature sensors on the bridge

The mean values of all longitudinal displacement sensors and the mean values of all temperature sensors in 24 h, which are referred as \({T}_{mean}\) and \({LD}_{mean}\), respectively, are calculated and adopted to analyze. The longitudinal displacement and temperature are averaged in 1 min. The time histories and correlations before and after compensation are displayed in Fig. 14. The Kendall correlation coefficient increases from 0.44 to 0.95 (method I) and 0.79 (method II). And the warping function is shown in Fig. 15. It can be found that the time-lag effect can be completely eliminated by method I. There is still a time-lag between temperature and longitudinal displacement compensated by method II in the valley of the curve, as marked by a circle in Fig. 14. The mean temperature has a stronger correlation with the thermal displacement compensated by method I than that compensated by method II. The superiority of the proposed compensation method has been proven again. Similarly, the lag time also changes with time, measuring from the distance between the warping function and the diagonal in Fig. 15.

Fig. 14
figure 14

Comparison of mean temperature and longitudinal displacement before and after compensation in case two

Fig. 15
figure 15

Warping function in case two

4.3 Case three

The data monitored from the bridge of case three are also employed. As shown in Fig. 16, the longitudinal displacement of the main girder is monitored by four displacement sensors located on 2 main girder ends and the structural temperature of the cross-section in the middle span is carefully measured by 18 temperature sensors.

Fig. 16
figure 16

Layout of displacement and temperature sensors on the bridge

Being similar to case two, the mean values of all longitudinal displacement sensors and the mean values of all temperature sensors in 24 h, which are also referred as \({T}_{mean}\) and \({LD}_{mean}\), respectively, are employed. The longitudinal displacement and temperature are averaged in one hour. The results are shown in Figs. 17 and 18. It can be seen from these figures that no matter whether the mean temperature and thermal displacement are positive or negative, the time-lag effect can be compensated by method I. The Kendall correlation coefficient is improved from 0.38 to 0.93 (method I) and 0.75 (method II). The linearity between the mean temperature and thermal displacement compensated by method I is better than that performed by method II.

Fig. 17
figure 17

Comparison of mean temperature and longitudinal displacement before and after compensation in case three

Fig. 18
figure 18

Warping function in case three

5 Conclusions

The time-lag effect is a key factor reducing the temperature–displacement correlation. In this paper, based on long-term monitoring data of temperature and displacement from three different bridges, the typical characteristics of the time-lag effect are investigated and a compensation method is proposed. The main conclusions are drawn as follows:

(1) The proposed compensation method originated from the Bayesian function registration model and the Z-mixture preconditioned Crank-Nicolson algorithm has the capability to completely eliminate the time-lag effect without any prior knowledge. Furthermore, the proposed compensation method is applicable to positive or negative data measured from various types of long-span bridges and pre-correlation analysis of data is unnecessary.

(2) Compared to the traditional method, which eliminates the time-lag effect by shifting a fixed time interval, the compensation method proposed in this paper can cope with the time-dependent time-lag effect and exhibits superior adaptability. The Kendall correlation coefficients between temperature and thermal displacement compensated by the proposed method is higher and the correlation is stronger.