Published March 29, 2023 | Journal article | Version v1 | https://doi.org/10.21105/joss.05197

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

Files

joss.05197.pdf

Files (6.1 MB)

Name Size Download all
md5:0fbe892283942608708732a8f549e690
620.0 kB Preview Download
md5:878b70e76cd97a4d0d01a3ed0ea7cabf
5.5 MB Preview Download

Additional details

Dates

Issued
March 29, 2023

References

  1. Bernstorff, M., Enevoldsen, K., Damgaard, J., Danielsen, A., & Hansen, L. (2023). timeseriesflattener: A Python package for summarising features from (medical) time series (Version v0.23.11) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.7778588
  2. Rajkomar, A., Oren, E., Chen, K., Dai, A. M., Hajaj, N., Hardt, M., Liu, P. J., Liu, X., Marcus, J., Sun, M., Sundberg, P., Yee, H., Zhang, K., Zhang, Y., Flores, G., Duggan, G. E., Irvine, J., Le, Q., Litsch, K., … Dean, J. (2018). Scalable and accurate deep learning with electronic health records. Npj Digital Medicine, 1(1), Article 18. https://doi.org/10.1038/s41746-018-0029-1
  3. Hansen, L., Enevoldsen, K. C., Bernstorff, M., Nielbo, K. L., Danielsen, A. A., & Østergaard, S. D. (2021). The PSYchiatric clinical outcome prediction (PSYCOP) cohort: leveraging the potential of electronic health records in the treatment of mental disorders. Acta Neuropsychiatrica, 33(6), 323–330. https://doi.org/10.1017/neu.2021.22
  4. Chen, T., & Guestrin, C. (2016). XGBoost: A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794. https://doi.org/10.1145/2939672.2939785
  5. Lauritsen, S. M., Thiesson, B., Jørgensen, M. J., Riis, A. H., Espelund, U. S., Weile, J. B., & Lange, J. (2021). The Framing of machine learning risk prediction models illustrated by evaluation of sepsis in general wards. Npj Digital Medicine, 4(1), Article 158. https://doi.org/10.1038/s41746-021-00529-x
  6. Feurer, M., Klein, A., Eggensperger, K., Springenberg, J., Blum, M., & Hutter, F. (2015). Efficient and robust automated machine learning. Advances in Neural Information Processing Systems, 28. https://papers.neurips.cc/paper/2015/hash/11d0e6287202fced83f79975ec59a3a6-Abstract.html
  7. Imrie, F., Cebere, B., McKinney, E. F., & van der Schaar, M. (2022). AutoPrognosis 2.0: Democratizing Diagnostic and Prognostic Modeling in Healthcare with Automated Machine Learning [Article]. https://doi.org/10.48550/arxiv.2210.12090
  8. Shamout, F., Zhu, T., & Clifton, D. A. (2021). Machine Learning for Clinical Outcome Prediction. IEEE Reviews in Biomedical Engineering, 14, 116–126. https://doi.org/10.1109/rbme.2020.3007816
  9. Johnson, A. E. W., Pollard, T. J., Shen, L., Lehman, L.-. wei H., Feng, M., Ghassemi, M., Moody, B., Szolovits, P., Anthony Celi, L., & Mark, R. G. (2016). MIMIC-III, a freely accessible critical care database. Scientific Data, 3(1), Article 160035. https://doi.org/10.1038/sdata.2016.35
  10. Tang, S., Davarmanesh, P., Song, Y., Koutra, D., Sjoding, M. W., & Wiens, J. (2020). Democratizing EHR analyses with FIDDLE: a flexible data-driven preprocessing pipeline for structured clinical data. Journal of the American Medical Informatics Association, 27(12), 1921–1934. https://doi.org/10.1093/jamia/ocaa139

