This repository contains descriptions and their corresponding embeddings of SNOMED CT and LOINC ontology codes. The ontology code descriptions were generated using the OpenAI API. More specifically, the descriptions for SNOMED CT codes were generated by François Remy, while the descriptions for LOINC codes were generated using the GPT-3.5 model by myself according to the same methodology. The details of the citation for the SNOMED CT descriptions are below.
Citation for Generating SNOMED CT Descriptions:
@misc{remy2023automatic,
title={Automatic Glossary of Clinical Terminology: a Large-Scale Dictionary of Biomedical Definitions Generated from Ontological Knowledge},
author={François Remy and Thomas Demeester},
year={2023},
eprint={2306.00665},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
The dataset containing the generated SNOMED CT descriptions can be accessed through the HuggingFace model hub. The link to the HuggingFace dataset is FremyCompany/AGCT-Dataset. Parquet chunk files for both SNOMED CT and LOINC code descriptions, along with their generated embeddings, are available in this repository.
All embeddings for the descriptions and code labels were generated using the ADAv2 model. The generated embeddings capture semantic relationships and meanings in the clinical ontology codes' descriptions and labels.
A set of the top 100 lab items by occurrence from the MIMIC-IV dataset was compiled and used in a validation experiement. Each item was annotated with a LOINC code using AnnoDash and other supporting resources - these were used as the ground truths. Nine lab items were filtered out for not having an appropriate LOINC code.
Embeddings were then generated for labels and descriptions of each of the items. Subsequently, cosine similarity was executed between each of these embeddings and the embeddings for each LOINC code description. The results were sorted by its cosine similarity score. The position of the ground truths are summarized below.
With an automatic annotator using out-of-the-box cosine similarity:
- The ground truths for 16/91 (17.6%) lab items were in the top-1 position (ie. perfect match).
- The ground truths for 33/91 (36.3%) lab items were within the top-3 positions.
- The ground truths for 43/91 (47.3%) lab items were within the top-5 positions.
- The ground truths for 63/91 (69.2%) lab items were within the top-10 positions.
|
|
The top 100 chart items by occurrence were also compiled and manually mapped to SNOMED CT codes. The same protocol as above was followed. Results are pending...
The above performance data can be used as a benchmark for further testing using embeddings.
If you use the SNOMED CT descriptions generated by François Remy, please cite the following paper that appeared at ACL BioNLP 2023:
François Remy and Thomas Demeester. (2023). "Automatic Glossary of Clinical Terminology: a Large-Scale Dictionary of Biomedical Definitions Generated from Ontological Knowledge."
The MIMIC-IV Clinical Database Demo is openly available on PhysioNet (doi:10.13026/ng9m-3n32)). The full MIMIC-IV Clinical Database is also available on PhysioNet (doi:10.13026/07hj-2a80)). Appropriate data usage agreements must be signed.
Regarding the use of OpenAI's ADAv2 model for generating embeddings, please follow OpenAI's citation guidelines which can be found on the OpenAI website.
Please note that access to the dataset will require adherence to the associated licenses for the respective ontologies (SNOMED CT & LOINC)...

