TL;DR
This study investigates the validity of general-purpose sentiment analysis tools when applied to clinical notes from intensive care units. While these tools show some promise in identifying sentiment associated with patient outcomes on the same day, they don't improve mortality prediction and exhibit weak agreement among themselves, suggesting a need for domain-specific sentiment analysis methods in healthcare.
What Problem Does This Paper Address?
Electronic health records (EHRs) contain a wealth of unstructured text data, including clinical notes, that hold valuable information beyond structured fields. For patients in critical care, these notes can offer insights into diagnoses, interventions, and even the subjective assessments and attitudes of clinicians. The challenge is how to effectively extract and utilize this rich textual information. Sentiment analysis, a technique for identifying subjective expressions, has shown utility in other domains. However, its application to the nuanced and specialized language of medical notes, particularly for critically ill patients, is underexplored. This paper aims to assess whether existing, general-purpose sentiment analysis methods are valid for this specific clinical context, examining their predictive, concurrent, convergent, and content validity.
Methods
The researchers evaluated five sentiment analysis methods: Opinion, AFINN, EmoLex, Pattern, and sentimentr. They aggregated clinical encounter notes at a patient-day level and calculated the proportion of positive sentiment for each day using a formula that weighs positive and negative sentiment scores of words.
To assess different aspects of validity:
- Predictive Validity: They trained logistic regression models to predict in-hospital mortality using data from the first day of hospitalization, comparing models with and without sentiment measures.
- Concurrent Validity: They examined the relationship between daily sentiment and the risk of death on the same day using multivariable mixed-effects logistic regression.
- Convergent Validity: They measured the agreement between the five sentiment methods using Cronbach's alpha and pairwise Pearson correlations.
- Content Validity: They assessed how well each sentiment approach captured medical terms by measuring lexical coverage – the proportion of words in the notes that were found in the sentiment lexicon.
Datasets
The study utilized the Medical Information Mart for Intensive Care (MIMIC-III) database, a publicly available critical care database. The dataset comprised 791,216 multidisciplinary clinical notes from 40,602 hospitalizations at the Beth Israel Deaconess Medical Center between 2001 and 2012. Hospital admissions with a length of stay (LOS) of 30 days or less were included.
Key Insights and Ideas
- Domain Specificity Matters: General sentiment analysis tools, while capable of detecting some sentiment, struggle with the unique language and context of medical notes. Terms can have different meanings or polarities in a clinical setting compared to general language.
- Concurrent Association, Not Prediction: Sentiment expressed in notes is associated with patient outcomes (like death) on the same day, but this association doesn't extend to predicting future mortality. This suggests sentiment captures the immediate clinical state rather than a predictive signal.
- Valence Shifters are Crucial: The sentiment methods that accounted for valence shifters (words like "very" or "not" that modify the intensity of sentiment) showed stronger associations with patient outcomes, highlighting the importance of capturing nuanced language.
- Weak Agreement Among Tools: The five sentiment methods showed only weak agreement with each other, suggesting they are measuring different aspects of sentiment or are highly sensitive to their underlying lexicons and algorithms. This makes it difficult to rely on any single tool.
Key Results
- None of the five sentiment analysis methods improved the early prediction of in-hospital mortality.
- Positive sentiment, as measured by the Pattern, sentimentr, and Opinion methods, was inversely associated with the risk of death on the concurrent day, even after adjusting for demographic factors and illness severity. For example, the Pattern method showed an odds ratio of 0.09 (95% CI 0.04-0.17) for the association between positive sentiment and daily risk of death.
- Median daily lexical coverage (the proportion of words in the notes found in the sentiment lexicons) ranged from 5.2% to 20.5%.
- While sentiment estimates from different methods were positively correlated, their agreement was weak (Cronbach's alpha of 0.65, with pairwise correlations varying).
Limitations and Future Work
The authors acknowledge several limitations:
- Single Academic Center: The data was collected from one academic center, which may limit generalizability to other institutions with different documentation styles or patient populations.
- Objective vs. Subjective Terms: The analysis did not distinguish between the sentiment expressed about objective medical facts (e.g., "cardiac arrest") and subjective clinician opinions (e.g., "unpleasant patient"). This conflation impacts practical use in risk prediction.
Future work suggested includes:
- Developing Domain-Specific Lexicons: Creating sentiment lexicons tailored to medical terminology is crucial for better coverage and accuracy.
- Distinguishing Sources and Objects: Future research should focus on identifying who is expressing sentiment and what the sentiment is directed towards (e.g., the patient, the prognosis, the treatment).
- Addressing Ethical Challenges: Exploring the ethical implications of using sentiment analysis to guide clinical care is essential.
- Broader Validation: Validating findings in a larger, more diverse population is needed.
Summary updated