Skip to main content
QUICK REVIEW

[Paper Review] TabText: Language-Based Representations of Tabular Health Data for Predictive Modelling

Kimberly Villalobos Carballo, Liangyuan Na|arXiv (Cornell University)|Jun 21, 2022
Machine Learning in HealthcareComputer Science6 citations
TL;DR

TabText introduces a novel framework that converts tabular health data into natural language descriptions using fine-tuned clinical language models, enabling contextual feature representation without extensive preprocessing. It achieves state-of-the-art performance on nine healthcare prediction tasks, improving average and worst-case AUC by up to 6% when augmenting standard tabular models.

ABSTRACT

Tabular medical records remain the most readily available data format for applying machine learning in healthcare. However, traditional data preprocessing ignores valuable contextual information in tables and requires substantial manual cleaning and harmonisation, creating a bottleneck for model development. We introduce TabText, a preprocessing and feature extraction method that leverages contextual information and streamlines the curation of tabular medical data. This method converts tables into contextual language and applies pretrained large language models (LLMs) to generate task-independent numerical representations. These fixed embeddings are then used as input for various predictive tasks. TabText was evaluated on nine inpatient flow prediction tasks (e.g., ICU admission, discharge, mortality) using electronic medical records across six hospitals from a US health system, and on nine publicly available datasets from the UCI Machine Learning Repository, covering tasks such as cancer diagnosis, recurrence, and survival. TabText models trained on unprocessed data from a single hospital (572,964 patient-days, Jan 2018-Dec 2020) achieved accurate performance (AUC 0.75-0.94) when tested prospectively on 265,917 patient-days from Jan 2021-Apr 2022, and generalised well to five additional hospitals not used for training. When augmenting preprocessed tabular records with these contextual embeddings, out-of-sample AUC improved by up to 4 additive percentage points in challenging tasks such as ICU transfer and breast cancer recurrence, while providing little to no benefit for already high-performing tasks. Findings were consistent across both private and public datasets.

Motivation & Objective

  • To address the limitations of traditional tabular data processing that ignore contextual metadata such as column headers and table descriptions.
  • To reduce labor-intensive preprocessing by leveraging large language models (LLMs) to extract semantic meaning from tabular structures.
  • To evaluate whether language-based representations of tabular data can improve machine learning performance in healthcare prediction tasks.
  • To investigate optimal language construction strategies for tabular data representation, including handling missing values and numerical normalization.
  • To demonstrate that fine-tuning clinical LLMs on tabular data yields better feature embeddings than standard preprocessing methods.

Proposed method

  • Convert each tabular data sample into a natural language sentence combining column names, values, and contextual metadata (e.g., table description, prediction task).
  • Replace numerical values with descriptive terms (e.g., 'normal', 'high') based on z-score thresholds relative to mean and standard deviation.
  • Omit sentences for missing values and include metadata such as prediction task or table purpose to enrich context.
  • Fine-tune the Clinical-Longformer LLM on the constructed language data using masked language modeling to adapt it to clinical tabular data.
  • Extract 768-dimensional contextual embeddings from the fine-tuned LLM and use them as input features for gradient-boosted tree models.
  • Compare TabText embeddings against standard tabular preprocessing using identical model architectures and hyperparameter settings across 10 train-validation splits.

Experimental results

Research questions

  • RQ1Can transforming tabular health data into natural language improve downstream machine learning performance compared to standard preprocessing?
  • RQ2What is the optimal way to construct language representations from tabular data, including choices about missing values, numerical encoding, and metadata inclusion?
  • RQ3Does fine-tuning a pre-trained clinical LLM on tabular data lead to better feature representations than using the model in a zero-shot or few-shot manner?
  • RQ4To what extent does TabText improve both average and worst-case performance across diverse healthcare prediction tasks?
  • RQ5How does the inclusion of contextual metadata (e.g., table description, prediction goal) affect model performance?

Key findings

  • TabText enables high-performing, simple machine learning baselines with minimal data preprocessing, demonstrating that language-based representation can replace complex feature engineering.
  • Augmenting standard tabular data with TabText embeddings improves the average AUC by up to 6% and the worst-case AUC by up to 6% across nine healthcare prediction tasks.
  • The optimal language construction strategy includes replacing numerical values with descriptive terms, omitting missing value entries, using descriptive language, and including task-specific or table-level metadata.
  • Fine-tuning the Clinical-Longformer model on the local tabular data slightly improved performance on eight out of nine classification tasks, confirming the benefit of domain-specific adaptation.
  • The framework consistently outperformed standard tabular modeling approaches across all nine tasks, with statistically significant gains in AUC, particularly in low-resource or challenging cases.
  • The method is robust and flexible, allowing for consistent performance improvements regardless of the underlying tabular data structure or source heterogeneity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.