- 1Neurotechnology Group, Technische Universität Berlin, Berlin, Germany
- 2Department of Anaesthesia, Hospital of Nykobing, University of Southern Denmark, Odense, Denmark
- 3Department of Anaesthesiology and Operative Intensive Care Medicine, Charité—Universitätsmedizin Berlin, Berlin, Germany
Objective: In older patients receiving general anesthesia, postoperative delirium (POD) is the most frequent form of cerebral dysfunction. Early identification of patients at higher risk to develop POD could provide the opportunity to adapt intraoperative and postoperative therapy. We, therefore, propose a machine learning approach to predict the risk of POD in elderly patients, using routine intraoperative electroencephalography (EEG) and clinical data that are readily available in the operating room.
Methods: We conducted a retrospective analysis of the data of a single-center study at the Charité-Universitätsmedizin Berlin, Department of Anesthesiology [ISRCTN 36437985], including 1,277 patients, older than 60 years with planned surgery and general anesthesia. To deal with the class imbalance, we used balanced ensemble methods, specifically Bagging and Random Forests and as a performance measure, the area under the ROC curve (AUC-ROC). We trained our models including basic clinical parameters and intraoperative EEG features in particular classical spectral and burst suppression signatures as well as multi-band covariance matrices, which were classified, taking advantage of the geometry of a Riemannian manifold. The models were validated with 10 repeats of a 10-fold cross-validation.
Results: Including EEG data in the classification resulted in a robust and reliable risk evaluation for POD. The clinical parameters alone achieved an AUC-ROC score of 0.75. Including EEG signatures improved the classification when the patients were grouped by anesthetic agents and evaluated separately for each group. The spectral features alone showed an AUC-ROC score of 0.66; the covariance features showed an AUC-ROC score of 0.68. The AUC-ROC scores of EEG features relative to patient data differed by anesthetic group. The best performance was reached, combining both the EEG features and the clinical parameters. Overall, the AUC-ROC score was 0.77, for patients receiving Propofol it was 0.78, for those receiving Sevoflurane it was 0.8 and for those receiving Desflurane 0.73. Applying the trained prediction model to an independent data set of a different clinical study confirmed these results for the combined classification, while the classifier on clinical parameters alone did not generalize.
Conclusion: A machine learning approach combining intraoperative frontal EEG signatures with clinical parameters could be an easily applicable tool to early identify patients at risk to develop POD.
1. Introduction
Postoperative delirium (POD) is a common complication and the most frequent cerebral dysfunction after surgery requiring general anesthesia among elderly patients. It manifests as a disturbance of consciousness, attention, perception, memory, and cognition as well as a disruption of the sleep-wake rhythm and can lead to adverse long-term complications such as increased mortality, prolonged hospital stays, and persisting cognitive impairments (Aldecoa et al., 2017). Even though it is such a common condition with severe complications, it is often overlooked. This is mainly caused by the predominant hypoactive motor aspect of POD in older patients, hence not being noticed by physicians and nurses on a busy peripheral ward. Early identification of patients at high risk for POD could significantly improve the clinical routine in postoperative care. Based on a reliable prediction tool, patients with higher risks could be the focus of monitoring and prevention, decreasing the daily workload to those patients of concern.
Predisposing risk factors for POD have been identified as frailty, aging, lower cognitive abilities, and preexisting co-morbidities (Aldecoa et al., 2017; Culley et al., 2017). In addition to these classical risk factors, several machine learning approaches have been developed for predicting the risk of POD with the goal of early diagnosis and prevention during or directly after surgery. These approaches rely on different databases, such as electronic health record data (Wang et al., 2020; Bishara et al., 2022) or MRI data (Kyeong et al., 2018) and often focus on one type of surgery (Kyeong et al., 2018; Wang et al., 2020). EEG data has been used as well (van Sleuwen et al., 2022; Tesh et al., 2022), however, not to predict POD specifically, but to predict clinical outcomes and the severity of delirium in general for diagnosis and treatment once patients might have developed delirium on the ward.
There have not been machine learning models using routine intraoperative EEG monitoring data, even though EEG has shown characteristic signatures during surgery connected to the classical risk factors. On the one hand, preexisting cognitive dysfunction in older patients is associated with reduced intraoperative alpha-band power (Gutierrez et al., 2019; Koch et al., 2019). On the other hand, patients at higher age more readily present intraoperative burst suppression activity and show reduced intraoperative alpha-band power (Purdon et al., 2015). Both of these are associated with a higher risk to develop POD (Soehle et al., 2015; Fritz et al., 2016; Koch et al., 2021).
In the present study, we use the raw EEG files from the BIS Neuromonitor (BISTMMedtronic). We complement the EEG data with clinical patient data that is routinely available in the operating room. Apart from the medication directly connected to the surgery, we only take the American Society of Anesthesiology (ASA) score, the age of the patient, and the duration of the operation into account. On this basis, we aim to develop a robust machine learning model to predict POD, showing that incorporating EEG signatures improves the risk evaluation.
2. Methods
To predict the risk of developing POD, we retrospectively analyzed the intraoperative raw EEG files from the single-center study SuDoCo at the Charité-Universitätsmedizin Berlin, Department of Anesthesiology [ISRCTN 36437985] (Radtke et al., 2013). The study included 1,277 patients and POD was diagnosed based on the Diagnostic and Statistical Manual of Mental Disorders (DSM IV) assessments twice daily starting in the recovery room until the evening of postoperative day 7. The patients were labeled as POD patients if POD was diagnosed in at least one of the assessments. To ensure patients had no delirium before the surgery, they underwent Mini-Mental State Examination, and patients who had scores <24 were excluded from the overall study. The anesthetic procedure was not controlled by the study regime, and anesthesiologists conducted general anesthesia according to the standard operating procedures of the Charité-Universitätsmedizin Berlin.
Intraoperative frontal EEG channels (Fp1, Fp2, F7, and F8) used by the BIS monitor were recorded (Radtke et al., 2013). Since we used only the raw EEG recordings, there were no event markers in the EEG. Our analysis does not refer to any processed EEG parameters given in the BIS monitor by any inbuilt algorithms. The recordings vary in length, 254 of the recordings were partial recordings of the operation. We excluded any patient with missing EEG recordings or that had <20 min of intraoperative EEG data left after preprocessing, which will be discussed in the next subsection. Additionally, we excluded patients with missing clinical data.
During preprocessing, we extracted the burst suppression features for each patient from the EEG data (see Section 2.1), as well as two time-dependent features: the spectral features and the covariance features (explained in detail in Section 2.2.1). The latter two represent a sequence of 2 min time frames of the EEG data. The spectral features contain the frequency spectrum for each time frame, while the covariance features contain multi-band covariance matrices for each time frame. The two time-dependent features are classified separately. For some steps in the preprocessing (Section 2.1) and the classification of the covariance features, we use the Riemannian framework (Barachant et al., 2013; Congedo et al., 2017; Congedo, 2018; Barthélemy et al., 2019). All the data analysis is performed in the programming language Julia, importing the python packages imbalanced-learn (Lemaître et al., 2017) and scikit-learn (Pedregosa et al., 2011).
The burst suppression features were added to the clinical patient data and then classified. The following features of the clinical patient data were used: the administered anesthetic agents (categorical), whether a patient received benzodiazepine (binary), the age (numeric), the length of the operation (numeric), and the ASA score (numeric). The three classifiers corresponding to the categories of features were then combined into a final risk evaluation (Figure 1).
Figure 1. Overview of the used features and classifiers. For each patient, there are two general types of data: the EEG data and the patient data. From the EEG data, three types of features [time-dependent: covariance and spectrum, numerical: burst suppression ratio (BSR), and longest suppression phase (LSP)] are extracted (Section 2.1). From the patient data, the data easily available in the operating room is used. These features are classified by different classifiers (covariance, spectrum, patient+burstsupp, combined risk evaluation, and patient data classifier; Section 2.2) and then evaluated and compared (Section 3).
2.1. EEG data preprocessing and feature extraction
We focus on two main types of artifacts: high amplitude artifacts and frequency artifacts. For the first category, we use an amplitude filter, excluding high amplitude artifacts. Since we have different subjects and settings under which the data was recorded, the amplitudes scale differently in different recordings. Hence, we do not define a fixed threshold to exclude the amplitude artifacts but use the 99% quantile of the amplitudes for each patient. The data is re-referenced by the mean (common average reference). Afterward, we apply a bandpass filter (0.3–50 Hz) for the frequency artifacts.
After applying the two filters, the data is automatically segmented (see Supplementary Section S1.1). The segmentation takes the amplitude artifacts and potential edge artifacts introduced by the band-pass filters into account, leaving us with a series of separated time segments between artifacts. Any segments smaller than 1s are removed from the series to ensure an accurate estimation of the spectrum and covariance matrix for each segment.
After z-scoring the data, the estimation of the spectral density or frequency spectrum is done using the Welch method (Welch, 1967; Congedo, 2018) for each segment. This is the basis for the spectral features. Furthermore, we extract additional intraoperative signatures (Purdon et al., 2013), namely the burst suppression ratio (BSR) and the longest suppression phase (LSP), and calculate burst suppression probability for each time point, estimating a burst suppression timeline (Supplementary Section S1.3). Burst suppression is an EEG pattern, where periods of almost no EEG activity alternate with periods of high activity. To calculate the BSR, we determined the suppression time in the EEG—with very little to no activity—and we divided this by the duration of the time interval recorded, which in our case was the length of the recorded EEG file reduced by the removed artifacts.
For the covariance features, we use a multi-band signal. To calculate the multi-band signal, we filter the EEG data to the delta (0.3–4 Hz), theta (4–8 Hz), lower alpha (8–12 Hz), higher alpha (12–15 Hz), lower beta (15–20 Hz), higher beta (20–30 Hz) frequency bands. The resulting filtered EEG data in each of the frequency bands is then stacked with the burst suppression timeline. This artificially creates a higher dimensional data set with more channels. The covariance matrices are estimated for each segment using the Oracle Approximating Shrinkage (OAS) method (Chen et al., 2010), ensuring that the covariance features are symmetric positive definite (SPD) matrices and therefore lie on the Riemannian manifold of SPD matrices (Supplementary Section S1.2). We identify further outlier segments by applying a variation of the Riemannian potato (Barachant et al., 2013; Barthélemy et al., 2019) on the covariances. The Riemannian potato method identifies outlier segments on the Riemannian manifold, by calculating the distance of the segment's covariance matrix on the manifold to a mean that adjusts over time. For covariance matrices that are too far away from the mean in the affine-invariant metric (Supplementary Section S1.2), we remove the corresponding segments from the spectral as well as the covariance data.
For both, the series of spectra and the covariance matrices, the corresponding segments are grouped by 2-min time frames, and then the mean is calculated for each time frame, giving a representation for every 2 min of the filtered operation.
2.2. Classification
After the preprocessing, we have two categories of data for classification, the EEG-based time series data, which are the covariance and spectral data, and the patient data with additional features extracted from the EEG recordings, namely the BSR and the LSP (Figure 1).
Since the data set exhibits a pronounced class imbalance (many more patients with than without POD), we use balanced ensemble methods, which can resolve this challenge (Hido et al., 2008; Galar et al., 2012). Hence, the patient data is classified by a balanced random forest classifier (Chen and Breiman, 2004). For the spectral and covariance data, in addition to the class imbalance, each patient has a different number of time frames depending on the length of their surgery. Therefore, we apply two sampling strategies for the two levels of imbalance. The sampling is embedded in a Bagging classifier, which uses support vector machines (SVMs) as a base estimator to classify individual time frames.
2.2.1. Time-dependent features
There are two kinds of time-dependent features used in this study: the spectral and the covariance features. For each patient, there is a series of spectra and covariances calculated during preprocessing, which means we have a series of high-dimensional data as features for each patient. They represent a series of 2-min time frames from each patient's surgery. To deal with this data, we chose a Bagging approach, which deals with the different levels of data and imbalance: the patient level and the time frame level.
For training, we first undersample on the patient level, leaving out patients, then we undersample on the time frame level, leaving out time frames for the remaining patients (Figure 2). We, second, use each time frame as a separate data point for training a weighted SVM, keeping the patient label for each time frame corresponding to a patient. We train the SVM in the Euclidean space, which requires a few extra steps for the covariance matrices (Figure 3). Third, we check, whether a trained SVM reaches a set threshold on all time frames of the full data set and save the model to apply to the test set if it reached the threshold. Should the threshold not be reached within a set number of iterations, here 5, it is reduced by 2.5%. This is repeated until the number R of saved estimators is reached. The evaluation is done for all time frames TP of the test patients P. The probability to develop POD is averaged over the time frames TP and number of estimators R using the predicted classification for each time frame t from each estimator r. This results in the mean ratio of time frames that were classified as POD:
for both classifiers, the spectral classifier spec and the covariance classifier cov. We use this as the probability given by this classifier to predict whether a patient will develop delirium.
Figure 2. Bagging classifier schematic for time-dependent data. The Bagging approach saves R SVM estimators trained on the training set to classify all time frames in the test set and calculate a probability to develop POD for each patient in the test set. The SVMs are trained on sampled time frames as data points, the result of two stages of sampling on the training set: the strategy for patient sampling and the strategy for time frame sampling. The covariance features are projected to a Euclidean space before classification (Figure 3). If the AUC-ROC on the whole training set is good enough, the SVM is saved.
Figure 3. Projection of covariance features to the Euclidean tangent space. (A) The test set (gray, top) and the training set (green, bottom) are projected to the same tangent space of the reference point R. (B) The reference point R is calculated by taking the Riemannian mean of the Riemannian class means of the training set on the manifold, ensuring that the reference point is balanced regarding the different classes.
The sampling is done differently for the two types of time-dependent features. For both features, we randomly undersample the majority class on the patient level to reduce class imbalance, keeping at least of the majority class. For the spectral features, we then randomly sample a fixed number of time frames from each patient, ensuring, that patients with longer surgeries do not have a higher impact on the classification. For the covariance features, we sample again a fixed number of time frames, but the number depends on the class. We sample more time frames from the minority class, the POD patients, to make the data set more balanced and have a more diverse set of covariance matrices for the minority class. The latter, we found, improves classification, probably because a better reference point for the tangent space is found this way.
To be able to classify the covariance features with a SVM in the Euclidean space, they have to be projected into a euclidean space. Covariance matrices are SPD matrices, which form a Riemannian manifold, where a Riemannian metric describes the distance between two points (Supplementary Section S1.2). We can project the covariance features to a tangent space of the manifold, which is Euclidean, and there the SVMs are trained. The tangent space of a Riemannian manifold depends on the point, it is calculated from, the reference point, and is different at each point. Therefore, we find a reference point suitable for our training data and project the training and test set to the corresponding tangent space (Figure 3A; Congedo et al., 2017; Zanini et al., 2018). We chose a balanced Riemannian mean (Supplementary Section S1.2) of the sampled time frames as a reference point (Figure 3B). To calculate the balanced mean, the mean is first taken over the time frames of each class and then the mean of the two class means is calculated.
2.2.2. Clinical and burst suppression features
The clinical features and the burst suppression features used in the patient and patient+burstsupp classifier respectively are numerical or categorical features for each patient. Therefore, this is a classical classification of imbalanced data per patient. We use a balanced random forest classifier (Chen and Breiman, 2004; Lemaître et al., 2017) for classification in both cases.
For patient data, we used only information that is readily available in the operating room. As such, we use which medications are used for anesthesia induction namely Propofol, Thiopental, or Etomidate, and which medications are used for the maintenance of anesthesia namely Propofol, Desflurane, Sevoflurane, or Isoflurane. Additionally, we use the ASA score, whether the patient received Benzodiazepine for premedication, the age of the patient, and the length of the operation. For the latter there is typically an estimation available before the operation, here we use the exact length. These are the features used in the patient data classifier.
The second classifier using the patient data to train adds the burst suppression signatures we extracted from the intraoperative EEG data to the patient data as additional features. This is the patient+burstsupp classifier. Specifically, we add the burst suppression ratio (BSR) and the longest suppression phase.
The full overview of the data used can be found in Table 1 (Supplementary Figures S1, S2). Significance was calculated by Pearson Chi-Square test for the ASA score and use of Benzodiazepines, and with the Kruskal-Wallis Test for age, surgery length, burst suppression ratio and mean longest suppression phase.
As is typical for random forest classifiers, the probability pclassifier for each patient P is based on the probability given by each decision tree in the forest. Let F be the number of trees, then for the classifiers patient and patient+burst the probability for patient i to develop POD is given by .
2.2.3. Risk evaluation
To combine the three probabilities into a final risk evaluation, we calculate
for the probability prediction of the patient+burstsupp, spectral, and the covariance classifier. However, each of these classifiers can have a different optimal threshold for classification because the data is imbalanced and the classifiers are based on different averages taken. The optimal threshold for classification on the training set is the value, that maximizes the true positive rate (TPR) while minimizing the false positive rate (FPR) if every probability below the threshold is classified as negative and every probability above the threshold is classified as positive for POD (Calvert and Khoshgoftaar, 2019; Johnson and Khoshgoftaar, 2019; Zhang et al., 2020). This is solved by finding the threshold thclassifier that maximizes the g-mean for each classifier (Kubát and Matwin, 1997; Johnson and Khoshgoftaar, 2019). The risk evaluation then takes the optimal thresholds calculated on the training set into account. For each classifier, the optimal threshold thclassifier can be adjusted to by shifting the probabilities by shift = 0.5−thclassifier, resulting in: . We test, how much the AUC-ROC score of pcomb improves on the training set when the probabilities are shifted to have an optimal threshold of 0.5 for all classifiers or two out of three. The shifts resulting in the highest AUC-ROC score of pcomb are saved and applied to the test set. If only two probabilities are shifted, the third shift is set to 0. Therefore, Equation (1) can be rewritten as
We chose to use the maximum formulation in the calculation for pcomb (1) to ensure a high negative predictive value (NPV). For the NPV calculated for the final results, the classification threshold is set at 0.5. To retain a better prediction for small values of pclassifier, we set pcomb = pm, if pm < 0.25, with pm = mean(pclassifier) being the common average of the probabilities for all classifiers (patient + burst, spec, cov) with a high enough AUC-ROC on the training set.
3. Results
From the initial 1,277 patients in the SuDoCo study, we excluded 210 patients, due to missing data (98) or EEG files shorter than 20 min after preprocessing (112). Patient characteristics of the included 1,067 patients are given in Table 1.
When the data is trained on the whole data set, there is no apparent benefit of using EEG signatures for the classification. The results shown are the ROC curves and AUC-ROC scores over 10 repeats of a 10-fold cross-validation (Figure 4). The AUC-ROC score of the combined classifier is only 0.6% better than the patient classifier, and there is no improvement due to the burst suppression features. However, if we look at the different medications given for anesthesia maintenance, we see that the classifiers perform differently for the different medication groups. In particular, the EEG-based classifiers for the spectrum and the covariance perform significantly better for Propofol than for the inhalational anesthetics and the combined classifier improves over the patient classifier for Propofol.
Figure 4. Cross-validation-results for training on all medications. Results shown for each medication group, left all, 2. Propofol, 3. Desflurane and right Sevoflurane, for each of the classifiers patient (features: anesthetic agent, benzodiazepine, ASA, Age, OP length) (blue), covariance (green), spectrum (orange), patient+burstsupp (patient and burst suppression features) (red), combined risk evaluation (violet). (A) ROC-AUC values in box plot over 10 repeats of 10-fold cross-validation. (B) Mean ROC-curves for 10 repeats of a 10-fold cross-validation.
Therefore, we investigated the medication groups and classifiers separately. For Propofol, the classification of the spectral features and burst suppression features improves. For Sevoflurane, the burst suppression features improve classification overall, while the covariance features improve by 4% (Supplementary Figure S3, Figure 6. Consequently, if the three groups are trained on separately, the performance of the combined risk evaluation improves for Sevoflurane and Propofol (Figure 5). For both medications, the addition of EEG signatures to the combined model improves the classification of POD.
Figure 5. Comparison of combined risk evaluation. Results shown for Propofol, Desflurane, and Sevoflurane comparing the combined risk evaluation when the classifiers are trained on the corresponding medical group and when they are trained on the whole data set.
Training the classifiers for the Propofol and Sevoflurane group on the corresponding training data, for which the classifiers perform best (Supplementary Figure S3), gives the best overall result (Figure 6). The spectral classifier for Propofol reaches an AUC-ROC score of 0.72 and the addition of burst suppression features to the patient data, improves the classification AUC-ROC by 0.05. For Sevoflurane the covariance classifier performs at 0.68 and the burst suppression features account for an improvement of 0.01 over the patient classifier. The combined risk evaluation is best in every medication group reaching a AUC-ROC of 0.78 for Propofol (NPV 0.92), 0.73 for Desflurane (NPV 0.89), 0.80 for Sevoflurane (NPV 0.92), and 0.77 (NPV 0.91) overall.
Figure 6. Cross-validation-results for training on group-specific data. Results shown for each medication group, left all, 2. Propofol, 3. Desflurane and right Sevoflurane, for each of the classifiers patient (features: anesthetic agent, benzodiazepine, ASA, Age, OP length) (blue), covariance (green), spectrum (orange), patient+burstsupp (patient and burst suppression features) (red), combined risk evaluation (violet). The medication group all includes all medications, the classifiers for each patient are based on the given medication group shown on the right. If patients do not fall into one of the groups, receiving other mixed medications, they are classified by the classifier trained on all medications. (A) ROC-AUC values in a box plot over 10 repeats of a 10-fold cross-validation. (B) Mean ROC-curves for 10 repeats of a 10-fold cross-validation.
3.1. Validation on a separate study
To investigate the robustness of our classifiers, we used our models trained on the SuDoCo study data and classified the patients from a different study, the BioCog study. The BioCog study (BioCog project, 2014-2017) is a multicenter study, where intraoperative EEG recordings were done at the Charité-Universitätsmedizin Berlin (Campus Virchow Klinikum and Campus Mitte) from October 2014 until April 2017. Intraoperative raw EEG files were available from 78 patients. The EEG was recorded with the SEDline monitor (SEDline Root, Masimo, Irvine, USA) at the Fp1, Fp2, F7, and F8 electrode positions. We used the same preprocessing steps as included in our trained model, excluding six patients with missing data or with <20 min of EEG recording left after preprocessing (Table 2).
For each medication group, the patient+burstsupp and the combined classifier show a robust and good performance: an AUC-ROC score of 0.8 for Sevoflurane, 0.87 for Propofol, and 1.0 for Desflurane, 0.85 for all medications (Figure 7). The patient data classifier does not show these results. The EEG-based classifiers alone, however, perform fairly well. To use the covariance classifier, we project the new data covariance matrices on the manifold to the saved reference point (Zanini et al., 2018, Supplementary Section S3). We correct the probability results for each group and classifier to an optimal threshold of 0.5 with the optimal thresholds calculated on the SuDoCo training set (Section 2.2.3).
Figure 7. Validation results on BioCog study for a model trained on the group-specific data of the SuDoCo study. All (72 patients), Propofol (20 patients), Desflurane (13 patients), Sevoflurane (38 patients).
4. Discussion
Our results indicate that including routine EEG measurements in a POD risk evaluation gives a robust and good prediction both in cross-validation and in a separate study. Both studies include older patients without any focus on a specific surgical population. The combined classifier, incorporating patient data and signatures from the intraoperative EEG monitoring, outperforms any of the approaches using only one of the two.
Using only our limited patient data appears to be sensitive to small shifts in the patient data, as we can see for our validation study, where the Age is generally older while the ASA score is lower than in the SuDoCo study (Tables 1, 2, Supplementary Figures S2, S3). Including the EEG signatures made the results more robust to shifts in the patient data, even though the EEG was recorded with a different monitor.
Adding markers to the EEG for the beginning and end of the operation, specifically at the first cut and the last stitch, might also improve the results by making the preprocessing more precise. Generally, we cannot make any claims about other combinations of anesthetic agents because there were very few instances in the training set. Furthermore, while the transfer of the model to the validation study shows proof of concept and robustness, the very good results on the validation set, especially for Desflurane, might be the result of the few such patients in the validation set. The 38 Sevoflurane patients in the validation set, however, show results closer to the cross-validation results, which was expected (Table 2).
We show that taking the medication into account can improve the results of the overall risk evaluation, by improving the classifiers using the EEG features. This is probably partly due to the different class imbalances, for the different medication groups (Tables 1, 2). The main reason, though, is the effect on the EEG of the different medications. Taking away those differences should increase the similarities of the training and test set. However, contrary to our expectations, this did not work for every medication group. The effect might be counteracted by the fact, that we make the training set smaller when we look at the groups separately, which explains why the approach only worked partly. From literature (Soehle et al., 2015), one would expect the burst suppression features to improve the prediction for all medication groups, which did not work for the Desflurane group in cross-validation. However, it did improve the transfer to a new dataset for all medications. The study did not include the dosage of the anesthetic agent given, this might have weakened our results since the sensitivity to anesthetic agents varies within the older population (Cooter Wright et al., 2022).
Even when including little prior knowledge about the patient, the cross-validation results for Propofol and Sevoflurane are comparable to the POD prediction results achieved by Bishara et al. (2022), using electronic health record data of 24,885 adults, reporting an average AUC-ROC of 0.82 for older patients. This shows the potential of incorporating EEG monitoring data into machine learning algorithms to predict POD. Unfortunately, there are very few publications for older patients of a general surgical population. A Random Forest classifier in Wang et al. (2020) reached an AUC-ROC score of 0.96 for 912 patients undergoing microvascular decompression surgery, trained on patient data features, and validated on a test set. A logistic regression model trained on MRI data (Kyeong et al., 2018) predicted POD for 57 older patients with a femoral neck fracture with a cross-validation AUC-ROC of 0.92. However, collecting the required data before surgery is time-consuming and expensive. Limiting the patient data to readily available information, without any additional examinations or measurements, is more practical.
Generally, one has to be mindful of biases in the prediction. While the risk evaluation allows focusing efforts on a group with high risk in a busy clinical ward, it disadvantages false negative patients. This is why our risk evaluation favors false positives. The limited clinical data combined with the EEG data, we believe, are less prone to societal biases than other clinical parameters. Nevertheless, the training set is imbalanced and before introducing any such approach into a clinical setting, one would need to investigate carefully, if there are any relevant biases and how to address them.
Our approach remains easily applicable because the patient data used is available in the operating room. EEG is already used routinely to monitor the depth of anesthesia and therefore widely available and affordable. Incorporating the EEG signatures into a POD prediction method has the potential to improve the overall results and robustness.
5. Conclusion
Incorporating EEG data into a machine learning approach gives a reliable risk evaluation for POD. We could show that adding EEG signatures to the approach improves classification compared to using limited patient data with classical risk factors, such as age, the ASA score, and the length of the operation. However, this only works, if we take the different maintenance medications into account because they affect the EEG. Including the medication in EEG monitors might, therefore, generally be useful. For future work, it might be interesting to investigate Desflurane a little closer, since the POD incidence in that group is higher than in the other groups and burst suppression signatures do not seem to be a relevant risk factor for most of these patients. The patient information we use is limited to six features and could quickly be typed into future monitoring equipment. Our approach shows that using EEG data in a machine learning approach could be used as a software tool in EEG monitors to give a risk evaluation for POD at the end of surgery.
Data availability statement
The data analyzed in this study is subject to the following licenses/restrictions: Due to the nature of this research, participants of the original study did not agree for their data to be shared publicly, so supporting data is not available. The code is available in the Supplementary material. Requests to access these datasets should be directed to SK, susanne.koch@charite.de.
Author contributions
BB, CS, and SK conceived of the presented idea. FR coordinated the original study. VR derived the methods and performed the computations and analysis. VR, BB, and SK discussed the results and contributed to the final manuscript in consultation with FR and CS. All authors contributed to the article and approved the submitted version.
Funding
VR acknowledges the financial support from the Research Training Group (RTG 2433) DAEDALUS (Differential Equation- and Data-driven Models in Life Sciences and Fluid Dynamics) funded by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation, project 384950143). We acknowledge support from the German Research Foundation and the Open Access Publication Fund of TU Berlin.
Acknowledgments
VR and BB acknowledge the introduction to the field of Riemannian geometry for EEG classification, provided by Marco Congedo (University of Grenoble Alpes) in particular during a 2-weeks research stay at TU Berlin and subsequent discussions.
Conflict of interest
Author SK is an inventor on patents, sold to Medtronic. She reports a grant during the conduct of the study by the German Research Foundation. Author CS is an inventor on patents, she reports grants during the conduct of a study from the European Commission, from Aridis Pharmaceutical Inc., B. Braun Melsung, Drägerwerk AG & Co. KGaA, German Research Foundation, German Aerospace Center, Einstein Foundation Berlin, European Society of Anaesthesiology, Federal Joint Committee and Inner University grants. Grants promoting Science and Education from WHOCC, Baxter Deutschland GmbH, Cytosorbents Europe GmbH, Edwars Lifesciences Germany GmbH, Fresenius Medical Care, Grünenthal GmbH, Masimo Europe Ltd. Phizer Pharma PFE GmbH. Personal fees from Georg Thieme Verlag, Dr. F. Köhler Chemie GmbH, Sintetica GmbH, European Commission, Stifterverband für die deutsche Wissenschaft e.V./Philips, Stiftung Charite, AGUETTANT Deutschland GmbH, AbbVie Deutschland GmbH & Co. KG, Amomed Pharma GmbH, Touch Health, Copra System GmbH, Correvio GmbH, Max-Planck-Gesellschaft zur Förderung der Wissenschaft e.V., Deutsche Gesellschaft für Anästhesiologie & Intensivmedizin (DGAI), Medtronic, Philips Electronics Nederland BV, BMG, and BMBF. Aspect Medical Systems, now Medtronic, funded the initial SuDoCo study were CS was PI. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fnagi.2022.911088/full#supplementary-material
References
Aldecoa, C., Bettelli, G., Bilotta, F., Sanders, R. D., Audisio, R., and Borozdina, A. (2017). European society of anaesthesiology evidence-based and consensus-based guideline on postoperative delirium. Eur. J. Anaesthesiol. 34, 192–214. doi: 10.1097/EJA.0000000000000594
Barachant, A., Andreev, A., and Congedo, M. (2013). “The Riemannian potato: an automatic and adaptive artifact detection method for online experiments using Riemannian geometry,” in TOBI Workshop lV (Sion).
Barthélemy, Q., Mayaud, L., Ojeda, D., and Congedo, M. (2019). The Riemannian potato field: a tool for online signal quality index of EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 27, 244–255. doi: 10.1109/TNSRE.2019.2893113
Biocog study (2014-2017). Available online at: https://www.biocog.eu/index_de.
Bishara, A., Chiu, C., Whitlock, E., Douglas, V., Lee, S., Butte, A., et al. (2022). Postoperative delirium prediction using machine learning models and preoperative electronic health record data. BMC Anesthesiol. 22:8. doi: 10.1186/s12871-021-01543-y
Calvert, C. L., and Khoshgoftaar, T. M. (2019). “Threshold based optimization of performance metrics with severely imbalanced big security data,” in 2019 IEEE 31st International Conference on Tools With Artificial Intelligence (Portland, OR: ICTAI), 1328–1334. doi: 10.1109/ICTAI.2019.00184
Chen, C., and Breiman, L. (2004). Using Random Fore st to Learn Imbalanced Data [Technical Report]. Department of Statistics, UC Berkeley. Available online at: https://statistics.berkeley.edu/tech-reports/666
Chen, Y., Wiesel, A., Eldar, Y. C., and Hero, A. O. (2010). Shrinkage algorithms for MMSE covariance estimation. IEEE Trans. Signal Process. 58, 5016–5029. doi: 10.1109/TSP.2010.2053029
Congedo, M. (2018). Non-Parametric Synchronization Measures Used in EEG and MEG. (GIPSA-lab, Grenoble, France) Technical Report.
Congedo, M., Barachant, A., and Bhatia, R. (2017). Riemannian geometry for eeg-based brain-computer interfaces; a primer and a review. Brain Comput. Interfaces 4, 1–20. doi: 10.1080/2326263X.2017.1297192
Cooter Wright, M., Bunning, T., Eleswarpu, S. S., Heflin, M. T., McDonald, S. R., Lagoo-Deenadalayan, S., et al. (2022). A processed electroencephalogram-based brain anesthetic resistance index is associated with postoperative delirium in older adults: a dual center study. Anesth. Anal. 134, 149–158. doi: 10.1213/ANE.0000000000005660
Culley, D. J., Flaherty, D., Fahey, M. C., Rudolph, J. L., Javedan, H., Huang, C.-C., et al. (2017). Poor performance on a preoperative cognitive screening test predicts postoperative complications in older orthopedic surgical patients. Anesthesiology 127, 765–774. doi: 10.1097/ALN.0000000000001859
Fritz, B. A., Kalarickal, P. L., Maybrier, H. R., Muench, M. R., Dearth, D., Chen, Y., et al. (2016). Intraoperative electroencephalogram suppression predicts postoperative delirium. Anesth. Analg. 122, 234–242. doi: 10.1213/ANE.0000000000000989
Galar, M., Fernandez, A., Barrenechea, E., Bustince, H., and Herrera, F. (2012). A review on ensembles for the class imbalance problem: bagging-, boosting-, and hybrid-based approaches. IEEE Trans. Syst. Man Cybern. Part C 42, 463–484. doi: 10.1109/TSMCC.2011.2161285
Gutierrez, R., Egaña, J. I., Saez, I., Reyes, F., Briceño, C., Venegas, M., et al. (2019). Intraoperative low alpha power in the electroencephalogram is associated with postoperative subsyndromal delirium. Front. Syst. Neurosci. 13:56. doi: 10.3389/fnsys.2019.00056
Hido, S., Kashima, H., and Takahashi, Y. (2008). Roughly balanced bagging for imbalanced data. Stat. Anal. Data Mining 2, 412–426. doi: 10.1137/1.9781611972788.13
Johnson, J., and Khoshgoftaar, T. (2019). Medicare fraud detection using neural networks. J. Big Data 6. doi: 10.1186/s40537-019-0225-0
Koch, S., Feinkohl, I., Chakravarty, S., Windmann, V., Lichtner, G., Pischon, T., et al. (2019). Cognitive impairment is associated with absolute intraoperative frontal α-band power but not with baseline α-band power: a pilot study. Dement. Geriatr. Cogn. Disord. 48, 83–92. doi: 10.1159/000502950
Koch, S., Windmann, V., Chakravarty, S., Kruppa, J., Yurek, F., Brown, E. N., et al. (2021). Perioperative electroencephalogram spectral dynamics related to postoperative delirium in older patients. Anesth. Anal. 133, 1598–1607. doi: 10.1213/ANE.0000000000005668
Kubát, M., and Matwin, S. (1997). “Addressing the curse of imbalanced training sets: one-sided selection,” in ICML (Nashville, TN).
Kyeong, S., Shin, J. E., Yang, K. H., Lee, W.-S., Chung, T.-S., and Kim, J.-J. (2018). Neural predisposing factors of postoperative delirium in elderly patients with femoral neck fracture. Sci. Rep. 8:7602. doi: 10.1038/s41598-018-26030-2
Lemaître, G., Nogueira, F., and Aridas, C. K. (2017). Imbalanced-learn: a python toolbox to tackle the curse of imbalanced datasets in machine learning. J. Mach. Learn. Res. 18, 1–5. doi: 10.5555/3122009.3122026
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., et al. (2011). SCIKIT-learn: machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830. doi: 10.5555/1953048.2078195
Purdon, P., Pierce, E., Mukamel, E., Prerau, M., Walsh, J., Wong, K. F. K., et al. (2013). Electroencephalogram signatures of loss and recovery of consciousness from propofol. Proc. Natl. Acad. Sci. U.S.A. 110, E1142–E1151. doi: 10.1073/pnas.1221180110
Purdon, P. L., Pavone, K. J., Akeju, O., Smith, A. C., Sampson, A. L., Lee, J., et al. (2015). The ageing brain: age-dependent changes in the electroencephalogram during propofol and sevoflurane general anaesthesia. Br. J. Anaesth. 115, i46–i57. doi: 10.1093/bja/aev213
Radtke, F., Franck, M., Lendner, J., Krüger, S., Wernecke, K., and Spies, C. (2013). Monitoring depth of anaesthesia in a randomized trial decreases the rate of postoperative delirium but not postoperative cognitive dysfunction. Br. J. Anaesth. 110(Suppl. 1), i98?-i105. doi: 10.1093/bja/aet055
Soehle, M., Dittmann, A., Ellerkmann, R. K., Baumgarten, G., Putensen, C., and Guenther, U. (2015). Intraoperative burst suppression is associated with postoperative delirium following cardiac surgery: a prospective, observational study. BMC Anesthesiol. 15:61 doi: 10.1186/s12871-015-0051-7
Tesh, R., Sun, H., Jing, J., Westmeijer, M., Neelagiri, A., Rajan, S., et al. (2022). VE-CAM-S: visual EEG-based grading of delirium severity and associations with clinical outcomes. Crit. Care Explor. 4:e0611. doi: 10.1097/CCE.0000000000000611
van Sleuwen, M., Sun, H., Eckhardt, C., Neelagiri, A., Tesh, R. A., Westmeijer, M., et al. (2022). Physiological assessment of delirium severity: the electroencephalographic confusion assessment method severity score (E-CAM-S). Crit. Care Med. 50:e11–e19. doi: 10.1097/CCM.0000000000005224
Wang, Y., Lei, L., Ji, M., Tong, J., Zhou, C.-M., and Yang, J.-J. (2020). Predicting postoperative delirium after microvascular decompression surgery with machine learning. J. Clin. Anesth. 66:109896. doi: 10.1016/j.jclinane.2020.109896
Welch, P. (1967). The use of fast Fourier transform for the estimation of power spectra: a method based on time averaging over short, modified periodograms. IEEE Trans. Audio Electroacoust. 15, 70–73. doi: 10.1109/TAU.1967.1161901
Zanini, P., Congedo, M., Jutten, C., Said, S., and Berthoumieu, Y. (2018). Transfer learning: a Riemannian geometry framework with applications to brain-computer interfaces. IEEE Trans. Biomed. Eng. 65, 1107–1116. doi: 10.1109/TBME.2017.2742541
Zhang, X., Gweon, H., and Provost, S. (2020). “Threshold moving approaches for addressing the class imbalance problem and their application to multi-label classification,” in 2020 4th International Conference on Advances in Image Processing, ICAIP 2020 (New York, NY: Association for Computing Machinery), 72–77. doi: 10.1145/3441250.3441274
Keywords: electroencephalography, artificial intelligence, prediction model, machine learning, aging, postoperative delirium, surgery
Citation: Röhr V, Blankertz B, Radtke FM, Spies C and Koch S (2022) Machine-learning model predicting postoperative delirium in older patients using intraoperative frontal electroencephalographic signatures. Front. Aging Neurosci. 14:911088. doi: 10.3389/fnagi.2022.911088
Received: 01 April 2022; Accepted: 27 September 2022;
Published: 14 October 2022.
Edited by:
Guang H. Yue, Kessler Foundation, United StatesReviewed by:
Easter Selvan Suviseshamuthu, Kessler Foundation, United StatesMiles Berger, Duke University, United States
Copyright © 2022 Röhr, Blankertz, Radtke, Spies and Koch. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Vera Röhr, v.roehr@tu-berlin.de; Susanne Koch, susanne.koch@charite.de