Developing and validating a natural language processing algorithm to extract preoperative cannabis use status documentation from unstructured narrative clinical notes
- 26 April 2023
- journal article
- research article
- Published by Oxford University Press (OUP) in Journal of the American Medical Informatics Association
- Vol. 30 (8) , 1418-1428
Abstract
Objective: This study aimed to develop a natural language processing algorithm (NLP) using machine learning (ML) techniques to identify and classify documentation of preoperative cannabis use status. Materials and Methods: We developed and applied a keyword search strategy to identify documentation of preoperative cannabis use status in clinical documentation within 60 days of surgery. We manually reviewed matching notes to classify each documentation into 8 different categories based on context, time, and certainty of cannabis use documentation. We applied 2 conventional ML and 3 deep learning models against manual annotation. We externally validated our model using the MIMIC-III dataset. Results: The tested classifiers achieved classification results close to human performance with up to 93% and 94% precision and 95% recall of preoperative cannabis use status documentation. External validation showed consistent results with up to 94% precision and recall. Discussion: Our NLP model successfully replicated human annotation of preoperative cannabis use documentation, providing a baseline framework for identifying and classifying documentation of cannabis use. We add to NLP methods applied in healthcare for clinical concept extraction and classification, mainly concerning social determinants of health and substance use. Our systematically developed lexicon provides a comprehensive knowledge-based resource covering a wide range of cannabis-related concepts for future NLP applications. Conclusion: We demonstrated that documentation of preoperative cannabis use status could be accurately identified using an NLP algorithm. This approach can be employed to identify comparison groups based on cannabis exposure for growing research efforts aiming to guide cannabis-related clinical practices and policies.Keywords
Funding Information
- NIH
- National Center for Advancing Translational Sciences (UL1TR001427)
This publication has 37 references indexed in Scilit:
- The impact of HIV diagnosis on length of hospital stay in New York City, NY, USAAIDS Care, 2018
- MIMIC-III, a freely accessible critical care databaseScientific Data, 2016
- Scikit-learnGetMobile: Mobile Computing and Communications, 2015
- The retrospective chart review: important methodological considerationsJournal of Educational Evaluation for Health Professions, 2013
- Caveats for the Use of Operational Electronic Health Record Data in Comparative Effectiveness ResearchMedical Care, 2013
- 2010 i2b2/VA challenge on concepts, assertions, and relations in clinical textJournal of the American Medical Informatics Association, 2011
- ConText: An algorithm for determining negation, experiencer, and temporal status from clinical reportsJournal of Biomedical Informatics, 2009
- L1-Regularization Path Algorithm for Generalized Linear ModelsJournal of the Royal Statistical Society Series B: Statistical Methodology, 2007
- The Unified Medical Language System (UMLS): integrating biomedical terminologyNucleic Acids Research, 2004
- Support-vector networksMachine Learning, 1995