Trajectory analysis for postoperative pain using electronic health records: A nonparametric method with robust linear regression and K-medians cluster analysis

Health Informatics J. 2020 Jun;26(2):1404-1418. doi: 10.1177/1460458219881339. Epub 2019 Oct 17.

Abstract

Postoperative pain scores are widely monitored and collected in the electronic health record, yet current methods fail to fully leverage the data with fast implementation. A robust linear regression was fitted to describe the association between the log-scaled pain score and time from discharge after total knee replacement. The estimated trajectories were used for a subsequent K-medians cluster analysis to categorize the longitudinal pain score patterns into distinct clusters. For each cluster, a mixture regression model estimated the association between pain score and time to discharge adjusting for confounding. The fitted regression model generated the pain trajectory pattern for given cluster. Finally, regression analyses examined the association between pain trajectories and patient outcomes. A total of 3442 surgeries were identified with a median of 22 pain scores at an academic hospital during 2009-2016. Four pain trajectory patterns were identified and one was associated with higher rates of outcomes. In conclusion, we described a novel approach with fast implementation to model patients' pain experience using electronic health records. In the era of big data science, clinical research should be learning from all available data regarding a patient's episode of care instead of focusing on the "average" patient outcomes.

Keywords: K-medians cluster analysis; electronic health records; pain scores; robust linear regression.

Publication types

  • Research Support, U.S. Gov't, P.H.S.

MeSH terms

  • Cluster Analysis
  • Electronic Health Records*
  • Female
  • Humans
  • Linear Models
  • Male
  • Pain Measurement
  • Pain, Postoperative*