Automatic selection of optimal Savitzky-Golay smoothing.
A method to select the optimal window size of the Savitzky-Golay (SG) algorithm is presented. The approach is based on a comparison of the fitting residuals (i.e., the differences between the input signal and the smoothed signal) with the noise of the instrument. The window size that yields an autocorrelation of the residuals closest to the autocorrelation of the noise of the instrument is considered optimal. The method is applied in two steps. In a first step, the lag-one autocorrelation value of the noise of the instrument is computed through the study of a blank signal. In a second step, the SG algorithm is applied to "smooth" the signal using different window sizes. The method was applied to data from NMR, chromatography, and mass spectrometry and was shown to be robust. It finds the optimal window size for different signal features. This allows the method to be used in an unsupervised way, embedded in a more complex algorithm in which smoothing and/or differentiation of signals is required, provided that the lag-one autocorrelation value of the instrument noise does not change.
Vivó-Truyols
Gabriel
G
Polymer-Analysis Group, van't Hoff Institute for Molecular Sciences, University of Amsterdam, Nieuwe Achtergracht 166, 1018 WV-Amsterdam, The Netherlands. vivo@science.uva.nl
Schoenmakers
Peter J
PJ