Skip to main content
QUICK REVIEW

[Paper Review] Computing patient similarity based on unstructured clinical notes

Petr Zelina, Marko Řeháček|arXiv (Cornell University)|Jan 12, 2026
Machine Learning in HealthcareComputer Science0 citations
TL;DR

The paper presents a modular pipeline to compute patient similarity from unstructured clinical notes by representing each patient as a matrix of note embeddings and comparing matrices with multiple similarity measures. It evaluates various embedding techniques, filtering strategies, and matrix similarity methods on a Czech breast cancer dataset with expert annotations.

ABSTRACT

Clinical notes hold rich yet unstructured details about diagnoses, treatments, and outcomes that are vital to precision medicine but hard to exploit at scale. We introduce a method that represents each patient as a matrix built from aggregated embeddings of all their notes, enabling robust patient similarity computation based on their latent low-rank representations. Using clinical notes of 4,267 Czech breast-cancer patients and expert similarity labels from Masaryk Memorial Cancer Institute, we evaluate several matrix-based similarity measures and analyze their strengths and limitations across different similarity facets, such as clinical history, treatment, and adverse events. The results demonstrate the usefulness of the presented method for downstream tasks, such as personalized therapy recommendations or toxicity warnings.

Motivation & Objective

  • Motivate precision medicine through patient similarity derived from unstructured EHR notes when structured data are sparse.
  • Develop a representation where each patient is a matrix of embedded notes to enable robust similarity computation.
  • Evaluate multiple embedding techniques, filtering schemes, and matrix-based similarity measures across clinically relevant categories.

Proposed method

  • Segment and filter clinical notes by similarity category to focus on relevant content.
  • Vectorize filtered notes using LSA, Doc2Vec, or transformer-based embeddings to form a patient note matrix.
  • Compute patient similarity by applying RV coefficient, MaxMax, or Edit-Distance based measures to pairwise patient matrices.
  • Evaluate combinations via a validation study with clinician-provided similarity annotations using Kendall tau.
  • Analyze the impact of hyperparameters and note filtering on category-specific performance.
  • Provide a combined embedding ensemble to stabilize results across variants.

Experimental results

Research questions

  • RQ1Can patient similarity be effectively derived from unstructured clinical notes by aggregating individual note embeddings into patient-level matrices?
  • RQ2Which combinations of note vectorization, filtering, and matrix-similarity methods best reflect expert judgments across clinically meaningful similarity categories?
  • RQ3Does segment-level filtering improve the alignment between computed similarity and clinician-provided similarity?
  • RQ4How do different vectorization techniques (LSA, Doc2Vec, transformer embeddings) interact with matrix similarity measures in terms of performance and scalability?
  • RQ5Which similarity categories are most and least predictable from the proposed representations?

Key findings

  • The best performing option combines a combined embedding with RV coefficient similarity (Rrv2) and shows robust performance across several categories.
  • Filtering improves performance for several vectorization methods, particularly with Vlsa and the combined embeddings.
  • Doc2Vec (Vd2v) performs poorly in several configurations, especially with higher dimensionality and filtering.
  • The study identifies six categories where similarity predictions are largely random, highlighting limitations and category-specific data issues.
  • Inter-annotator agreement varies by category, with social history, allergies, and side effects showing relatively low agreement.
  • A combined embedding ensemble stabilizes performance across parameter choices.

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.