» Articles » PMID: 28750904

A Comparison of Rule-based and Machine Learning Approaches for Classifying Patient Portal Messages

Overview
Date 2017 Jul 29
PMID 28750904
Citations 31
Authors
Affiliations
Soon will be listed here.
Abstract

Objective: Secure messaging through patient portals is an increasingly popular way that consumers interact with healthcare providers. The increasing burden of secure messaging can affect clinic staffing and workflows. Manual management of portal messages is costly and time consuming. Automated classification of portal messages could potentially expedite message triage and delivery of care.

Materials And Methods: We developed automated patient portal message classifiers with rule-based and machine learning techniques using bag of words and natural language processing (NLP) approaches. To evaluate classifier performance, we used a gold standard of 3253 portal messages manually categorized using a taxonomy of communication types (i.e., main categories of informational, medical, logistical, social, and other communications, and subcategories including prescriptions, appointments, problems, tests, follow-up, contact information, and acknowledgement). We evaluated our classifiers' accuracies in identifying individual communication types within portal messages with area under the receiver-operator curve (AUC). Portal messages often contain more than one type of communication. To predict all communication types within single messages, we used the Jaccard Index. We extracted the variables of importance for the random forest classifiers.

Results: The best performing approaches to classification for the major communication types were: logistic regression for medical communications (AUC: 0.899); basic (rule-based) for informational communications (AUC: 0.842); and random forests for social communications and logistical communications (AUCs: 0.875 and 0.925, respectively). The best performing classification approach of classifiers for individual communication subtypes was random forests for Logistical-Contact Information (AUC: 0.963). The Jaccard Indices by approach were: basic classifier, Jaccard Index: 0.674; Naïve Bayes, Jaccard Index: 0.799; random forests, Jaccard Index: 0.859; and logistic regression, Jaccard Index: 0.861. For medical communications, the most predictive variables were NLP concepts (e.g., Temporal_Concept, which maps to 'morning', 'evening' and Idea_or_Concept which maps to 'appointment' and 'refill'). For logistical communications, the most predictive variables contained similar numbers of NLP variables and words (e.g., Telephone mapping to 'phone', 'insurance'). For social and informational communications, the most predictive variables were words (e.g., social: 'thanks', 'much', informational: 'question', 'mean').

Conclusions: This study applies automated classification methods to the content of patient portal messages and evaluates the application of NLP techniques on consumer communications in patient portal messages. We demonstrated that random forest and logistic regression approaches accurately classified the content of portal messages, although the best approach to classification varied by communication type. Words were the most predictive variables for classification of most communication types, although NLP variables were most predictive for medical communication types. As adoption of patient portals increases, automated techniques could assist in understanding and managing growing volumes of messages. Further work is needed to improve classification performance to potentially support message triage and answering.

Citing Articles

Natural language processing to evaluate texting conversations between patients and healthcare providers during COVID-19 Home-Based Care in Rwanda at scale.

Lester R, Manson M, Semakula M, Jang H, Mugabo H, Magzari A PLOS Digit Health. 2025; 4(1):e0000625.

PMID: 39813181 PMC: 11734906. DOI: 10.1371/journal.pdig.0000625.


Leveraging GPT-4 for identifying cancer phenotypes in electronic health records: a performance comparison between GPT-4, GPT-3.5-turbo, Flan-T5, Llama-3-8B, and spaCy's rule-based and machine learning-based methods.

Bhattarai K, Oh I, Sierra J, Tang J, Payne P, Abrams Z JAMIA Open. 2024; 7(3):ooae060.

PMID: 38962662 PMC: 11221943. DOI: 10.1093/jamiaopen/ooae060.


Automatic uncovering of patient primary concerns in portal messages using a fusion framework of pretrained language models.

Ren Y, Wu Y, Fan J, Khurana A, Fu S, Wu D J Am Med Inform Assoc. 2024; 31(8):1714-1724.

PMID: 38934289 PMC: 11258404. DOI: 10.1093/jamia/ocae144.


Natural language processing with machine learning methods to analyze unstructured patient-reported outcomes derived from electronic health records: A systematic review.

Sim J, Huang X, Horan M, Stewart C, Robison L, Hudson M Artif Intell Med. 2023; 146:102701.

PMID: 38042599 PMC: 10693655. DOI: 10.1016/j.artmed.2023.102701.


Patient portal interventions: a scoping review of functionality, automation used, and therapeutic elements of patient portal interventions.

Gleason K, Powell D, Wec A, Zou X, Gamper M, Peereboom D JAMIA Open. 2023; 6(3):ooad077.

PMID: 37663406 PMC: 10469545. DOI: 10.1093/jamiaopen/ooad077.


References
1.
Calabretta N . Consumer-driven, patient-centered health care in the age of electronic information. J Med Libr Assoc. 2002; 90(1):32-7. PMC: 64755. View

2.
Hobbs J, Wald J, Jagannath Y, Kittler A, Pizziferri L, Volk L . Opportunities to enhance patient and physician e-mail contact. Int J Med Inform. 2003; 70(1):1-9. DOI: 10.1016/s1386-5056(03)00007-8. View

3.
Purcell G . Surgical textbooks: past, present, and future. Ann Surg. 2004; 238(6 Suppl):S34-41. DOI: 10.1097/01.sla.0000097525.33229.20. View

4.
Denny J, Irani P, Wehbe F, Smithers J, Spickard 3rd A . The KnowledgeMap project: development of a concept-based medical school curriculum database. AMIA Annu Symp Proc. 2004; :195-9. PMC: 1480333. View

5.
White C, Moyer C, Stern D, Katz S . A content analysis of e-mail communication between patients and their providers: patients get the message. J Am Med Inform Assoc. 2004; 11(4):260-7. PMC: 436072. DOI: 10.1197/jamia.M1445. View