Automating sedation state assessments using natural language processing
Authors: Conway Aaron , Li Jack , Rad Mohammad Goudarzi , Warren Blair , Mafeld Sebastian , Taati Babak 
Published: March 2024

AbstractIntroductionCommon goals for procedural sedation are to control pain and ensure the patient is not moving to an extent that is impeding safe progress or completion of the procedure. Clinicians perform regular assessments of the adequacy of procedural sedation in accordance with these goals to inform their decision‐making around sedation titration and also for documentation of the care provided. Natural language processing could be applied to real‐time transcriptions of audio recordings made during procedures in order to classify sedation states that involve movement and pain, which could then be integrated into clinical documentation systems. The aim of this study was to determine whether natural language processing algorithms will work with sufficient accuracy to detect sedation states during procedural sedation.DesignA prospective observational study was conducted.MethodsAudio recordings from consenting participants undergoing elective procedures performed in the interventional radiology suite at a large academic hospital were transcribed using an automated speech recognition model. Sentences of transcribed text were used to train and evaluate several different NLP pipelines for a text classification task. The NLP pipelines we evaluated included a simple Bag‐of‐Words (BOW) model, an ensemble architecture combining a linear BOW model and a “token‐to‐vector” (Tok2Vec) component, and a transformer‐based architecture using the RoBERTa pre‐trained model.ResultsA total of 15,936 sentences from transcriptions of 82 procedures was included in the analysis. The RoBERTa model achieved the highest performance among the three models with an area under the ROC curve (AUC‐ROC) of 0.97, an F1 score of 0.87, a precision of 0.86, and a recall of 0.89. The Ensemble model showed a similarly high AUC‐ROC of 0.96, but lower F1 score of 0.79, precision of 0.83, and recall of 0.77. The BOW approach achieved an AUC‐ROC of 0.97 and the F1 score was 0.7, precision was 0.83 and recall was 0.66.ConclusionThe transformer‐based architecture using the RoBERTa pre‐trained model achieved the best classification performance. Further research is required to confirm the that this natural language processing pipeline can accurately perform text classifications with real‐time audio data to allow for automated sedation state assessments.Clinical RelevanceAutomating sedation state assessments using natural language processing pipelines would allow for more timely documentation of the care received by sedated patients, and, at the same time, decrease documentation burden for clinicians. Downstream applications can also be generated from the classifications, including for example real‐time visualizations of sedation state, which may facilitate improved communication of the adequacy of the sedation between clinicians, who may be performing supervision remotely. Also, accumulation of sedation state assessments from multiple procedures may reveal insights into the efficacy of particular sedative medications or identify procedures where the current approach for sedation and analgesia is not optimal (i.e. a significant amount of time spent in “pain” or “movement” sedation states).