Skip to main content
QUICK REVIEW

[Paper Review] Embedding Complexity In the Data Representation Instead of In the Model: A Case Study Using Heterogeneous Medical Data

Jacek M. Bajor, Diego Mesa|arXiv (Cornell University)|Feb 12, 2018
Machine Learning in HealthcareComputer Science32 references8 citations
TL;DR

This paper proposes using full-record semantic embeddings to capture complex clinical data dependencies directly in the data representation, bypassing extensive preprocessing and enabling simple, fast linear models for downstream prediction. The method achieves competitive performance across three clinical tasks while preserving patient similarity and disease trajectories, demonstrating that embedding complexity in data reduces reliance on expert-driven preprocessing and complex models.

ABSTRACT

Electronic Health Records have become popular sources of data for secondary research, but their use is hampered by the amount of effort it takes to overcome the sparsity, irregularity, and noise that they contain. Modern learning architectures can remove the need for expert-driven feature engineering, but not the need for expert-driven preprocessing to abstract away the inherent messiness of clinical data. This preprocessing effort is often the dominant component of a typical clinical prediction project. In this work we propose using semantic embedding methods to directly couple the raw, messy clinical data to downstream learning architectures with truly minimal preprocessing. We examine this step from the perspective of capturing and encoding complex data dependencies in the data representation instead of in the model, which has the nice benefit of allowing downstream processing to be done with fast, lightweight, and simple models accessible to researchers without machine learning expertise. We demonstrate with three typical clinical prediction tasks that the highly compressed, embedded data representations capture a large amount of useful complexity, although in some cases the compression is not completely lossless.

Motivation & Objective

  • To reduce the need for expert-driven preprocessing in clinical prediction by embedding complex data dependencies directly into the data representation.
  • To enable the use of simple, fast, and interpretable models—such as linear classifiers—by shifting complexity from the model to the data representation.
  • To evaluate whether highly compressed, embedded representations can preserve clinically meaningful patterns like patient similarity and disease progression.
  • To demonstrate the feasibility of using unsupervised, record-level semantic embeddings as a generic, reusable representation for diverse clinical prediction tasks.
  • To provide a scalable, low-barrier entry point for researchers without machine learning expertise to perform EHR-based research.

Proposed method

  • The method uses skip-gram style semantic embedding (inspired by Word2Vec) to learn dense vector representations of entire patient records based on clinical codes and events.
  • Each patient’s longitudinal, heterogeneous EHR data is treated as a sequence of clinical events (e.g., diagnoses, medications, lab results), which are embedded into a fixed-size vector space.
  • The embedding model is trained in an unsupervised manner on a large corpus of EHR data, learning to predict nearby events in the sequence based on the patient’s overall record representation.
  • The resulting embedded vectors are used as input features for downstream prediction tasks, replacing raw or preprocessed data.
  • Simple linear models (logistic regression) and more complex models (XGBoost) are trained on the embedded representations to compare performance.
  • Patient similarity and disease trajectories are visualized using dimensionality reduction (PCA) on the embedded vectors to assess semantic preservation.

Experimental results

Research questions

  • RQ1Can a single, generic, unsupervised embedding of full EHR records capture sufficient complexity to support accurate clinical prediction without extensive preprocessing?
  • RQ2Does using embedded representations allow for effective use of simple, lightweight models (e.g., linear classifiers) in place of complex architectures?
  • RQ3To what extent do the embedded representations preserve clinically meaningful patterns such as patient similarity and disease progression trajectories?
  • RQ4How does the performance of models trained on embedded representations compare to models trained on traditional, expert-preprocessed features?
  • RQ5Can this approach serve as a scalable, low-effort alternative for initial proof-of-concept studies in EHR research?

Key findings

  • The embedded representation achieved performance comparable to traditional preprocessing methods across three clinical prediction tasks: breast cancer, diabetes treatment, and lung cancer prediction.
  • Linear models trained on the embedded vectors showed calibration performance that was either comparable or slightly better than those trained on raw or preprocessed data, particularly for the more complex XGBoost model.
  • The embedded vectors preserved patient similarity, with positive cases (disease onset) clustering tightly in the embedding space, indicating meaningful semantic structure.
  • Patient trajectories in the embedding space clearly illustrated disease progression from negative to positive states, with the diagnosis time marked by a color transition from dark purple to yellow.
  • The method enabled fast, interpretable models accessible to non-experts, reducing the barrier to entry for EHR-based research.
  • The approach demonstrated potential for large-scale applications, such as predicting any of 18,000 ICD-9 conditions, due to its generic and unsupervised nature.

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.