* Corresponding author
This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Structural health monitoring (SHM) systems enable those responsible for the safe and proper maintenance of critical infrastructure to make better data-driven decisions in order to ensure that damage and deterioration is properly managed. Sensors are fitted to an asset so that the displacement and acceleration of its structural components can be recorded. A great deal of work in applying novel sensing capabilities is undertaken in this area. Chan et al. (2006) installed Fiber Bragg grating sensors to take strain measurements of the Tsing Ma bridge in Hong Kong. Their optics-based sensing capability provided comparable strain measurements to a previous study. Oh et al. (2015) implemented a vision-based system to monitor the acceleration of a building from a multi-camera installation. Their system captured identical behaviour to traditional accelerometers. To monitor the entirety of an asset, sensors are often deployed at various locations as part of a wireless sensor network (WSN), such as a WSN of video cameras to monitor the structural health of a bridge (Basharat, et al., 2005).

Sensing capabilities like these provide rich data sources to perform remote and intelligent SHM. However, what is less well researched is using the information from these sensors for a secondary purpose. Once a sensing capability has been installed onto an asset for SHM, there are no other costs besides the required maintenance of the WSN, and there is great potential to add value by using the data for other purposes.

This paper describes a method that reuses data from accelerometers installed as part of a WSN on the Clifton Suspension Bridge (CSB) in Bristol. Originally installed as a feasibility study in deploying SHM systems on the bridge, the sensors monitored the acceleration and displacement of the CSB over a two-month period. In this paper, a method is developed to count the number of vehicles that cross the bridge from the accelerometer data. Traditionally inductance loops are used to count vehicles, however, they are expensive to install and require the road to be closed and dug up. A method that can count vehicles by using already available data might therefore represent savings both in cost and in time.

In January 2017 a WSN was fitted to the CSB for a study in rapid deployment of SHM systems (Gunner, et al., 2017). From 25 January to 16 March 2017, the bridge’s structural response was captured and stored so that any changes in the bridge’s physical condition might be monitored.

The CSB stands at 75m above the River Avon and spans 214m across the Avon Gorge joining Clifton to Leigh Woods. The deck is suspended via 81 pairs of vertical iron rods. Since its opening in 1864, the bridge has remained an important piece of infrastructure, carrying three million vehicles every year (Yeung & Smith, 2005). The bridge has one lane in each direction that is accessible to cyclists. A 20mph speed limit is in force on the bridge and so it takes a minimum of 24 seconds to drive across the entire span. There is a footpath on each side of the bridge for pedestrians.

A toll barrier at each end of the CSB records when a vehicle enters the bridge, truncated to the nearest minute. Vehicles travelling towards Leigh Woods pass through the toll barrier at the Clifton end of the bridge and vice versa. There is no information available on when cyclists and pedestrians enter or leave the bridge.

Since a large number of vehicles use the CSB (over 8,000 per day on average), the toll barrier data, together with the structural responses captured in the study, provide a rich data set to help develop a vehicle count estimation method. Due to its age and design, the CSB is more compliant under loading than modern bridges. Hence the deflections due to vehicles tend to be larger and more easily identifiable.

Due to time and cost constraints, just four accelerometers were deployed on the bridge, in two pairs. Each pair straddles the width of the bridge deck, with one accelerometer on the north side and one on the south side, so that both vertical and torsional displacement can be measured. Each accelerometer is identified by the vertical iron suspension rod it is closest to, counting from the middle of the span, and whether it is on the north or south (N or S) side of the bridge, see Figure 1. The accelerometers have a range of 10ms-2, a sampling rate of 4,000 readings per minute and a resolution of 5.2×10-5ms-2. The sampling rate which is relatively low, is chosen to prolong battery life, whilst resolving the principle modes of the bridge.

Figure 1

Sensor deployment in the CSB trial. The Clifton end is in the foreground and the Leigh Woods end is furthest away from the viewer. The camera is pointing in a broadly westerly direction.

Figure 1

Sensor deployment in the CSB trial. The Clifton end is in the foreground and the Leigh Woods end is furthest away from the viewer. The camera is pointing in a broadly westerly direction.

Close modal

