development of a natural language processing tool to enable clinical research in emergency medicine

Conditions: Emergency Medicine

Summary: the goal of this retrospective cohort study is to develop and validate a language model that can interpret the contents of emergency department electronic medical records and extract relevant information for research purposes in all adult patients who arrived at the participating emergency departments in a three-year period. the main question it aims to answer is: is the language model able to interpret the contents of emergency department electronic medical records and extract the requested information from them so that it can be used to make accurate analyses and predictions? the study is retrospective and data will be extracted automatically from the medical health records.

background and rationale for the study conducting clinical and quality-of-care assessment research in emergency medicine is as difficult as it is important. it is difficult because the vast number of patients that need to be treated and the chronic shortage of staff make ad hoc data collection impractical. it is important because, in the end, research enables emergency physicians and nurses to base their practice on evidence obtained in their own, unique setting, as opposed to evidence obtained in far-removed contexts, as is commonly the case today. the only way to bridge the gap between research needs and availability of robust data is to extract data directly from the electronic health records (ehrs) of emergency departments, avoiding dedicated, time-consuming data collection. this is a difficult task, however, because the most useful information is in free text format (e.g., presence of signs and symptoms, suspected and confirmed diagnosis, anamnesis). such circumstances and needs require a reliable natural language processing (nlp) tool to derive highly consistent data from free text. today, large-scale language models are available that can accurately interpret natural language. these models are trained on huge amounts of general knowledge taken mostly from the internet, however, so their performance in more specialized areas, such as the medical domain, may not be optimal. the present study is part of a larger project called ecream (enabling clinical research in emergency and acute-care medicine), and aims to develop and validate a language model (called ecream_lm) for six languages that can interpret the contents of emergency department ehrs and extract relevant information for research purposes. methods the study is an observational, multicenter, retrospective, 24-month study. thirty centers will participate in the study: 13 from italy, 4 from poland, 3 from greece, slovakia, slovenia, and the united kingdom, and 1 from switzerland. the centers will not receive any compensation, but their expenses will be covered by project funds. development and validation of the ecream_lm model. ecream_lm will be developed through training and fine-tuning of the best overall model, among those open-source, and will proceed in partially parallel phases. candidate models will be exposed to a huge amount (billions) of medical texts from the scientific literature or other public sources. simultaneously, the models will also be exposed to a massive amount (millions) of free text notes obtained from medical records in use at participating hospitals. the investigators will then move on to fine-tuning, where a large amount (thousands) of clinical notes, obtained, once again, from the medical records of participating centers, will be used. these notes will be annotated by experienced physicians, which consists of extracting information from the notes to fill in the data items listed in a virtual data collection form (vcrf). the vcrf was created for a related study and contains a set of variables useful in predicting the hospitalization of patients with dyspnea or transient loss of consciousness, which is the objective of the related study. in the current study, the vcrf will serve as a tool for validating the language model. validation of ecream_lm will be carried out using a set of 1,000 clinical notes annotated as described above, but not used in the development phase. these notes will be submitted to the ecream_lm model with the task of compiling the vcrf. the concordance in filling in the vcrf between the expert physicians and the ecream_lm will be the measure of final validation of ecream_lm. data collection and anonymization each participating hospital will provide free text notes contained in the medical records of 150-300,000 adult patients treated between 2021 and 2023. notes referring to different aspects of the same patient (e.g., history, objective examination, test results) will be separated from each other so that it will be impossible to reconstruct the complete profile of the patient. in addition, the notes will be stripped of any reference to the patient (e.g., first name, last name, date of birth) and context (e.g., hospital, date and time of arrival at the center). this process minimizes the likelihood of re-identifying patients and maximizes the protection of their rights. the likelihood of re-identifying a patient within a database depends on how unique his or her characteristics are from other individuals in the database. the likelihood of having unique, and therefore identifiable, patients increases with the amount of information available in the database and decreases with its size. by removing all personal and contextual information from clinical notes and separating each note from the others, each note will only report a few characteristics of the patient. in addition, data collected from hospitals in the same country will be merged so that there is one large database for each language. this effectively zeroes out the probability of there being individuals uniquely identifiable from the notes. finally, to rule out the possibility that the notes will contain information about third parties, such as names and phone numbers of patients' relatives, a certified anonymization software, specifically designed to remove personal data from free text, will be installed in each hospital. once anonymized, the data will be centralized for analysis and will also be uploaded to major european language resource sharing platforms in the scientific community. statistical analysis in the ecream_lm validation, the investigators will assess the concordance between expert emergency physicians and the ecream_lm itself in filling in the vcrf. the data will refer to a sample of 1,000 notes for each study language. concordance will be assessed for each variable of the vcrf using cohen's κ as a measure of agreement. the ecream_lm will be considered valid if cohen's κ is greater than 0.75. sample size assuming an excellent agreement (κ=0.80) between ecream_lm and the experienced emergency physicians in completing the vcrf, a sample of at least 735 notes will be necessary to achieve sufficient precision to guarantee a good agreement (lower confidence limit of 95% confidence interval of cohen's κ greater than 0.75). this number is the maximum sample size obtained under different scenarios involving a different number of categories (2 to 5) for each variable and different marginal distributions of the categories in the sample, including balanced distributions (e.g., 5 categories with 20% of the sample in each category) and very imbalanced results (e.g., 5 categories with 1.8%, 7.3%, 16.4%, 29.1% and 45.5% of the sample). since information of interest may be missing in some notes, the investigators will perform the data validation assessment on 1,000 notes.

Eligibility criteria:
inclusion criteria: * adult * arrived at emergency department between 1 january 2021 and 31 december 2023 exclusion criteria: * none