AnnoDash, a clinical terminology annotation dashboard

Justin Xu, Mjaye Mazwi, Alistair E. W. JohnsonJAMIA 2023

TL;DR

This paper introduces AnnoDash, a novel web-based dashboard designed to streamline the laborious process of mapping clinical concepts to standardized ontologies like SNOMED CT and LOINC. By integrating data visualization, AI-powered suggestions, and a flexible architecture, AnnoDash aims to improve the accuracy and efficiency of clinical data harmonization for better interoperability and multisite research.

What Problem Does This Paper Address?

Interoperability and multisite analysis of health data are crucial for advancing medical research and improving patient care. However, a significant bottleneck lies in harmonizing clinical concepts, which are often stored using locally specific codes within Electronic Health Records (EHRs). Mapping these concepts to standardized ontologies (like SNOMED CT and LOINC) is essential for consistent data representation, but this process is typically manual, time-consuming, and prone to errors. Existing tools often lack robust visualization capabilities to help disambiguate vague concepts or provide context from source data, leading to an ad hoc approach to contextualization.

Methods

AnnoDash is built using the Plotly Dash library in Python, enabling interactive web-based visualizations. The dashboard is structured into three main panes:

  • Concept Pane: Displays terms requiring annotation, allowing users to navigate source concepts and select target ontology terms.
  • Visualization Pane: Offers data visualization options to contextualize clinical concepts. This includes distribution plots for numerical and textual data, as well as time-series plots that show measurements over time, allowing comparison with known clinical concepts.
  • Search Pane: Facilitates searching and filtering of ontology terms. The system employs a combination of string similarity (fuzzy matching, vector search) and re-ranking using Large Language Models (LLMs) like OpenAI's GPT-3.5 and CohereAI's re-ranking API to suggest the most likely ontology matches.

The architecture is designed to be modular, allowing for extensions such as new similarity algorithms or LLM integrations. Ontology terms are loaded into a relational database (SQLite by default), with provided scripts for common ontologies like LOINC, SNOMED CT, ICD-10, and OMOP.

Datasets

The primary dataset used for evaluation was the Medical Information Mart for Intensive Care IV (MIMIC-IV) database. Specifically, a 100-patient demo subset was utilized, with laboratory and chart information stored in SQLite tables. The paper does not introduce new benchmark datasets but rather uses an existing, widely recognized clinical dataset for validation.

Key Insights and Ideas

  • Visualization as a Disambiguation Tool: The integration of data visualization (distribution plots, time-series) is a key innovation. This allows annotators to see the actual observed values and temporal trends associated with a concept, which is crucial for disambiguating ambiguous terms (e.g., "MAP" could mean "mean arterial pressure" or "mean airway pressure").
  • Hybrid Approach to Ontology Mapping: Combining traditional string similarity methods with LLM-based re-ranking offers a powerful approach. This leverages the speed of initial retrieval with the contextual understanding of LLMs to improve suggestion accuracy.
  • Flexibility and Extensibility: The modular design of AnnoDash is a significant advantage. It allows users to customize components, integrate new ontologies, or swap out search algorithms, making it adaptable to diverse research needs.
  • User-Centric Design: The dashboard is designed to be user-friendly, with a focus on simplifying the annotation process for both technical and non-technical users. The pilot study highlighted the importance of clear data visualization and ease of use for clinical users.

Key Results

  • Efficiency: In a pilot study with 4 users, annotating a single concept took a median of 2.5 minutes during initial exposure.
  • Search Performance: The paper reports average suggestion times for different search approaches: approximately 9 seconds for fuzzy string matching, 1.26 seconds for vector search, and 0.82 seconds for the SQLite FTS5 approach.
  • Qualitative Feedback: Users found displaying relevant data alongside metadata for ontology terms to be very important. Clinical users prioritized ease of deployment less than technical users, while technical users prioritized extensibility more than clinical users. Users with experience annotating medical concepts strongly favored using AnnoDash in the future.

Limitations and Future Work

  • Configuration Complexity: The dashboard requires configuration with observed measurements from source systems, which can be non-trivial for certain hospital systems.
  • Generalizability: The evaluation was conducted on the MIMIC-IV dataset, and its generalizability to other datasets or clinical corpora needs further confirmation.
  • String Similarity Limitations: String similarity approaches can sometimes suggest semantically distinct terms that are syntactically similar (e.g., "ventricular fibrillation" vs. "atrial fibrillation").
  • LLM Cost and Integration: The LLM-based re-ranking is an optional module that incurs monetary costs and is disabled by default.
  • Future Work: The authors aim to improve the suggestion module to increase the likelihood of the ideal ontology code appearing in the top suggestions. They also plan to explore how quantitative measurements can be more directly used to improve suggestions without relying solely on LLMs.

Summary updated

Abstract

AnnoDash, an improved clinical terminology annotation tool, can facilitate data harmonizing by promoting mapping of clinical data. AnnoDash is freely available at https://github.com/justin13601/AnnoDash (https://doi.org/10.5281/zenodo.8043943).
BibTeX
@inproceedings{xu2023annodash,
  author = {Justin Xu and Mjaye Mazwi and Alistair E. W. Johnson},
  title = {{AnnoDash, a clinical terminology annotation dashboard}},
  booktitle = {JAMIA},
  year = {2023},
  doi = {10.1093/jamiaopen/ooad046},
}
Figure