Related Experiment Video
Updated: Mar 11, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
A Predictive Model for Medical Events Based on Contextual Embedding of Temporal Sequences
Wael Farhan1, Zhimu Wang1,2, Yingxiang Huang1
1Health Sciences, Department of Biomedical Informatics, University of California - San Diego, La Jolla, CA, United States.
Background:
Medical concepts are inherently ambiguous and error-prone due to human fallibility, which makes it hard for them to be fully used by classical machine learning methods (eg, for tasks like early stage disease prediction).
Objective:
Our work was to create a new machine-friendly representation that resembles the semantics of medical concepts. We then developed a sequential predictive model for medical events based on this new representation.
Methods:
We developed novel contextual embedding techniques to combine different medical events (eg, diagnoses, prescriptions, and labs tests). Each medical event is converted into a numerical vector that resembles its "semantics," via which the similarity between medical events can be easily measured. We developed simple and effective predictive models based on these vectors to predict novel diagnoses.
Results:
We evaluated our sequential prediction model (and standard learning methods) in estimating the risk of potential diseases based on our contextual embedding representation. Our model achieved an area under the receiver operating characteristic (ROC) curve (AUC) of 0.79 on chronic systolic heart failure and an average AUC of 0.67 (over the 80 most common diagnoses) using the Medical Information Mart for Intensive Care III (MIMIC-III) dataset.
Conclusions:
We propose a general early prognosis predictor for 80 different diagnoses. Our method computes numeric representation for each medical event to uncover the potential meaning of those events. Our results demonstrate the efficiency of the proposed method, which will benefit patients and physicians by offering more accurate diagnosis.
Related Concept Videos
Steps in Outbreak Investigation
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time...
Survival Tree
Building a Survival Tree
Constructing a...
