Braced Fourier Continuation and Regression for Anomaly Detection
Josef Sabuda
TL;DR
The paper addresses efficient nonlinear regression and anomaly detection in one-dimensional data by mitigating Gibbs artifacts through Braced Fourier Continuation. It introduces BFCR, which extends data with bracing points, applies a low-pass filter in the Fourier domain, and reconstructs a trend line while avoiding end-point explosions. The work outlines the BFCR algorithm, its key properties, and two anomaly-detection strategies (internal and edge), along with practical mitigation techniques for volatility changes, pre-existing outliers, and low-noise scenarios. The methodology is implemented in Python with GitHub availability, highlighting potential extensions to higher dimensions and spacing, as well as prospects for reducing computational complexity.
Abstract
In this work, the concept of Braced Fourier Continuation and Regression (BFCR) is introduced. BFCR is a novel and computationally efficient means of finding nonlinear regressions or trend lines in arbitrary one-dimensional data sets. The Braced Fourier Continuation (BFC) and BFCR algorithms are first outlined, followed by a discussion of the properties of BFCR as well as demonstrations of how BFCR trend lines may be used effectively for anomaly detection both within and at the edges of arbitrary one-dimensional data sets. Finally, potential issues which may arise while using BFCR for anomaly detection as well as possible mitigation techniques are outlined and discussed. All source code and example data sets are either referenced or available via GitHub, and all associated code is written entirely in Python.