The first accelerometer pair (11LW N and 11LW S) is placed 26.8m from the midpoint, since Macdonald (2008) showed that this is the optimal location to pick up all of the deck’s natural frequencies up to 3Hz.

The second pair (40 LW N and 40 LW S) is placed towards the Leigh Woods end of the bridge, where the structural response to a vehicle entering or exiting there is greatest.

Finally, in addition to the accelerometers, displacement transducers were deployed at the north and south sides of the deck at the Leigh Woods end. The transducers measure vertical displacement, however, their data is not used in this study. A comprehensive description of the sensor deployment is provided in Gunner et al. (2017).

Figure 2 shows two-minute windows of the bridge’s structural response to vehicles travelling across the bridge in each direction, where the directions are determined by the toll barrier data. The figure shows that accelerometers 11LW N and 11LW S are featureless under loading for both directions of travel, whereas a clear response is observed in accelerometers 40LW N and 40LW S. There is no obvious difference between the responses recorded by the 40LW N and 40LW S accelerometers, therefore we will only consider the acceleration recorded by 40LW N in this paper, which we denote as at at time t.

Figure 2

Panels show accelerometer readings for two-minute windows where respectively (a) two vehicles enter from the Leigh Woods end and (b) a single vehicle enters from the Clifton end. The structural responses to each vehicle are especially clear in these examples, however, they are not as clear in other windows.

Figure 2

Panels show accelerometer readings for two-minute windows where respectively (a) two vehicles enter from the Leigh Woods end and (b) a single vehicle enters from the Clifton end. The structural responses to each vehicle are especially clear in these examples, however, they are not as clear in other windows.

Close modal

In order to develop a method to count vehicles, the accelerometer data is segmented into windows with corresponding ground truth vehicle counts provided by the toll barrier data.

The toll barriers record when a vehicle enters the bridge truncated to the nearest minute. That is, a vehicle arriving at time t := YYYYDDMM hh:mm:ss is attributed to

(1)

Minute by minute, we thus have counts for the number of vehicles that enter each end of the bridge. The accelerometer data at can then be segmented into the corresponding one-minute windows that begin at time T(t).

Consider the following situation. A vehicle enters the bridge at time t1, and is still travelling across the bridge at time t2 such that T(t2) > T(t1). In this case, the vehicle may cause a structural response in the one-minute window after that in which it enters the bridge.

To ensure that all structural responses of a vehicle entering in a given minute are captured, we group that minute’s toll barrier data with the accelerometer data for that and the following minute, resulting in a two-minute window.

Further, to prevent confusion with the structural response caused by vehicles that enter the bridge either before or after the selected minute, we take forward for analysis only those minutes for which the immediately preceding and succeeding toll barrier counts are zero. The accelerometer has a sampling interval of Δt = 0.015s, and so each two-minute window of accelerometer data can be expressed as ai, for i = 1,2, …,m where m = 8,000.

To ensure that each window of accelerometer data has a similar minimum and maximum amplitude, a normalisation is performed on each window in the form

(2)

to give normalised readings ãi between -1 and 1.

We now summarise accelerometer data in a smoothed form known as the instantaneous amplitude envelope (IAE) (Picinbono, 1997). We consider the three following methods for computing the IAE, see Figure 3.

  • Peak to Peak. The accelerometer data is replaced by a cubic spline that interpolates local maxima, provided they are separated by at least d time-steps (Biswas & Si, 2011). Here d = 5 was observed to achieve the required level of smoothing, but the computed envelope is not necessarily positive, so the method is discarded.

  • Analytic Signal. The IAE is found from the magnitude of the discrete-time analytic signal (Reilly, et al., 1994). The computed envelopes are less smooth than we require, so the method is discarded.

  • Moving Root Mean Square (MRMS). MRMS computes the root mean square from a window of width 2w that slides across the accelerometer data (Albu & Heydt, 2003). Thus smoothed readings âi are found by
    (3)
    where wi = min(i,w,mi). The computed envelope is thus strictly positive, and a choice of w = 20 (window width of 0.6s) seems to give an appropriate level of smoothing. This method is used in the remainder of this study.
Figure 3

Normalised accelerometer data for a two-minute accelerometer window and the corresponding IAE computed by the three methods.

Figure 3

