Abstract
Temperature-strain calibration can be affected by outliers and by the range of observations retained for fitting. This study compares ordinary least squares with fixed-scale Huber regression for a specified linear relation over 365 daily observations. The generating intercept is 5 microstrain, the slope is 12 microstrain/K and independent Gaussian noise has a standard deviation of 2 microstrain. Four scenarios represent clean data, 30% random data loss, 18 positive outliers at warmer temperatures, and outliers combined with temperature-dependent loss. Each scenario is repeated 300 times, with slope and prediction errors evaluated against the known generating relation over the full temperature range. For clean data, mean prediction RMSE is slightly lower for least squares than for Huber regression, at 0.133 and 0.136 microstrain. Warm-end outliers increase these values to 3.110 and 0.313 microstrain, while combined outliers and selective loss give 2.180 and 0.257 microstrain. Both estimators recover noiseless parameters to within 10⁻¹³. Huber regression therefore reduces error substantially for the specified contamination, with a small efficiency loss under clean Gaussian noise. Application to monitoring data would require assessment of the assumed linear response, noise scale and data-loss mechanism.
Keywords structural monitoring; environmental normalisation; Huber regression; missing data; synthetic verification; temperature
Notation and units
| Symbol | Unit | Meaning |
|---|---|---|
| x | K | Temperature anomaly |
| y, e, σ | microstrain | Response, noise and noise scale |
| β0 | microstrain | Regression intercept |
| β1 | microstrain/K | Regression slope |
| k | - | Huber transition constant |
| RMSE | response or parameter units | Root mean square error |
1. Introduction
Structural monitoring records respond to environmental conditions as well as to changes in the structure. A temperature regression can help describe the expected response, but its interpretation depends on the observations used for calibration. Outliers, selective data loss, sensor drift and an unsuitable functional form can each alter the fitted relationship. Their effects need to be understood before a baseline is used to assess subsequent changes.
Farrar and Worden (2007) describe structural health monitoring within a statistical pattern-recognition framework. Sohn (2007) examines environmental and operational variability, while Peeters and De Roeck (2001) report the difficulty of separating environmental effects from damage-related changes on the Z24 Bridge. These studies motivate the calibration problem considered here, which uses a specified numerical signal rather than their monitoring records.
The analysis compares least-squares and Huber regression when the generating temperature-strain relation and disturbance mechanisms are known. Huber's loss (Huber, 1964) reduces the influence of large residuals. Including clean data alongside contaminated and incomplete records makes it possible to examine both its benefit under outliers and its efficiency under the assumed Gaussian noise.
2. Signal model and disturbance scenarios
The observation window contains 365 equally spaced daily samples. Temperature anomaly x combines a sinusoid with an annual period and amplitude of 10 K with a second sinusoid of amplitude 2 K and period 17 days. Strain follows y = 5 + 12x + e, where y is in microstrain and e is independent Gaussian noise with a standard deviation of 2 microstrain. The intercept is the response at zero temperature anomaly. The slope is an assigned regression coefficient for the numerical signal, rather than a measured thermal property of a structure.
Four scenarios are evaluated. Clean data contain noise only. Random gaps retain each observation independently with probability 0.70. Warm-end outliers add 40 microstrain to 18 randomly chosen observations for which x exceeds 6 K. The combined scenario uses the same outlier mechanism, then removes observations with probability 0.65 above 6 K and 0.10 elsewhere. Outliers are introduced before masking, so some contaminated observations are removed.
Selective loss depends on the observed temperature predictor, reducing coverage of the warm range and changing which outliers remain available for fitting. It is therefore important to distinguish this mechanism from missingness driven by an unobserved response. Loss caused by device state or unrecorded strain would require a different model.
Each scenario is repeated 300 times. Repetition r uses seed 20266108 + r, with the initial noise draw shared across scenarios where the random sequence permits. This pairing reduces variation in the comparisons, so the scenario results should not be treated as independent datasets. The retained observation count is recorded for every repetition.
3. Estimators, verification and performance measures
Ordinary least squares minimises the sum of squared residuals. The robust fit minimises Huber loss after residuals are divided by sigma = 2 microstrain, using a transition constant of k = 1.345. The scale is fixed at the generating noise standard deviation. This permits a controlled comparison, although estimating the scale from real or contaminated monitoring records would introduce additional uncertainty.
The Huber fit uses iteratively reweighted least squares, beginning from the ordinary least-squares estimate. Standardised residuals within the transition retain weight one; larger residuals receive weight k divided by their magnitude. Weighted least squares updates the two regression coefficients. Iteration stops when the largest absolute coefficient change is below 10⁻¹⁰, with a maximum of 100 iterations. All fitted cases converge, and the maximum observed iteration count is 19.
A noiseless calculation first checks recovery of the specified coefficients. Both estimators recover intercept 5 and slope 12 using either the full temperature sequence or only observations below 2 K, with maximum parameter error below 10⁻¹³. This is a solution-verification check in the sense discussed by Oberkampf and Trucano (2002). Restricting the predictor range still permits exact recovery of a noiseless line, although it can increase uncertainty when noise or model error is present.
Performance is assessed against the known generating coefficients and the noiseless response on all 365 temperatures. Slope bias is the mean estimated slope minus 12; slope RMSE combines bias and variation across repetitions. Prediction RMSE is calculated for each fitted line over the complete temperature sequence and then summarised across repetitions. It is therefore parameter-induced error relative to known truth, not residual error on the retained training observations or forecast error for a new real bridge.
The ninety-fifth percentile of prediction RMSE summarises the upper part of the error distribution across repeated numerical experiments. It is distinct from a confidence interval for a physical parameter. The Huber constant is fixed in advance, and the comparison is limited to calibration error; damage classification and alarm performance are outside its scope.
| Noiseless case | Estimator | Intercept (µstrain) | Slope (µstrain/K) | Max. error |
|---|---|---|---|---|
| All temperatures | OLS | 5 | 12 | 3.553e-15 |
| All temperatures | Huber | 5 | 12 | 3.553e-15 |
| Cool range only | OLS | 5 | 12 | 9.770e-15 |
| Cool range only | Huber | 5 | 12 | 9.770e-15 |
4. Results
For clean Gaussian noise, least squares gives a slope RMSE of 0.01506 microstrain/K and a mean prediction RMSE of 0.13275 microstrain. Huber regression gives 0.01557 and 0.13618, respectively. The small difference is consistent with an efficiency cost from limiting residual influence when the observations follow the assumed Gaussian model.
Random loss retains an average of 254.97 observations. Mean prediction RMSE increases to 0.16008 microstrain for least squares and 0.16317 microstrain for Huber regression, while the slope biases remain close to zero. In this case, data loss reduces information without selecting observations according to the response magnitude.
Warm-end positive outliers have a much larger effect. Least-squares slope bias is +0.33292 microstrain/K, with slope RMSE 0.33351. Huber slope bias is +0.03137, with RMSE 0.03544. Mean prediction RMSE is 3.10955 microstrain for least squares and 0.31299 for the robust fit, a reduction of about 89.9% in this particular contamination scenario. The robust estimate is still biased; bounded influence reduces rather than eliminates the effect of the chosen one-sided outliers.
Combining outliers with selective warm-range loss retains an average of 270.47 observations. Mean prediction RMSE is 2.18040 microstrain for least squares and 0.25653 microstrain for Huber regression. These errors are lower than in the outlier-only case partly because some contaminated observations are removed. The comparison therefore reflects simultaneous changes in temperature coverage and contamination, rather than a general benefit from discarding warm-range data.
The ninety-fifth-percentile prediction RMSE is 3.31429 microstrain for least squares and 0.50233 for Huber under outliers alone. Under the combined scenario it is 3.29815 and 0.50768. The difference between mean and upper-percentile errors shows that an average performance score does not describe every repetition. All reported errors concern the exact linear generating relation and omit uncertainty about whether that relation is physically adequate.
| Scenario | Estimator | Slope RMSE (µstrain/K) | Mean pred. RMSE (µstrain) | 95th pct. RMSE (µstrain) |
|---|---|---|---|---|
| Clean | OLS | 0.0150593 | 0.132752 | 0.267294 |
| Clean | Huber | 0.0155663 | 0.136184 | 0.261484 |
| Random gaps | OLS | 0.0180857 | 0.160079 | 0.309898 |
| Random gaps | Huber | 0.0187509 | 0.163165 | 0.320858 |
| Warm-end outliers | OLS | 0.333511 | 3.10955 | 3.31429 |
| Warm-end outliers | Huber | 0.0354382 | 0.312986 | 0.502331 |
| Outliers and warm gaps | OLS | 0.246735 | 2.1804 | 3.29815 |
| Outliers and warm gaps | Huber | 0.0309002 | 0.256531 | 0.507683 |
5. Discussion and boundaries of the result
The improvement under warm-end outliers follows from their effect on the fitted slope. Positive residuals at high temperatures tilt the least-squares line, whereas Huber weighting reduces their influence. That weighting addresses response residuals; it does not by itself control leverage from erroneous temperature measurements or identify why an observation is anomalous.
The known noise scale simplifies the comparison. In practice, the scale must be estimated and may vary with time or operating conditions. Thermal gradients, seasonal hysteresis, restraint, humidity, loading and drift may also make the response nonlinear or time-dependent. A robust linear fit could then downweight meaningful changes. These effects warrant explicit assessment when normalising environmental responses, as discussed by Sohn (2007).
The prediction metric also relies on known generating values, which are unavailable in field monitoring. A practical assessment would require an independent reference period, preserved evaluation data and a procedure for changes in the observed environmental range. Model selection and alarm thresholds should be fixed before testing detection performance. The measured environmental and damage responses examined by Peeters and De Roeck (2001) illustrate the broader evidence needed for such an assessment.
The present results concern baseline calibration only. They provide no estimates of false-alarm rates, detection probability or remaining service life. Using the method within a monitoring system would require further work on the physical response, missing-data mechanism and decisions supported by the fitted baseline.
6. Reproducibility and conclusions
The data generator, masks, outlier selection and both fitting routines are included in the code. NumPy provides random generation and least-squares linear algebra (Harris et al., 2020). All 2,400 estimator-by-repetition records are exported, together with aggregate and noiseless verification tables. Explicit seeds, units and outputs support reuse (Wilkinson et al., 2016).
Huber regression substantially reduces calibration error for the specified warm-end outliers, while least squares remains slightly more efficient for clean Gaussian noise. Selective data loss changes both the information available for fitting and the number of retained outliers, so sample count alone does not explain its effect. The known linear relation and fixed noise scale make these differences identifiable. Field application would require checking those assumptions and evaluating performance against independent monitoring evidence.
Declarations
Data and code availability
The calculations use specified numerical scenarios. No field or laboratory measurements were used. The accompanying files provide the calculation code, input values, result tables and software environment.
Funding and competing interests
This study was prepared for the CivilSpectra technical collection. No external research funding or sponsorship is claimed.
Editorial status
This article forms part of the journal’s illustrative technical collection and has not undergone peer review.
References
- Farrar, C.R. and Worden, K. (2007). An introduction to structural health monitoring. Philosophical Transactions of the Royal Society A, 365, 303-315. Source ↗
- Sohn, H. (2007). Effects of environmental and operational variability on structural health monitoring. Philosophical Transactions of the Royal Society A, 365, 539-560. Source ↗
- Peeters, B. and De Roeck, G. (2001). One-year monitoring of the Z24-Bridge: environmental effects versus damage events. Earthquake Engineering & Structural Dynamics, 30(2), 149-171. Source ↗
- Huber, P.J. (1964). Robust estimation of a location parameter. Annals of Mathematical Statistics, 35(1), 73-101. Source ↗
- Oberkampf, W.L. and Trucano, T.G. (2002). Verification and validation in computational fluid dynamics. Progress in Aerospace Sciences, 38(3), 209-272. Source ↗
- Harris, C.R., Millman, K.J., van der Walt, S.J., et al. (2020). Array programming with NumPy. Nature, 585, 357-362. Source ↗
- Wilkinson, M.D., Dumontier, M., Aalbersberg, I.J., et al. (2016). The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data, 3, 160018. Source ↗