Towards Dynamic Trend Filtering through Trend Point Detection with Reinforcement Learning
Jihyeon Seong, Sekwang Oh, Jaesik Choi
TL;DR
DTF-net presents an RL-based framework for trend filtering that directly detects Dynamic Trend Points (DTPs) via Trend Point Detection formulated as an MDP, then reconstructs dynamic trends by interpolation. It defines a discrete-action policy trained with a forecasting-$MSE$ reward, augmented by random reward-sampling to mitigate overfitting, enabling per-subsequence smoothness that preserves abrupt changes. Across synthetic and real data, including Nasdaq and non-stationary TSF benchmarks, DTF-net outperforms traditional trend filtering, CPD, and anomaly-detection baselines in capturing abrupt changes and improving forecasting when abrupt changes are informative. The approach demonstrates that integrating abrupt-change cues into forecasting can enhance predictive performance without forcing overall smoothness, with potential extensions to multivariate settings and broader RL-based trend analysis.
Abstract
Trend filtering simplifies complex time series data by applying smoothness to filter out noise while emphasizing proximity to the original data. However, existing trend filtering methods fail to reflect abrupt changes in the trend due to `approximateness,' resulting in constant smoothness. This approximateness uniformly filters out the tail distribution of time series data, characterized by extreme values, including both abrupt changes and noise. In this paper, we propose Trend Point Detection formulated as a Markov Decision Process (MDP), a novel approach to identifying essential points that should be reflected in the trend, departing from approximations. We term these essential points as Dynamic Trend Points (DTPs) and extract trends by interpolating them. To identify DTPs, we utilize Reinforcement Learning (RL) within a discrete action space and a forecasting sum-of-squares loss function as a reward, referred to as the Dynamic Trend Filtering network (DTF-net). DTF-net integrates flexible noise filtering, preserving critical original subsequences while removing noise as required for other subsequences. We demonstrate that DTF-net excels at capturing abrupt changes compared to other trend filtering algorithms and enhances forecasting performance, as abrupt changes are predicted rather than smoothed out.