Citations

  1. Perfalk, E., Damgaard, J. G., Danielsen, A. A., & Østergaard, S. D. (2026). Predicting clozapine initiation among patients with schizophrenia via machine learning trained on electronic health record data. Schizophrenia Research, 297, 461–471. https://doi.org/10.1016/j.schres.2026.08.029
  2. https://doi.org/10.1017/neu.2026.10063
  3. Kolding, S., Damgaard, J. G., Bernstorff, M., Hansen, L., Østergaard, S. D., & Danielsen, A. A. (2026). Development and evaluation of machine learning models to predict mechanical restraint and related coercive measures in hospital psychiatry. Nordic Journal of Psychiatry, 80(7), 447–458. https://doi.org/10.1080/08039488.2026.2716241
  4. Parviz, M., Brieghel, C., Werling, M., Lacoppidan, T., Rotbain, E., Niemann, C. U., & Agius, R. (2026). Post-treatment infection prediction in CLL using domain adaptation of lymphoma electronic health records. Acta Oncologica, 65, 109–118. https://doi.org/10.2340/1651-226x.2026.44569
  5. Hansen, L., Bernstorff, M., Enevoldsen, K., Kolding, S., Damgaard, J. G., Perfalk, E., Nielbo, K. L., Danielsen, A. A., & Østergaard, S. D. (2025). Predicting Diagnostic Progression to Schizophrenia or Bipolar Disorder via Machine Learning. JAMA Psychiatry, 82(5), 459. https://doi.org/10.1001/jamapsychiatry.2024.4702
  6. Hansen, L., Damgaard, J. G., Lundin, R. M., Danielsen, A. A., & Østergaard, S. D. (2025). Predicting the need for electroconvulsive therapy via machine learning trained on electronic health record data [Preprint]. In medRxiv. openRxiv. https://doi.org/10.1101/2025.06.19.25329678
  7. Bernstorff, M., Hansen, L., Olesen, K. K. W., Danielsen, A. A., & Østergaard, S. D. (2025). Predicting cardiovascular disease in patients with mental illness using machine learning. European Psychiatry, 68(1). https://doi.org/10.1192/j.eurpsy.2025.1
  8. Kolding, S., Damgaard, J. G., Bernstorff, M., Hansen, L., Østergaard, S. D., & Danielsen, A. A. (2025). Development and Evaluation of Machine Learning Models to Predict Mechanical Restraint and Related Coercive Measures in Hospital Psychiatry [Preprint]. In medRxiv. openRxiv. https://doi.org/10.64898/2025.12.15.25342272
  9. Perfalk, E., Damgaard, J. G., Bernstorff, M., Hansen, L., Danielsen, A. A., & Østergaard, S. D. (2024). Predicting involuntary admission following inpatient psychiatric treatment using machine learning trained on electronic health record data. Psychological Medicine, 54(15), 4348–4361. https://doi.org/10.1017/s0033291724002642
  10. Hansen, L., Bernstorff, M., Enevoldsen, K., Kolding, S., Damgaard, J. G., Perfalk, E., Nielbo, K. L., Danielsen, A. A., & Østergaard, S. D. (2024). Predicting diagnostic progression to schizophrenia or bipolar disorder via machine learning applied to electronic health record data [Preprint]. In medRxiv. openRxiv. https://doi.org/10.1101/2024.07.02.24309828
  11. Bernstorff, M., Hansen, L., Enevoldsen, K., Damgaard, J., Hæstrup, F., Perfalk, E., Danielsen, A. A., & Østergaard, S. D. (2024). Development and validation of a machine learning model for prediction of type 2 diabetes in patients with mental illness. Acta Psychiatrica Scandinavica, 151(3), 245–258. https://doi.org/10.1111/acps.13687
  12. Bernstorff, M., Hansen, L., Enevoldsen, K., Damgaard, J., Hæstrup, F., Perfalk, E., Danielsen, A. A., & Østergaard, S. D. (2023). Development and validation of a machine learning model for prediction of type 2 diabetes in patients with mental illness [Preprint]. In medRxiv. openRxiv. https://doi.org/10.1101/2023.09.26.23296141