Normalised accelerometer data for a two-minute accelerometer window and the corresponding IAE computed by the three methods.

Close modal

The toll barrier data is inspected to find one-minute windows when one, two or three vehicles enter the bridge at one end, and no vehicles enter at the other end. Further, only windows for which no vehicles enter at either end in the preceding and the following minute are considered. A two-minute window of IAE accelerometer data, corresponding to the selected minute and that which follows, is then extracted for analysis. Such quiet traffic conditions feature mostly at night-time, so the search was restricted to 10pm to 7am each night. In addition, this selection reduces the likelihood of structural responses to pedestrians or cyclists, whose ground truth numbers are not known.

In total, we built a training set of 30 windows and a validation set of 120 windows, as shown in Table 1. Here the counts from the Leigh Woods and Clifton toll barriers are denoted by nLW and nC respectively. The training windows are used to tune the method in Section 4 and the validation windows are used to test its accuracy in Section 5.

Table 1

Labelled data set of 30 training windows and 120 validation windows. We collect 30 training windows with a single vehicle for training and 120 validation windows for one, two and three vehicles.

nLWncTraining windowsValidation windows
101520
20020
30020
011520
02020
03020

The method identifies the structural response to each vehicle, and thus automatically counts vehicles travelling across the bridge in each window. The method is developed to work both when the response is clear for each vehicle, as shown in Figures 2 and 3, and when the bridge is busier.

To summarise: each selected window is equipped with the count for each toll barrier nLW and nC, and a smoothed IAE time series âi for i = 1,2, …,m. For reference purposes, the time T(t) (YYYYMMDD hh:mm:00) at which the window commences is also recorded.

The bridge will exhibit a damped oscillatory response to loading. This response is multi-modal and complex. The general idea is to seek the optimal fit of the IAE with a simplified closed-form function that captures the number of vehicles crossing the bridge. Section 4.1 describes the method and Section 4.2 fits it to the training set.

We try to fit a function to the smoothed IAE time series, âi for i = 1,2, …, m. The IAE begins at time t0, and the ith reading âi, is recorded at t = t0 + iΔt. This provides a mapping from the discrete time index i of the IAE, to continuous time t.

We use the basis function f(t; θ) to fit the IAE of the bridge’s structural response under the loading of a single vehicle. We assume that the function is smooth and is parameterised by p parameters, θ = [θ1, θ2, … , θp].

In addition, we include a scaling parameter γ to account for different envelope amplitudes, and a shift parameter τ that locates the vehicle within the two-minute window. Thus we fit

(4)

Under a linear superposition assumption, we model the structural response to n vehicles by the weighted sum of n single-vehicle basis functions in the form

(5)

The function gn(t) is parameterised by n(p + 2) parameters σε2, γj and τj for j = 1,2 …, n.

The chosen estimate n* for the number of vehicles, is then found by the putative ‘trial’ number of vehicles n that minimises the mean square error (MSE),

(6)

between the fitted function and the IAE.

The parameters θj, γj and τj, are found in sequence. That is, the parameters that describe a single vehicle θ1, γi and τ1, are solved for and fixed. Then, the parameters that describe a second vehicle, θ2, γ2 and τ2, are solved for and fixed, and so on.

The procedure continues to add vehicles until the information criterion described in Section 4.1.3 tells it to stop. At this point, the procedure has arrived at its final estimate n*.

To avoid over-fitting, the Akaike information criterion (AIC) (Akaike, 2011) is used to penalise the goodness of fit ofgn(t) by the number of used parameters n(p + 2). The AIC is defined by

(7)

where

2n(p+2)2logL^,
is the maximum value of the log-likelihood function of the fit gn(t) given the IAE. The chosen estimate n* is selected by the function that minimises the AIC.

Standard likelihood techniques make the assumption that the error terms between the fitted function and the IAE, ɛi = âign(t0 + iΔt), are identically and independently distributed (iid). This is not an appropriate assumption when dealing with time series data, as consecutive errors are likely to be correlated.

Instead, we assume that the errors follow an auto-regressive (AR) process. Each error is modelled as the weighted sum of the previous q errors plus a noise term, which is assumed to be iid normally distributed with zero mean and variance logL^ in the form

(8)

