Skip to main content
Log in

An algorithm for continuous piecewise linear bounding of discrete time series data

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

References

  1. Andrew, A.M.: Another efficient algorithm for convex hulls in two dimensions. Inf. Process. Lett. 9(5), 216–219 (1979)

    Article  MATH  Google Scholar 

  2. Bellman, R.: On the approximation of curves by line segments using dynamic programming. Commun. ACM 4(6), 284 (1961)

    Article  MATH  Google Scholar 

  3. de Berg, M., van Kreveld, M., Overmars, M., Schwarzkopf, O.: Computational Geometry: Algorithms and Applications, 2nd edn. Springer (2000)

  4. 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)

    Article  Google Scholar 

  5. 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)

  6. 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)

    Article  MATH  MathSciNet  Google Scholar 

  7. Gluss, B.: Further remarks on line segment curve-fitting using dynamic programming. Commun. ACM 5(8), 441–443 (1962)

  8. Granvilliers, L., Cruz, J., Barahona, P.: Parameter estimation using interval computations. SIAM J. Sci. Comput. 26(2), 591–612 (2004)

    Article  MATH  MathSciNet  Google Scholar 

  9. Johnson, T., Tucker, W.: Rigorous parameter reconstruction for differential equations with noisy data. Automatica 44(9), 2422–2426 (2008)

    Article  MATH  MathSciNet  Google Scholar 

  10. 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)

  11. 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)

    Article  Google Scholar 

  12. 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)

  13. Phillips, G.M.: Algorithms for piecewise straight line approximations. Comput. J. 11(2), 211–212 (1968)

    Article  MATH  MathSciNet  Google Scholar 

  14. Ramer, U.: An iterative procedure for the polygonal approximation of plane curves. Comput. Graph. Image Process. 1(3), 244–256 (1972)

    Article  Google Scholar 

  15. 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)

  16. 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)

  17. Tucker, W., Kutalik, Z., Moulton, V.: Estimating parameters for generalized mass action models using constraint propagation. Math. Biosci. 208(2), 607–620 (2007)

    Article  MATH  MathSciNet  Google Scholar 

  18. Tucker, W., Moulton, V.: Parameter reconstruction for biochemical networks using interval analysis. Reliab. Comput. 12, 389–402 (2006)

    Article  MATH  MathSciNet  Google Scholar 

  19. Willms, A., Szusz, E.: Parameter range reduction for ODE models using monotonic discretizations. Comput. Appl. Math. 247, 124–151 (2013)

    Article  MATH  MathSciNet  Google Scholar 

  20. Willms, A.R.: Parameter range reduction for ODE models using cumulative backward differentiation formulas. J. Comput. Appl. Math. 203, 87–102 (2007)

    Article  MATH  MathSciNet  Google Scholar 

  21. 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)

  22. Wu, H., Zhu, H., Miao, H., Perelson, A.: Parameter identifiability and estimation of HIV/AIDS dynamic models. Bull. Math. Biol. 70, 785–799 (2008)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Andrew Skelton.

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

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10543-014-0492-2

Keywords

Mathematics Subject Classification (2010)

Navigation