MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1111/jnu.12968

Медицинская библиотека · Journal of nursing scholarship : an official publication of Sigma Theta Tau International Honor Society of Nursing · 2024

Automating sedation state assessments using natural language processing.

Conway Aaron, Li Jack, Rad Mohammad Goudarzi, Warren Blair, Mafeld Sebastian, Taati Babak

СтатьяНаблюдательное исследованиеПоддержка исследования: вне правительства СШАПеревод пока не подготовлен

Аннотация

INTRODUCTION

Common 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.

DESIGN

A prospective observational study was conducted.

METHODS

Audio 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.

RESULTS

A 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.

CONCLUSION

The 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 RELEVANCE: Automating 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).

Другие публикации по теме

Natural Language ProcessingProspective StudiesProcedural SedationAlgorithms
Для цитирования: Conway Aaron, Li Jack, Rad Mohammad Goudarzi, Warren Blair, Mafeld Sebastian, Taati Babak. Automating sedation state assessments using natural language processing.. Journal of nursing scholarship : an official publication of Sigma Theta Tau International Honor Society of Nursing. 2024. DOI: 10.1111/jnu.12968.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by-nc-nd/4.0/ This is an open access article under the terms of the http://creativecommons.org/licenses/by-nc-nd/4.0/ License, which permits use and distribution in any medium, provided the original work is properly cited, the use is non‐commercial and no modifications or adaptations are made.

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

INTRODUCTION

Procedural sedation is a term that describes a very common practice where a combination of sedative and analgesic medications is administered to patients so they can tolerate medical procedures without the need for general anesthesia. It is commonly used for radiology, cardiac catheterization, and endoscopy procedures (Conway, Rolley, et al., 2014b ). The number, complexity, and diversity of procedures performed with procedural sedation is growing (Raeder, 2019 ).

Goals that are common across all procedural sedation encounters include controlling pain and discomfort as well as ensuring the patient is not moving to an extent that is impeding safe progress or completion of the procedure (Cravero et al., 2017 ). Clinicians perform regular assessments of the adequacy of procedural sedation to inform their decision‐making around sedation titration and also for documentation of the care provided. Although many sedation scales exist (Conway, Page, et al., 2014 ), the Pediatric Sedation State Scale was developed specifically to assign “states” that directly align with the goals of procedural sedation (Cravero et al., 2017 ). The scale is structured in such a way that the “ideal” sedation state is represented by a sedated patient who is not verbalizing or demonstrating any signs of pain and is not moving in a way that is impeding progress of the procedure. Several other categories are contained within the scale to represent “problem” states, such as when expressions of pain are recognized or when a patient is moving to an extent that is disrupting the procedure.

Sedation state assessments are typically performed by the clinician who is directly responsible for patient monitoring during the procedure, who is often a nurse (Conway, Rolley, et al., 2014a ). Sedation state assessments are not documented with a high degree of accuracy in clinical practice. This is because a clinician's first action in response to the recognition of a “problem” state, such as movement that requires immobilization during a procedure, is not to document the occurrence of this event, but rather it is to initiate interventions to rectify the situation. In addition, it is common during procedures for clinicians to perform duties other than sedation monitoring. As a result, there are times during procedures where detection and documentation of problem states, such as pain, is potentially delayed.

One potential solution is to automate the identification and documentation of “problem” states, such as pain or patient movement that is impeding progress of the procedure, using natural language processing (NLP). Due to the fact that procedural sedation does not totally depress consciousness, it is common for clinicians to provide verbal instructions to patients when movement that could potentially interfere with the procedure has been detected. For example, a typical phrase heard frequently during procedures performed with sedation in an interventional radiology department or cardiac cath lab when a patient reaches towards the sterile field is, “put your hand back down by your side”. Likewise, patients who are not deeply sedated may verbally report pain or discomfort. Clinician's also directly ask patients if they are experiencing pain during procedures if deep sedation is not used. As such, it is likely that NLP could be applied to real‐time transcriptions of audio recordings made during procedures in order to classify sedation states that involve movement and pain. These classifications could then be used to either automate or augment clinical documentation systems, as an application of ambient clinical intelligence. Ambient intelligence encompasses the integration of non‐contact sensors or wearable contact‐based devices within healthcare environments for data acquisition (Martinez‐Martin et al., 2021 ). This would allow clinicians to focus on the provision of care rather than documentation. In addition, other downstream applications could be developed, such as real‐time visualizations of sedation state assessments, which could facilitate improved communication of the adequacy of the sedation being provided between clinicians. It may be particularly useful as a communication tool for situations where a sedation practitioner is being supervised remotely, as is increasingly common (Dobson, 2018 ; Thomas et al., 2011 ).