where |ϕk| < 1 for k = 0,1, …, q. The parameter q is known as the order of the AR model, which is denoted as AR(q). The AR coefficients ϕk (weights) define how correlated each error ɛi is with the kth error before (ɛi–k), known as the kth lag.

The AR coefficients are determined by the Partial Auto-Correlation Function (PACF) (Ramsey, 1974). In practice, software routines such as the parcorr function in Matlab can be employed to find the PACF. The choice of model order q is described in Section 4.2.3

The ith error from the AR process is then defined by

(9)

where

ε^i=εik=1qϕkεik,
⁠.

Note the two-minute windows contain periods when there are no vehicles on the bridge, and therefore, there is no structural response, only background noise.

So that we only consider data above the noise floor, a threshold δ is set. We then consider only those ε^~N0,σε errors m^<m for which âi > δ for ε¯i. Here the threshold 8 is set to 0.05ms-2, by visual inspection.

The errors i=1,2,,m^ are also normally distributed with zero mean but with variance ε¯i. A standard calculation gives the log-likelihood function for the fitted function gn(t) in the form

(10)

for constant c. Substituting Equation (10) into Equation (7) gives the quantity to be minimised. To summarise, in doing so we find the estimated number of vehicles that cross the bridge, from

(11)

To determine the basis functions and various parameters in the method, we consider its application to a training set in which only one vehicle is present in each two-minute window, see Table 1. The restriction to single-vehicle set-ups is in order to factor out additional problems if the linear superposition assumption turned out to be poor.

We consider the basis function f(t; θ) that models the IAE time series of the bridge’s structural response to a single vehicle entering the bridge at either end. A good basis function will give a small mean squared error in Equation (6) with n = 1.

Thus each selected IAE summarises the damped oscillatory response of the bridge to the dynamic loading caused by a single passing vehicle. The overall shape should be one with a rapid ‘attack’ and a gradual (probably exponential) decay. Inspired by probability theory, we considered the following three forms for the basis function, each of which has (p = 2) two parameters that control ‘location’ and ‘dispersion’ and thus the overall ‘shape’.

log-normal:

(12)

gamma:

(13)

Weibull:

(14)

The quality of each function is computed by calculating the optimal MSE for each of the 30 single-vehicle training windows. Table 2 shows the mean MSE (MMSE), i.e., the average across the 30 windows. The log-normal fit is best and so log-normal basis functions are used going forward.

Table 2

MMSE for the log-normal, gamma and Weibull fits to single-vehicle windows.

FunctionMMSE Leigh Woods [ms-2]MMSE Clifton [ms-2]MMSE Total [ms-2]
log-normal0.00050.00120.0008
gamma0.00060.00120.0009
Weibull0.00170.00220.0019

We now consider whether the log-normal parameters μ and σ are similar for each vehicle travelling across the bridge. If they were, they might be fixed in the fitting process so that only γ and τ need be determined for each vehicle.

For each of the training windows we fit a log-normal function by least squares to find the optimal parameters θ = [μ,σ], γ and τ. Figure 4 shows a scatter plot of the optimal μ and σ parameters. There is unfortunately no consistent pattern and therefore the log-normal parameters must be found independently for each vehicle going forward.

Figure 4

Scatter plot of log-normal parameters fitted to 30 training windows.

Figure 4

Scatter plot of log-normal parameters fitted to 30 training windows.

Close modal

We now use the training windows to determine the order of the auto-regressive model q described in Section 4.1.4. For each window we fit a log-normal function and compute the errors ɛi and the first 30 weights ϕk. We then calculate the mean weights

f(t;θ)=kλtλk1exptkλk,θ=[k,λ]
averaged over the training windows.

The model order is determined by the lag for which the mean weight falls within the 95% significance interval (Bollerslev, 1986). Figure 5 shows the mean weights for each of the tested lags. All of the significant autocorrelation is contained within the first eight lags. Therefore, in the likelihood calculation described in Section 4.1.4, the error terms ϕ¯k are computed by an AR(8) process.

Figure 5

Mean AR coefficients and the 95% confidence intervals.

Figure 5

Mean AR coefficients and the 95% confidence intervals.

Close modal

