Article view

timeseriesflattener: A Python package for summarizing features from (medical) time series

By Martin Bernstorff, Kenneth Enevoldsen, Jakob Grøhn Damgaard, Andreas Aalkjær Danielsen, Lasse Hansen

Article information

Publication
Published 29 March 2023
Institutions at publication
of , - , ,; Aarhus University Hospital; Aarhus University
10 Citations OpenAlex, 4 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Time series from e.g.electronic health records often have a large number of variables that are sampled at irregular and differing intervals. Before this type of data can be used for prediction modelling with machine learning methods such as logistic regression or XGBoost (Chen & Guestrin, 2016), the data needs to be reshaped. In essence, the time series need to be flattened so that each prediction time is represented by a vector of predefined length. This vector should hold the set of predictor values and an outcome value. These predictor values can be constructed by aggregating the preceding values in the time series within a certain time window. This process of flattening the data lays the foundation for further analyses and requires handling a number of tasks such as 1) how to deal with missing values, 2) which value to use if none fall within the prediction window, 3) how to handle variables measured multiple times within the chosen time window, and 4) how to handle predictors that attempt to look further back than the start of the dataset.

Citations per year

Citations per year
YearCitations
2023 0
2024 3
2025 2
2026 5

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 10 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
Denmark2