Figure 1 provides an overview of how classifications of sentences from audio recordings during procedural sedation using natural language processing algorithms could be integrated into clinical documentation systems. As can be seen, some classifications could be automated completely if predictions are sufficiently accurate, while others could be presented to clinicians as a “prompt” to confirm or refute the occurrence of a “problem” state, such as pain or movement. Other “rules” can be implemented within the system to optimize performance of the sedation state assessments. For example, it is common during procedures that require radiological imaging to be performed with procedural sedation, and there are periods during such procedures where instructions are provided to patients to stop moving entirely for a brief period of time. Such instructions should not be labeled as a “problem” state because the patient's movement had not (yet) impeded the procedure. Fortunately, it is common for these non‐problematic movement instructions to be accompanied with a further instruction for the patient to hold their breath at the same time in order to improve the quality of the radiographic images. As such, a “rule” that can be implemented within the system is to only label a sentence into the problem state associated with moving if the immediately preceding sentence was not classified as containing an instruction to stop breathing. Other “rules” can be used to provide prompts to clinicians to confirm or refute the occurrence of a “problem” state if the predicted probability of a problem state, such as pain or movement, does not exceed a high threshold. The exact threshold could even be configurable by a user. With the ultimate end‐goal of developing such as system to automate documentation of sedation states using audio data recorded during procedure, the aim of this study was to determine if natural language processing algorithms will work with sufficient accuracy to detect sedation states including pain and patient movement that is interfering with the progress of procedures.

Иллюстрация — в первоисточнике ↗

FIGURE 1 Flow diagram of proposed automated sedation state assessment system using natural language processing for sentence classification.

METHODS

Design

A prospective observational study was conducted.

Participants

Patients undergoing elective procedures in the interventional radiology suite at a large academic hospital were recruited. Patients were eligible for inclusion if they were 18 years of age or older, were able to provide informed consent, and were undergoing a procedure that required procedural sedation.

Exclusion criteria

<18 years. Patients scheduled for a procedure that requires surgical draping, which would prevent the video camera from being attached in a position that can capture the patient's face. Unable to provide consent. Previous participation in the study. Undergoing an emergency procedure. Nurse in pre‐procedural bay considers that there is insufficient time prior to anticipated commencement of the procedure for participation in the study.

Data collection

Participants were asked to complete a demographic questionnaire with items for age, gender and race. The research assistant recorded procedural details including procedure type, duration and the total amounts of sedation and analgesia that was administered.

Audio recording

This analysis focused only on audio recordings made during procedures using a GoPro camera. A camera was used instead of a microphone because this analysis is part of a larger study investigating the utility of audio or video data. Preliminary results of the analyses undertaken for the visual component have been published elsewhere (Zarghami et al., 2023 ). The camera was positioned to face the participant by attaching it overhead to a stand used regularly during procedures for shielding surgical drapes from patients' faces. The distance from the camera to a participant's face varied due to positioning requirements related to the particular procedure and associated equipment being used, but was approximately 30–50 centimeters. Privacy precautions with respect to audiovisual data were implemented during the study period, including posting clearly visible signs warning of “recording in session”. Clinicians were also advised that they could request that the Research Assistant stop the recording at any time or to delete scenes if required. Audio recordings included both participant and health care provider (interventional radiologist, nurse, and technologist) speech.

Transcription

Background noise from audio recordings was first filtered out using the python library Demucs so that only vocal output was passed forward for transcription (Défossez, 2021 ; Rouard et al., 2023 ). Recordings for each participant were then transcribed using WhisperX, which is automated speech recognition software (Bain et al., 2023 ). This particular software extends the Whisper model developed by OpenAI (Radford et al., 2022 ) by providing fast and time‐accurate speech transcription. Among multiple available options balancing the speed/accuracy trade‐off, the most accurate large 1550 million parameter Whisper model was used (version large‐v3). Sentence‐level segments of text were produced. The Whisper model developed by OpenAI achieved state of the art accuracy on benchmark testing, with an average word error rate of 12.8% across multiple datasets, however there are a few limitations which are addressed by WhisperX, which is why it was used for this study (Radford et al., 2022 ). Transcriptions included not only participant but also health care provider sentences.

Annotation

Sentences were labeled into the categories of “pain”, “assessment”, “movement”, “breathing” and “other”. Definitions for each of the categories is provided in Table 1 . The “breathing” category was included because it was common for a proceduralist to provide an instruction to patients to both stop breathing and stop moving at the same time. These instructions are not “problem” states but rather general instructions, usually targeted at optimizing conditions for medical imaging at particular times during the procedure. Separate classification of breathing would permit reassignment of “movement” sentence classifications.

TABLE 1
Definitions of categories.