The AR model order q is the only system parameter learnt prior to the vehicle counting procedure described in Section 4. In summary, for each window and for each putative number of vehicles, new log-normal means μ and standard deviations σ, scales γ and shifts τ are found by least squares. In the likelihood calculation, new sets of AR coefficients ϕk for k = 0,1, …, 8 are also computed.

We test the method by computing the estimated number n* of vehicles for 120 validation windows and comparing with their ground truth counts nLW and nC, see Table 1. The results are shown in Table 3. Since the method does not identify the direction of travel, nLW + nC = n* corresponds to a correct prediction (although for any one validation window, only one of nLW or nC is non-zero). The method estimates the correct number of vehicles in 89 (74%) of the validation windows.

Table 3

Toll barrier counts and the corresponding estimated number of vehicles n*, for 120 validation windows.

nLWncn* = 1n* = 2n* = 3n' = 4
1019100
2001820
3003152
0113430
0201262
0302126

Figure 6 illustrates the method at work for two exemplar windows. In each example, the MSE decreases as the putative number of ‘trial’ vehicles increases and the function gn(t) becomes more complex. However, the AIC penalises the complexity of gn(t), and the number of vehicles is found correctly, by its minimisation.

Figure 6

Estimation method in operation for two exemplar windows. (a) nLW = 2, nC = 0 (b) nLW = 0, nC = 1. Left-hand panels (i) show the superposition of one, two, three and four basis functions fitted to the IAEs. Right-hand panels (ii) show the corresponding MSE and AIC for the fits.

Figure 6

Estimation method in operation for two exemplar windows. (a) nLW = 2, nC = 0 (b) nLW = 0, nC = 1. Left-hand panels (i) show the superposition of one, two, three and four basis functions fitted to the IAEs. Right-hand panels (ii) show the corresponding MSE and AIC for the fits.

Close modal

The overall prediction accuracy of 74% is somewhat disappointing. However, when nC = 0 (vehicles only enter at the Leigh Woods end), we achieve an accuracy of 87% and we have the beginnings of a plausible operational method. In addition, for these windows, there is no evidence of bias towards over or under-counting.

In contrast, the fit to vehicles entering at the Clifton end is poor, and there is apparently a bias towards over-counting. This may be explained by the exemplar window shown in Figure 7. A single log-normal basis function is a poor fit to the structural response in this case, because the vehicle causes two peaks in the structural response, one when it enters the bridge at the Clifton end, and a second when it reaches the accelerometer at the Leigh Woods end. The estimation method attempts to fit the two peaks with two basis functions, and so counts two vehicles when only one is present. This problem does not arise for vehicles entering at the Leigh Woods end, because the entry peak is almost simultaneous with that when the accelerometer is reached. Note Table 2, which concerns the training set, has already indicated that unimodal basis functions fit the Leigh Woods vehicles better than the Clifton ones.

Figure 7

An example where nC = 1, (nLW = 0) and n* = 2. When the vehicle enters at the Clifton end, there is an additional peak in advance of that when it reaches the Leigh Woods end detector.

Figure 7

An example where nC = 1, (nLW = 0) and n* = 2. When the vehicle enters at the Clifton end, there is an additional peak in advance of that when it reaches the Leigh Woods end detector.

Close modal

Further work should consider different basis functions for the two directions of travel, which would also allow the counts for the two directions of travel to be separated. Alternatively, we might place the accelerometer in a position which is indifferent to the direction of travel, e.g., midway along the span. Note also that this paper has only used the data from a single accelerometer, as the aim was to demonstrate the beginnings of a plausible operational method that might be applied to existing SHM set-ups, with a very limited number of sensors. However, clearly a range of improvements might be possible if the data from multiple accelerometers were fused.

In this paper we have developed a method that estimates the number of vehicles that cross a bridge from its structural response to their dynamic loading. We have applied the method to scalar accelerometer data from the Clifton Suspension Bridge (CSB) in Bristol, UK. A validation exercise applied to a set of selected two-minute windows of data counted the correct number of vehicles in 74% of the set. However, due to various features of the set-up, which was designed for structural health monitoring (SHM), not for counting vehicles, the method performs quite differently in the two directions of travel – 61% and 87% accuracy respectively. The higher figure suggests that with some refinements to the method and sensor set-up, we have the beginnings of a deployable operational system. Note that for many practical traffic management and appraisal purposes, the key is not that vehicles are counted precisely, but rather that an offline estimate of the count is unbiased over quite long time periods – this requirement is relatively tame and looks to be within reach.

