# Evaluating robustness of language models for chief complaint extraction from patient-generated text

arXiv: https://arxiv.org/abs/1911.06915 · HTML: https://mlsanity.com/paper/1911.06915/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 15 Nov 2019.

## Built on by (most cited first, 2 of 2)

- [Neural Natural Language Processing for Unstructured Data in Electronic Health Records: a Review](https://mlsanity.com/paper/2107.02975/) (2021)
- [Weakly Supervised Medical Entity Extraction and Linking for Chief Complaints](https://mlsanity.com/paper/2509.01899/) (2025)

## Abstract (arXiv)

Automated classification of chief complaints from patient-generated text is a critical first step in developing scalable platforms to triage patients without human intervention. In this work, we evaluate several approaches to chief complaint classification using a novel Chief Complaint (CC) Dataset that contains ~200,000 patient-generated reasons-for-visit entries mapped to a set of 795 discrete chief complaints. We examine the use of several fine-tuned bidirectional transformer (BERT) models trained on both unrelated texts as well as on the CC dataset. We contrast this performance with a TF-IDF baseline. Our evaluation has three components: (1) a random test hold-out from the original dataset; (2) a "misspelling set," consisting of a hand-selected subset of the test set, where every entry has at least one misspelling; (3) a separate experimenter-generated free-text set. We find that the TF-IDF model performs significantly better than the strongest BERT-based model on the test (best BERT PR-AUC 0.3597 ± 0.0041 vs TF-IDF PR-AUC 0.3878 ± 0.0148, p=7· 10-5), and is statistically comparable to the misspelling sets (best BERT PR-AUC 0.2579 ± 0.0079 vs TF-IDF PR-AUC 0.2733 ± 0.0130, p=0.06). However, when examining model predictions on experimenter-generated queries, some concerns arise about TF-IDF baseline's robustness. Our results suggest that in certain tasks, simple language embedding baselines may be very performant; however, truly understanding their robustness requires further analysis.