CategoryDescriptionExamples from the test set
MOVEMENTA specific instruction for a person to stay still or stop moving. It may be to stop moving a particular body part like hands or arms or legs, or just to stop moving and stay still in general“Try and hold still”, “Try not to move”, “Uh, not to move, please”, “Is that why you're shaking?”, “Straighten your legs out again first”
BREATHINGA specific instruction to either stop breathing or start breathing. (Had to make this extra category because a lot of the time the proceduralist will say stop moving and stop breathing at the same time, but this is not“Take a deep breath and hold it”
ASSESSA question asking a person how they are feeling. Like if they are in any pain or discomfort“Where's your pain, sir?”, “A lot of pain?”, “You having some pain?”, “You okay?”, “Are you okay?”, “Felt a little nauseous?”
PAINA person describing their pain or discomfort“It's stinging a little bit”, “We're doing the burning part now, that's why you're having the pain”, “It's hurting”
OTHEREverything else that does not fall into the other categories“I'm going to try to pull up here a little bit”, “Feel how it stretches”, “Let's just stop”

We used few shot in‐context learning with the GPT‐3.5 model using the API from OpenAI to label each of the transcribed sentences as an initial step in the annotation process. The prompt provided to the model for text classification is provided in the Supplementary Information . Two members of the research team then independently annotated each sentence by either accepting or re‐assigning the labels produced by the large language model. Prodigy annotation software was used to facilitate this process (Montani & Honnibal, 2022 ). The two researchers were blinded to each other's annotations. Disagreements were resolved by discussion.

Natural language processing

We used the spaCy natural language processing (NLP) python library (Honnibal et al., 2020 ). A total of 20% of the data was set aside for the testing set, with the remaining data split in a further 80:20 ratio for training and validation. As there were multiple sentences annotated for each procedure, the GroupShuffleSplit function from the Sci‐kit learn python library was used to ensure that sentences from an individual procedure were only included in either the training, validation or test set. Several different NLP pipelines were evaluated, using default hyperparameters configured by spaCy, which have been tested rigorously for text classification tasks (Honnibal et al., 2020 ). Configuration settings for each of the pipelines are provided in the Supplementary Information document.

Preprocessing for all pipelines involved tokenization, which in the case of this analysis, involved splitting a sentence of speech recorded during a procedure into meaningful segments, called tokens. For the transformer pipeline, as per the default process when using transformer pipelines in spaCy, the AutoTokenizer from the Transformers python library was used to tokenize text inputs according to the rules and vocabulary specific to the chosen pre‐trained model. We used the pre‐trained RoBERTa model in that pipeline, meaning that tokenization was performed using a byte version of Byte‐Pair Encoding (BPE) and a vocabulary size of 50,000 (Liu et al., 2019 ). For the other pipelines, the default tokenizer from spaCy was used. This tokenizer applies rules specific to the language of the text by first splitting on whitespace characters and then checking each created segment separately to determine if an exception rule should be applied (e.g. “can't” should be two tokens but N.Y. that indicates New York shouldn't be) and if a prefix (e.g. characters like $), suffix (e.g. characters like km to indicate kilometer) or infix (e.g. characters like – in GPT‐4) should be considered as a separate token (Honnibal et al., 2020 ). This process permits creation of complex, nested tokens that captures abbreviations and punctuation.

The simplest pipeline we evaluated included a text categorization model based on the Bag‐of‐Words (BOW) approach. BOW vectors representing the input sentences produced by an n‐gram with length set to 1 (unigram) was the initial set of features fed into a layer that applied a linear transformation. This linear layer projects the high‐dimensional sparse input space (the BOW vectors) into a different space with lower dimensionality. The linear transformation involves multiplying the input features (the BOW vectors) by a weight matrix. This transformation helps in learning the relationship between the input features (n‐grams) and the target classes (labels of sedation states) during the training process. The weights of the linear layer are learned during the training process. After the linear transformation, the resulting vectors are passed through an output layer (softmax) for multi‐class classification. During training, the parameters of the linear layer and the output layer were optimized using backpropagation. The Adam optimizer with a specified learning rate of 0.001 and weight decay was used, along with dropout regularization and gradient accumulation (Kingma & Ba, 2014 ). The training process incorporated a batch size of 1000, and the model was evaluated every 200 steps. The training batcher dynamically adjusted batch sizes based on the number of words in processed text, employing a compounding schedule. A callback function was implemented to save the model that performed best, in terms of the F1 score, at each time‐point with early stopping used to cease training when evaluation performance had not improved after 1600 steps.

A further NLP pipeline we evaluated was an ensemble architecture, combining a linear BOW model and a “token‐to‐vector” (Tok2Vec) component. The Tok2Vec component is a neural network model that incorporated a MultiHashEmbed model for token embedding, which is a more memory efficient alternative to other embeddings (Miranda et al., 2022 ). Further, a MaxoutWindowEncoder was employed to encode token vectors with a maxout mechanism, enhancing the model's ability to capture complex non‐linear relationships within the data (Goodfellow et al., 2013 ). In this ensemble, the outputs of both the linear BOW model and the Tok2Vec models are concatenated and then the combined representation is then passed through an output layer (softmax) for classification. The Adam optimizer with a specified learning rate of 0.001 and weight decay was used. A callback function was implemented to save the model that performed best, in terms of the F1 score, at each time‐point with early stopping used to cease training when evaluation performance had not improved after 1600 steps.

The most complex and compute‐intensive NLP pipeline we tested consisted of a transformer‐based architecture using the RoBERTa pre‐trained model (Liu et al., 2019 ). This model was pre‐trained on a large amount of labeled english language data. The text categorization component was integrated with a convolutional neural network (CNN) classifier. Training was conducted with an Adam optimizer and a learning rate schedule involving warm‐up and linear decay. The training process incorporated a batch size of 256, and the model was evaluated every 10 steps. The dropout rate was set to 0.1, which was used to add regularization to the model. We adopted a batch‐by‐sequence strategy for processing training examples. In addition, the training optimizer utilized L2 weight decay with a coefficient of 0.01, and a gradient clip of 1.0 was applied. The learning rate was scheduled with a warm‐up period of 250 steps and a total of 20,000 steps, starting from an initial rate of 0.00005. A callback function was implemented to save the model that performed best, in terms of the F1 score, at each time‐point with early stopping used to cease training when evaluation performance had not improved after 1000 steps.

Data analysis

The best model identified from training each of the evaluated NLP pipelines was used to create predictions of labels for all sentences contained within the testing dataset. The area under the receiver operating characteristic curve (AUROC) was used to assess the discriminatory performance of the pipelines. The AUROC is a performance measurement for classification problems at various threshold settings. It represents the likelihood of the model distinguishing labels from different classes. An AUROC score of 1 signifies that the model has perfect discriminatory ability, while a score of 0.5 implies that the model has no discriminatory ability. Model accuracy was also assessed using precision, recall and the F1 score both overall, as well as for each of the individual categories. The discrimination threshold was set to 0.5 for calculation of these metric scores.

RESULTS

Description of the participant characteristics

There were 119 patients screened for eligibility. A small number ( n = 4) were ineligible and 30 patients declined participation. Of the 85 (73%) patients who agreed to participate, three were excluded due to changes to the planned procedure (2 would not receive sedation and 1 required prone positioning, which precluded use of the auidiovisual recording). A total of 82 participants were included in this analysis. A summary of participant characteristics is provided in Table 2 . Most participants were male (68%) and the median age was 68 (interquartile range 61 to 74). The majority of participants reported their race to be White (European descent). Consistent with the setting, there was a variety of procedures performed among the participants included in this analysis. The largest category of procedure were peripheral vascular angiography or angioplasty (39%).

TABLE 2
Participant characteristics.

CharacteristicN = 82
Age68 (61, 74)
Self‐reported gender
Female26 (32%)
Male56 (68%)
Self‐reported race category
Black2 (2.4%)
East Asia8 (9.8%)
Indigenous1 (1.2%)
Latino4 (4.9%)
Middle Eastern2 (2.4%)
South Asian2 (2.4%)
White63 (77%)
Charlson Comorbidity Index5.00 (4.00, 6.75)
American Society of Anesthesiology Physiological Classification Status
I1 (1.3%)
II54 (71%)
III21 (28%)
Procedure type
Adrenal venous sampling2 (2.4%)
Dialysis line insertion1 (1.2%)
Embolization9 (11%)
Fistula insertion or graft1 (1.2%)
Gastric tube insertion6 (7.3%)
Gastrostomy4 (4.9%)
Nephrostomy1 (1.2%)
Other vascular procedure32 (39%)
Peritoneal dialysis procedure1 (1.2%)
Radioembolization7 (8.5%)
Radiofrequency ablation14 (17%)
Tenckhoff insertion3 (3.7%)
Transjugular biopsy1 (1.2%)

Description of the annotated data

A total of 10,434 sentences were included in the training set, 3375 sentences were included in the validation set and 2127 sentences were included in the test set. Figure 2 displays a summary of the distribution of sedation state labels across the full and partitioned datasets. As can be seen the distribution of sedation state labels was mostly similar between the training and test sets, but higher numbers of movement labels for sentences contained within the validation set. This discrepancy likely arises from a particular procedure with a disproportionately high amount of movement being assigned to the validation partition.

Иллюстрация — в первоисточнике ↗

FIGURE 2 Distribution of labels in annotated dataset.

Text classification

Figure 3 displays the overall results for text classification produced by three NLP pipelines. The Bag‐of‐Words (BOW) approach achieved an area under the ROC curve (AUC‐ROC) of 0.97, an F1 score of 0.7, a precision of 0.83, and a recall of 0.66. The second pipeline, an ensemble architecture combining a linear BOW model and a “token‐to‐vector” (Tok2Vec) component, showed improved performance with an AUC‐ROC of 0.96, an F1 score of 0.79, a precision of 0.83, and a recall of 0.77. The most complex pipeline, a transformer‐based architecture using the RoBERTa pre‐trained model, achieved the highest performance among the three models with an AUC‐ROC of 0.97, an F1 score of 0.87, a precision of 0.86, and a recall of 0.89. The classifications made by the GPT 3.5 model were the least accurate, with an F1 score of 0.65, a precision of 0.57, and a recall of 0.93.

Иллюстрация — в первоисточнике ↗

FIGURE 3 Results of NLP pipelines on the test set.

The results of the text classification analysis for each label are provided in Figure 4 . All models achieved highly accurate predictions of the “Other” label. Prediction accuracy was also mostly comparable across models for the “Breathing” label. The RoBERTa model consistently exhibited superior performance compared to the Ensemble and Bag‐of‐Words (BOW) models for the other labels. The RoBERTa model achieved an F1 score of 0.81, a precision of 0.85, and a recall of 0.77 for the “Pain” label. For the “Movement” label, predictions from the RoBERTa model on the test set produced and an F1 score of 0.79, a precision of 0.82, and a recall of 0.78. These results were superior to the other models for these labels. Sentences with the ground truth label of “Assessment” in the test set were also most accurately predicted by the RoBERTa model, with an F1 score of 0.81, precision of 0.7 and recall of 0.95.

Иллюстрация — в первоисточнике ↗

FIGURE 4 Results of NLP pipelines for each label.

DISCUSSION

We evaluated three different NLP pipelines for text classification using more than 15,000 transcribed sentences from 82 audio recordings of interventional radiology procedures performed with procedural sedation. The text classifications from the NLP pipeline could be operationalized into clinical practice as a tool to automate and augment clinician's documentation of sedation state assessments following the flow diagram presented in Figure 1 . The primary result from the analyses was that the NLP pipeline with the transformer model outperformed the other models across important metrics of precision, recall and the F1 score. The transformer‐based pipeline was particularly effective at detecting the “Pain”, “Movement” and “Assessment” labels in comparison with the other pipelines, which are clinically important for assessing and documenting the adequacy of sedation. This result was to be expected, considering that transformer models outperform other NLP pipelines when sufficient data is available, even in the clinical domain (Yang et al., 2023 ).

Of note, all the NLP pipelines we evaluated produced very high area under the receiver operating characteristics curve (AUROC) scores. The AUROC measures the overall ability of the model to distinguish between classes, but it doesn't take into account the specific threshold used to classify observations. Therefore, even with a high AUROC score, a model might have lower precision, recall, or F1 scores if the chosen threshold doesn't optimally separate the classes. This could explain why the precision, recall, and F1 scores are not as high as the AUROC scores for these models. Inspection of the other metrics demonstrated that the transformer‐based architecture using the RoBERTa pre‐trained model achieved the best classification performance at the chosen discrimination threshold of 0.5. As such, it it unlikely that more simple models will perform adequately if used to assist documentation of sedation states in clinical practice. Operationalizion of a transformer‐based NLP pipeline into automated clinical documentation systems will require consideration of the computing requirements associated with using these larger and more complex language models.

This study demonstrates the usefulness of using large language models to assist with development of NLP pipelines for text classification. It should be noted, though, that the large language model GPT 3.5 seems only capable in facilitating the annotation process as opposed to being a useful approach for text classification within an automated sedation state assessment system itself. Text classification is a predictive, rather than generative task. Although results may differ as newer and larger models are developed, a large and comprehensive analysis of the performance of GPT‐3 and 3.5 models for text classification revealed that accuracy was far lower than what can be achieved using more standard natural language processing approaches, such as those we employed in our analyses (Ye et al., 2023 ). Another comparison of GPT‐3 and 3.5 models with other natural language processing approaches for text classification demonstrated that the GPT models were not as accurate as using a RoBERTa model (Yu et al., 2023 ). Our results showing that the GPT 3.5 model was not as accurate at predicting labels associated with sedation state assessments as all the other NLP pipelines we evaluated is in line with these previous studies.

It should be noted that although the NLP pipelines classified the transcribed text with relatively high accuracy, per‐label metrics for precision and recall indicate that not all predictions were correct. For example, the transformer‐based pipeline achieved a precision of 0.85 and a recall of 0.77 for the “Pain” label. This means that about 1 in every 6 sentences classified as “Pain” were not actually “Pain” sentences, and 1 in every 4 of the “Pain” sentences were classified incorrectly as something other than pain. These error rates signal that any downstream applications of the NLP pipelines evaluated in this study should be designed to easily allow for clinicians to correct classification of “problem” states, such as pain or movement. Additionally, a real‐world deployment may consider averaging responses across several continuous states during real‐time recording. The present study is preliminary and considers each sentence separately as opposed to in context, which may improve the overall performance.

Automating sedation state assessments using natural language processing pipelines would allow for more timely documentation of the care received by sedated patients because a clinician's usual first action in response to “problem” states is to rectify the situation. This is particularly true for problem states related to movement, where a clinician”“s first action is to ensure patient safety and minimize risk of additional disruption to procedures. Documentation of the occurrence of the “problem” state is often delayed as a result. With accurate classification of real‐time audio data, a timestamp could be automatically generated whenever a “problem” state is detected.

Comprehensive user‐centered design research that engages nurses is required to determine the optimal way to implement a real‐time automated sedation state assessment system into clinical practice (Risling & Risling, 2020 ). These approaches can be used to elicit a diverse range of user preferences for how the automated system should be configured so that clinicians can interact with it using an interface that is intuitive and ultimately results in an overall reduction in documentation burden. A further option for consideration that has implications for the design of the system are decisions about the discrimination threshold for classification of sentences. Altering the threshold in a way that increases recall would decrease the risk that problem states are missed. This course of action would consequently reduce precision, but such a consequence could be counteracted by requiring each prediction of a problem state to be confirmed by the clinician rather than completely automating the documentation process. Operationalizing the optimal NLP pipeline into the automated sedation state assessment system with consideration of all these potential options will require further evaluation of clinician's preferences for receiving prompts to confirm or refute the occurrence of “problem” states. Some clinicians may prefer to receive prompts regardless of the “confidence” of the model's predictions and others. As such, additional research is required to investigate the feasibility and impact on clinical work and documentation burden of implementing such a system into clinical practice.

The diversity in how individuals express pain and discomfort, which is influenced by factors such as gender, age, and cultural background, could potentially impact the performance of our NLP pipeline. Women might express pain differently than men (Jaworska & Ryan, 2018 ), and younger adults might express discomfort differently than older adults (Pate et al., 2019 ). Cultural nuances could also introduce variability in the language used to describe pain (Lor & Koleck, 2022 ). Therefore, it is crucial to consider these factors in future research to ensure the generalizability of our NLP model. Further studies should aim to include a more diverse demographic sample and investigate potential differences in pain language across these groups. This could lead to the development of more robust and inclusive system that uses NLP for real‐time sedation state assessments.

Limitations

The NLP pipelines evaluated in this study used transcribed audio recordings with the Whisper model (Radford et al., 2022 ). Granular assessment of the Whisper generated transcriptions was not performed, which may somewhat limit model performance due to incorrect transcriptions. Real‐time performance of the text classifications may differ if a different transcription approach is used, which is less accurate. Solutions exist to transcribe speech in real‐time, such as the NVIDIA NeMo framework (Kuchaiev et al., 2019 ). Additional research is required to evaluate the performance of the NLP pipelines using real‐time transcriptions.

It should be noted that this study was not designed to determine the accuracy of completely automating completion of the Pediatric Sedation State Scale or any other specific sedation scale (Cravero et al., 2017 ). Rather, we used the underlying intentions of sedation state assessment being aligned with goals of minimizing pain and movement to guide our text classification approaches, which are common to all procedural sedation encounters, not just those performed for the pediatric population.

It is possible that other BERT‐based transformer models that were developed specifically for clinical documentation, such as ClinicalBERT, could have yielded similar or even improved accuracy for the text classification task we evaluated (Alsentzer et al., 2019 ). We chose not to use a clinical model because the language used in interactions between patients and clinician's during procedural sedation related to sedation state assessment is not specific to the clinical domain.

Although we annotated a large number of sentences to include in this analysis, these were contributed by a relatively small number of patients in an English‐speaking population undergoing procedures. We did not collect information on each participant's native or usually spoken language. It is possible that participant's may have uttered pain‐related words that were not transcribed by the English language Whisper model that we used. Further research with larger sample sizes would increase confidence in the accuracy of the NLP pipelines we evaluated in this study. Also, results may differ in other populations and settings. Participants in the study were patients undergoing procedures in a Interventional Radiology department. In most cases only small doses of midazolam and fentanyl were used for sedation, administered by intravenous bolus. Other procedural sedation contexts may use different doses of sedation and the types of medications, and, correspondingly, interactions between patients and clinician's may differ depending on the degree to which patients become sedated during their procedure. Culture and ethnicity influence how people report their pain, so it is unclear if different results would be observed in populations different to the one in which this study was conducted (Peacock & Patel, 2008 ). The study was conducted in a single center, which may limit the generalizability of the results.

CONCLUSION

In this analysis we demonstrated that natural language processing algorithms can be used to classify sentences into sedation states including pain and patient movement that is interfering with the progress of procedures. The transformer‐based architecture using the RoBERTa pre‐trained model achieved the best classification performance. Further research is required to evaluate the performance of the NLP pipelines using real‐time transcriptions.

CLINICAL RESOURCES

Developments in procedural sedation for adults https://www.bjaed.org/article/S2058‐5349(22)00037‐3/fulltext#secsectitle0125 . How Artificial Intelligence and Machine Learning Is Impacting Nursing https://www.ausmed.com.au/publish/organisations/guides/ai‐ml‐nursing‐technology . Breaking Down 3 Types of Healthcare Natural Language Processing https://healthitanalytics.com/features/breaking‐down‐3‐types‐of‐healthcare‐natural‐language‐processing .

CONFLICT OF INTEREST STATEMENT

The authors declare that there is no conflict of interest.

Supporting information

Data S1.

ACKNOWLEDGMENTS

This work was funded by a Catalyst Grant from the University of Toronto Data Sciences Institute (DSI) and the University of Toronto Temerty Centre for AI Research and Education in Medicine (T‐CAIREM) at the University of Toronto. Open access publishing facilitated by Queensland University of Technology, as part of the Wiley ‐ Queensland University of Technology agreement via the Council of Australian University Librarians.

DATA AVAILABILITY STATEMENT

Research data are not shared.

REFERENCES

Alsentzer , E. , Murphy , J. R. , Boag , W. , Weng , W.‐H. , Jin , D. , Naumann , T. , & McDermott , M. ( 2019 ). Publicly available clinical BERT embeddings . arXiv Preprint arXiv:1904.03323 .

Bain , M. , Huh , J. , Han , T. , & Zisserman , A. ( 2023 ). WhisperX: Time‐accurate speech transcription of long‐form audio . INTERSPEECH 2023 .

Conway , A. , Page , K. , Rolley , J. X. , & Worrall‐Carter , L. ( 2014 ). A review of sedation scales for the cardiac catheterization laboratory . Journal of Perianesthesia Nursing , 29 ( 3 ), 191 – 212 . 24856336 10.1016/j.jopan.2013.05.017

Conway , A. , Rolley , J. , Page , K. , & Fulbrook , P. ( 2014a ). Issues and challenges associated with nurse‐administered procedural sedation and analgesia in the cardiac catheterisation laboratory: A qualitative study . Journal of Clinical Nursing , 23 ( 3–4 ), 374 – 384 . 23451942 10.1111/jocn.12147

Conway , A. , Rolley , J. , Page , K. , & Fulbrook , P. ( 2014b ). Trends in nurse‐administered procedural sedation and analgesia across cardiac catheterisation laboratories in Australia and New Zealand: Results of an electronic survey . Australian Critical Care , 27 ( 1 ), 4 – 10 . 10.1016/j.aucc.2013.05.003 23850189

Cravero , J. P. , Askins , N. , Sriswasdi , P. , Tsze , D. S. , Zurakowski , D. , & Sinnott , S. ( 2017 ). Validation of the pediatric sedation state scale . Pediatrics , 139 ( 5 ), e20162897 . 28557732 10.1542/peds.2016-2897 PMC5404726

Défossez , A. ( 2021 ). Hybrid spectrogram and waveform source separation . Proceedings of the ISMIR 2021 Workshop on Music Source Separation .

Dobson , G. R. ( 2018 ). Special announcement—Procedural sedation: A position paper of the canadian anesthesiologists' society . Canadian Journal of Anesthesia , 65 ( 12 ), 1279 – 1282 . 30276704 10.1007/s12630-018-1231-y

Goodfellow , I. , Warde‐Farley , D. , Mirza , M. , Courville , A. , & Bengio , Y. ( 2013 ). Maxout networks . International Conference on Machine Learning , 1319–1327.

Honnibal , M. , Montani , I. , Van Landeghem , S. , & Boyd , A. ( 2020 ). spaCy: Industrial‐strength natural language processing in python [Article] . 10.5281/zenodo.1212303

Jaworska , S. , & Ryan , K. ( 2018 ). Gender and the language of pain in chronic and terminal illness: A corpus‐based discourse analysis of patients' narratives . Social Science & Medicine , 215 , 107 – 114 . 30219748 10.1016/j.socscimed.2018.09.002

Kingma , D. P. , & Ba , J. ( 2014 ). Adam: A method for stochastic optimization . arXiv Preprint arXiv:1412.6980 .

Kuchaiev , O. , Li , J. , Nguyen , H. , Hrinchuk , O. , Leary , R. , Ginsburg , B. , Kriman , S. , Beliaev , S. , Lavrukhin , V. , Cook , J. , Castonguay , P. , Popova , M. , Huang , J. , & Cohen , J. M. ( 2019 ). Nemo: A toolkit for building ai applications using neural modules . arXiv Preprint arXiv:1909.09577 .

Liu , Y. , Ott , M. , Goyal , N. , Du , J. , Joshi , M. , Chen , D. , Levy , O. , Lewis , M. , Zettlemoyer , L. , & Stoyanov , V. ( 2019 ). RoBERTa: A robustly optimized BERT pretraining approach . CoRR, abs/1907.11692 . http://arxiv.org/abs/1907.11692

Lor , M. , & Koleck , T. A. ( 2022 ). Patient race, ethnicity, language, and pain severity in primary care: A retrospective electronic health record study . Pain Management Nursing , 23 ( 4 ), 385 – 390 . 35260338 10.1016/j.pmn.2022.01.007 PMC9308623

Martinez‐Martin , N. , Luo , Z. , Kaushal , A. , Adeli , E. , Haque , A. , Kelly , S. S. , Wieten , S. , Cho , M. K. , Magnus , D. , Fei‐Fei , L. , Schulman , K. , & Milstein , A. ( 2021 ). Ethical issues in using ambient intelligence in health‐care settings . The Lancet Digital Health , 3 ( 2 ), e115 – e123 . 33358138 10.1016/S2589-7500(20)30275-2 PMC8310737

Miranda , L. J. , Kádár , Á. , Boyd , A. , Van Landeghem , S. , Søgaard , A. , & Honnibal , M. ( 2022 ). Multi hash embeddings in spaCy . arXiv Preprint arXiv:2212.09255 .

Montani , I. , & Honnibal , M. ( 2022 ). Prodigy: A modern and scriptable annotation tool for creating training data for machine learning models . Prodigy . Explosion. https://prodi.gy/

Pate , J. W. , Noblet , T. , Hush , J. M. , Hancock , M. J. , Sandells , R. , Pounder , M. , & Pacey , V. ( 2019 ). Exploring the concept of pain of australian children with and without pain: Qualitative study . BMJ Open , 9 ( 10 ), e033199 . 10.1136/bmjopen-2019-033199 PMC6830706 31662406

Peacock , S. , & Patel , S. ( 2008 ). Cultural influences on pain . Reviews in Pain , 1 ( 2 ), 6 – 9 . 26525084 10.1177/204946370800100203 PMC4589930

Radford , A. , Kim , J. W. , Xu , T. , Brockman , G. , McLeavey , C. , & Sutskever , I. ( 2022 ). Robust speech recognition via large‐scale weak supervision . arXiv 10.48550/ARXIV.2212.04356

Raeder , J. ( 2019 ). Procedural sedation in ambulatory anaesthesia: What's new? Current Opinion in Anesthesiology , 32 ( 6 ), 743 – 748 . 31503035 10.1097/ACO.0000000000000792

Risling , T. L. , & Risling , D. E. ( 2020 ). Advancing nursing participation in user‐centred design . Journal of Research in Nursing , 25 ( 3 ), 226 – 238 . 34394630 10.1177/1744987120913590 PMC7932478

Rouard , S. , Massa , F. , & Défossez , A. ( 2023 ). Hybrid transformers for music source separation . ICASSP 2023 ‐ 2023 IEEE International Conference on Accousstics, Speech and Signal Processing (ICASSP), Rhodes Island, Greece, 2023 , 1 – 5 .

Thomas , J. J. , Mason , K. P. , Mason , K. P. , & Mason , K. P. ( 2011 ). The anesthesia directed sedation service: Models, protocols, and challenges . In Pediatric sedation outside of the operating room: A multispecialty international collaboration (pp. 179 – 197 ). Springer .

Yang , E. , Li , M. D. , Raghavan , S. , Deng , F. , Lang , M. , Succi , M. D. , Huang , A. J. , & Kalpathy‐Cramer , J. ( 2023 ). Transformer versus traditional natural language processing: How much data is enough for automated radiology report classification? The British Journal of Radiology , 96 , 20220769 . 37162253 10.1259/bjr.20220769 PMC10461267

Ye , J. , Chen , X. , Xu , N. , Zu , C. , Shao , Z. , Liu , S. , Cui , Y. , Zhou , Z. , Gong , C. , Shen , Y. , et al. ( 2023 ). A comprehensive capability analysis of gpt‐3 and gpt‐3.5 series models . arXiv Preprint arXiv:2303.10420 .

Yu , H. , Yang , Z. , Pelrine , K. , Godbout , J. F. , & Rabbany , R. ( 2023 ). Open, closed, or small language models for text classification? arXiv Preprint arXiv:2308.10092 .

Zarghami , Y. , Mafeld , S. , Conway , A. , & Taati , B. ( 2023 ). Pain detection in masked faces during procedural sedation . 2023 IEEE 17th International Conference on Automatic Face and Gesture Recognition (FG) , 1–6.

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.