There are several shortcomings in our current work and consequently opportunities for future research. Firstly, as currently presented, the method does not distinguish between the directions of travel. However, this appears addressable by considering the data from multiple sensors and distinct basis functions for each direction. Secondly, the validation set currently used is not representative of typical operational conditions, because it does not mix vehicles with different directions of travel, and the total vehicle counts are quite low, compared to busier times of the day. Future work should investigate to what degree the method can identify individual vehicles when there are many different overlapping structural responses, perhaps including those from cyclists and pedestrians too, and indeed whether linear superposition holds in congested traffic flow regimes. Finally, the method as presented works because the CSB is much more compliant than modern concrete bridges, where an examination of higher frequency information, rather than the amplitude envelopes used here, is likely to be the way forward.

Akaike
,
H.
,
2011
.
Akaike’s information criterion
. In:
M.
Lovric
, ed.
International Encyclopedia of Statistical Science
.
Berlin
:
Springer Berlin Heidelberg
, pp.
25
-
25
.
Albu
,
M.
&
Heydt
,
G. T.
,
2003
.
On the use of RMS values in power quality assessment
.
IEEE Transactions on Power Delivery
, Volume
18
, pp.
1586
-
1587
.
Basharat
,
A.
,
Catbas
,
N.
&
Shah
,
M.
,
2005
.
A framework for intelligent sensor network with video camera for structural health monitoring of bridges
.
Third IEEE International Conference on Pervasive Computing and Communications Workshops
, pp.
385
-
389
.
Biswas
,
A.
&
Si
,
B.
,
2011
.
Depth persistence of the spatial pattern of soil water storage in a hummocky landscape
.
Elements
, Volume
29
, pp.
19
-
23
.
Bollerslev
,
T.
,
1986
.
Generalized autoregressive conditional heteroskedasticity
.
Journal of Econometrics
, Volume
31
, pp.
307
-
327
.
Chan
,
T. H. T.
et al.
,
2006
.
Fiber Bragg grating sensors for structural health monitoring of Tsing Ma bridge: Background and experimental observation
.
Engineering Structures
, Volume
28
, pp.
648
-
659
.
Gunner
,
S.
et al.
,
2017
.
Rapid deployment of a WSN on the Clifton Suspension Bridge, UK
.
Proceedings of the Institution of Civil Engineers - Smart Infrastructure and Construction
, Volume
170
, pp.
59
-
71
.
Hayes
,
J. G.
&
Halliday
,
J.
,
1974
.
The least-squares fitting of cubic spline surfaces to general data sets
.
IMA Journal of Applied Mathematics
, Volume
14
, pp.
89
-
103
.
Macdonald
,
J. H. G.
,
2008
.
Pedestrian-induced vibrations of the Clifton Suspension Bridge, UK
.
Proceedings of the ICE -Bridge Engineering
, Volume
161
(
2
), pp.
69
-
77
.
Oh
,
B. K.
et al.
,
2015
.
Vision-based system identification technique for building structures using a motion capture system
.
Journal of Sound and Vibration
, Volume
356
, pp.
72
-
85
.
Picinbono
,
B.
,
1997
.
On instantaneous amplitude and phase of signals
.
IEEE Transactions on Signal Processing
, Volume
45
, pp.
552
-
560
.
Ramsey
,
F. L.
,
1974
.
Characterization of the partial autocorrelation function
.
Ann. Statist.
, Volume
2
, pp.
1296
-
1301
.
Reilly
,
A.
,
Frazer
,
G.
&
Boashash
,
B.
,
1994
.
Analytic signal generation-tips and traps
. IEEE Transactions on Signal Processing, Volume
42
, pp.
3241
-
3245
.
Yeung
,
W. T.
&
Smith
,
J. W.
,
2005
.
Damage detection in bridges using neural networks for pattern recognition of vibration signatures
.
Engineering Structures
, Volume
27
, pp.
685
-
698
.