[Paper Review] Overfitting and Time Series Segmentation: A Locally Adaptive Solution
This paper proposes a locally adaptive polynomial segmentation model for time series that dynamically adjusts the polynomial degree (e.g., flat, linear, quadratic) per segment to reduce overfitting. By minimizing l2 error using an O(n²) optimal algorithm and an O(n) online heuristic, the method improves segmentation accuracy and missing data prediction across synthetic walks, stock prices, and ECGs.
Time series are unstructured data; they are difficult to monitor, summarize and predict. Weather forecasts, stock market prices, medical data (ECG, EEG) are examples of non-stationary time series we wish to clean, classify and index. Segmentation organizes time series into few intervals having uniform characteristics (flatness, linearity, modality, monotonicity and so on). The popular piecewise linear model can determine where the data goes up or down and at what rate. Unfortunately, when the data does not follow a linear model, the computation of the local slope creates overfitting. We propose an adaptive time series model where the polynomial degree of each interval vary (flat, linear and so on). Given a number of regressors, the cost of each interval is its polynomial degree: flat intervals cost 1 regressor, linear intervals cost 2 regressors, and so on. Our goal is to minimize the Euclidean (l2) error. We present an optimal algorithm running in time O(n 2) as well as an online (O(n)) top-down heuristic. Over synthetic random walks, historical stock market prices, and electrocardiograms, the adaptive model provides a more accurate segmentation and is a better predictor of missing data points (leave-one-out cross-validation error). In other words, we simultaneously improve the goodnessof-fit and reduce local overfitting.
Motivation & Objective
- Address overfitting in time series segmentation when data deviates from linear models.
- Improve segmentation accuracy and predictive performance for non-stationary time series such as ECG, stock prices, and random walks.
- Develop a model that adaptively selects polynomial degrees per segment based on local data characteristics.
- Minimize l2 error while controlling model complexity via regressor cost per interval (1 for flat, 2 for linear, etc.).
- Provide both an optimal O(n²) algorithm and an efficient O(n) online heuristic for practical deployment.
Proposed method
- Model each time series segment using a polynomial of variable degree (flat, linear, quadratic, etc.) based on local data fit.
- Assign a cost to each interval equal to its polynomial degree (e.g., 1 for constant, 2 for linear), representing model complexity.
- Optimize segmentation by minimizing the sum of squared residuals (l2 error) subject to regressor cost constraints.
- Use dynamic programming to compute the optimal segmentation in O(n²) time, balancing fit and complexity.
- Apply a top-down online heuristic that processes data sequentially in O(n) time for real-time or streaming applications.
- Evaluate segment quality using leave-one-out cross-validation to assess missing data prediction performance.
Experimental results
Research questions
- RQ1Can adaptive polynomial degrees per segment reduce overfitting compared to fixed-degree models like piecewise linear segmentation?
- RQ2How does the proposed model compare in segmentation accuracy and prediction performance on non-stationary time series?
- RQ3To what extent does the dynamic degree selection improve goodness-of-fit while maintaining model simplicity?
- RQ4How effective is the O(n) online heuristic in approximating the optimal O(n²) solution in practice?
- RQ5Does the model generalize well across diverse time series types such as random walks, stock prices, and ECG signals?
Key findings
- The adaptive model achieves significantly lower leave-one-out cross-validation error than fixed-degree models, indicating better prediction of missing data points.
- Segmentation accuracy improves on synthetic random walks, historical stock prices, and ECG data due to better local fit without overfitting.
- The O(n²) optimal algorithm provides exact minimization of l2 error with controlled regressor cost per interval.
- The O(n) online heuristic delivers near-optimal performance with substantially reduced computation time, suitable for streaming data.
- The model reduces overfitting by allowing lower-degree polynomials in flat or noisy regions and higher degrees only where justified by data.
- The method simultaneously enhances both model fit and generalization, outperforming standard piecewise linear models in all evaluated datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.