[Paper Review] Students Need More Attention: BERT-based AttentionModel for Small Data with Application to AutomaticPatient Message Triage
This paper proposes LESA-BERT, a BERT-based model with label-aware self-attention for small, imbalanced healthcare datasets, and applies it to automatic patient message triage. By incorporating label embeddings into attention mechanisms and distilling the model to smaller variants, the approach reduces overfitting and improves performance, achieving a 4.3% higher macro F1 score than strong baselines on a 1,756-sample message urgency dataset.
Small and imbalanced datasets commonly seen in healthcare represent a challenge when training classifiers based on deep learning models. So motivated, we propose a novel framework based on BioBERT (Bidirectional Encoder Representations from Transformers forBiomedical TextMining). Specifically, (i) we introduce Label Embeddings for Self-Attention in each layer of BERT, which we call LESA-BERT, and (ii) by distilling LESA-BERT to smaller variants, we aim to reduce overfitting and model size when working on small datasets. As an application, our framework is utilized to build a model for patient portal message triage that classifies the urgency of a message into three categories: non-urgent, medium and urgent. Experiments demonstrate that our approach can outperform several strong baseline classifiers by a significant margin of 4.3% in terms of macro F1 score. The code for this project is publicly available at \url{https://github.com/shijing001/text_classifiers}.
Motivation & Objective
- Address the challenge of training deep learning models on small, imbalanced clinical datasets common in healthcare.
- Improve model performance and reduce overfitting when fine-tuning large pre-trained models like BioBERT on limited data.
- Develop a practical, deployable system for classifying patient portal messages into urgency levels: non-urgent, medium, and urgent.
- Enable efficient inference through knowledge distillation without sacrificing performance.
- Provide a generalizable framework applicable to other clinical NLP tasks with limited annotated data.
Proposed method
- Introduce Label Embeddings for Self-Attention (LESA) in each BERT layer, allowing the model to attend to label-specific representations during sequence encoding.
- Fine-tune the 12-layer LESA-BERT model on the patient message dataset using pre-trained BioBERT initializations.
- Apply knowledge distillation to compress the 12-layer LESA-BERT into smaller 6-layer and 3-layer variants to reduce overfitting and model size.
- Use the [CLS] token representation from the distilled model for downstream classification into urgency categories.
- Train the distilled models end-to-end using cross-entropy loss with class-balanced sampling to handle data imbalance.
- Evaluate performance using macro F1 score and t-SNE visualization to analyze class separability in latent space.
Experimental results
Research questions
- RQ1Can incorporating label embeddings into the self-attention mechanism of BERT improve performance on small, imbalanced clinical text classification tasks?
- RQ2Does knowledge distillation from a larger, fine-tuned LESA-BERT model to a smaller variant reduce overfitting and improve generalization on limited data?
- RQ3How does the performance of the proposed LESA-BERT framework compare to strong baselines such as SVM, random forest, and standard BERT on patient message triage?
- RQ4To what extent do the learned representations from LESA-BERT separate urgency classes, and how does label subjectivity affect this?
- RQ5Can the framework be effectively applied to real-world healthcare NLP tasks with limited annotated data?
Key findings
- The LESA-BERT framework achieved a macro F1 score of 0.746, outperforming all strong baseline classifiers by a significant margin of 4.3 percentage points.
- The 6-layer Distil-LESA-BERT model outperformed the full 12-layer LESA-BERT, demonstrating that knowledge distillation reduces overfitting and improves generalization on small datasets.
- t-SNE visualization showed that non-urgent messages were well-separated from medium and urgent messages, while urgent and medium messages exhibited significant overlap due to feature similarity and labeling subjectivity.
- The model struggled with negation, misclassifying messages like 'No chest pain' as urgent due to strong keywords, highlighting a need for negation-aware modeling.
- The framework is generalizable and can be applied to other clinical NLP tasks with small annotated datasets, offering a practical solution to data scarcity in healthcare AI.
- The system has clinical utility by enabling automated triage, potentially freeing provider time and improving response times for urgent messages.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.