Abstract
An algorithm for enclosing a given set of time series data inside a continuous piecewise linear band of varying height subject to certain constraints is presented. The band is defined by two piecewise linear curves that lie above and below the data respectively. Segments of these curves are constrained to start and end at one of the data points, and those whose slope does not lie between its neighbors’ slopes are required to be at least as wide as a user-specified value. The algorithm yields a band which accurately preserves the general trends of the data, while enclosing the inherent measurement noise. This band is typically obtained in \(O(n\log K)\) time, where \(n\) is the number of data points and \(K\) is the number of linear segments. The algorithm is described and its capabilities are tested on four data sets. Comparisons are made with alternative algorithms.
Similar content being viewed by others
References
Andrew, A.M.: Another efficient algorithm for convex hulls in two dimensions. Inf. Process. Lett. 9(5), 216–219 (1979)
Bellman, R.: On the approximation of curves by line segments using dynamic programming. Commun. ACM 4(6), 284 (1961)
de Berg, M., van Kreveld, M., Overmars, M., Schwarzkopf, O.: Computational Geometry: Algorithms and Applications, 2nd edn. Springer (2000)
Douglas, D.H., Peucker, T.K.: Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. Can. Cartogr. 10(2), 121–122 (1973)
Fitzgerald, W., Lemire, D., Brooks, M.: Quasi-monotonic segmentation of state variable behavior for reactive control. In: Proceedings of the National. Conference on Artificial Intelligence, vol. 20, part 3, pp. 1145–1150 (2005)
Fraser, W.: A survey of methods of computing minimax and near-minimax polynomial approximations for functions of a single independent variable. JACM 12(3), 295–314 (1965)
Gluss, B.: Further remarks on line segment curve-fitting using dynamic programming. Commun. ACM 5(8), 441–443 (1962)
Granvilliers, L., Cruz, J., Barahona, P.: Parameter estimation using interval computations. SIAM J. Sci. Comput. 26(2), 591–612 (2004)
Johnson, T., Tucker, W.: Rigorous parameter reconstruction for differential equations with noisy data. Automatica 44(9), 2422–2426 (2008)
Keogh, E., Chu, S., Hart, D., Pazzani, M.: An online algorithm for segmenting time series. In: Proceedings of IEEE International Conference on Data Mining, pp. 289–296. San Jose (2001)
Lin, Y., Stadtherr, M.A.: Guaranteed state and parameter estimation for nonlinear continuous-time systems with bounded-error measurements. Ind. Eng. Chem. Res. 46(22), 7198–7207 (2007)
Moreira, A., Santos, M.: Concave hull: a k-nearest neighbours approach for the computation of the region occupied by a set of points. In: Proceedings of the 2nd International Conference on Computer Graphics Theory and Applications (2007)
Phillips, G.M.: Algorithms for piecewise straight line approximations. Comput. J. 11(2), 211–212 (1968)
Ramer, U.: An iterative procedure for the polygonal approximation of plane curves. Comput. Graph. Image Process. 1(3), 244–256 (1972)
Shatkay, H., Zdonik, S.B.: Approximate queries and representations for large data sequences. In: Proceedings of 12th IEEE International Conference on Data, Engineering, pp. 536–545 (1996)
Szusz, E.K., Willms, A.R.: A linear time algorithm for near minimax continuous piecewise linear representations of discrete data. SIAM J. Sci. Comput. 32, 2584–2602 (2010)
Tucker, W., Kutalik, Z., Moulton, V.: Estimating parameters for generalized mass action models using constraint propagation. Math. Biosci. 208(2), 607–620 (2007)
Tucker, W., Moulton, V.: Parameter reconstruction for biochemical networks using interval analysis. Reliab. Comput. 12, 389–402 (2006)
Willms, A., Szusz, E.: Parameter range reduction for ODE models using monotonic discretizations. Comput. Appl. Math. 247, 124–151 (2013)
Willms, A.R.: Parameter range reduction for ODE models using cumulative backward differentiation formulas. J. Comput. Appl. Math. 203, 87–102 (2007)
Wilson, D.G.: Piecewise linear approximations of fewest line segments. In: AFIPS Conference Proceedings, vol. 40, The 1972 Spring Joint Computer Conference, pp. 187–198. Montvale (1972)
Wu, H., Zhu, H., Miao, H., Perelson, A.: Parameter identifiability and estimation of HIV/AIDS dynamic models. Bull. Math. Biol. 70, 785–799 (2008)
Author information
Authors and Affiliations
Corresponding author
Additional information
Communicated by Rosemary Renaut.
This work was supported by an Ontario Graduate Scholarship and a Natural Sciences and Engineering Council of Canada Discovery Grant.
Rights and permissions
About this article
Cite this article
Skelton, A., Willms, A.R. An algorithm for continuous piecewise linear bounding of discrete time series data. Bit Numer Math 54, 1155–1169 (2014). https://doi.org/10.1007/s10543-014-0492-2
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10543-014-0492-2