Abstract
Background: General anesthesia comprises 3 essential components—hypnosis, analgesia, and immobility. Among these, maintaining an appropriate hypnotic state, or anesthetic depth, is crucial for patient safety. Excessively deep anesthesia may lead to hemodynamic instability and postoperative cognitive dysfunction, whereas inadequate anesthesia increases the risk of intraoperative awareness. Electroencephalography (EEG)-based monitoring has therefore become a cornerstone for evaluating anesthetic depth. However, processed electroencephalography (pEEG) indices remain vulnerable to various sources of interference, including electromyographic activity, interindividual variability, and anesthetic drug effects, which can yield inaccurate numerical outputs.
Objective: With recent advances in machine learning, particularly unsupervised learning, data-driven methods that classify signals according to inherent patterns offer new possibilities for anesthetic depth analysis. This study aimed to establish a methodology for automatically identifying anesthesia depth using an unsupervised, machine learning–based clustering approach applied to pEEG data.
Methods: Standard frontal EEG data from participants undergoing elective lumbar spine surgery were retrospectively analyzed, yielding more than 16,000 data points. The signals were filtered with a fourth-order Butterworth bandpass filter and transformed using the fast Fourier transform to estimate power spectral density. Normalized band power ratios for delta, high-theta, alpha, and beta frequencies were extracted as input features. Fuzzy C-Means (FCM) clustering (c=3, m=2) was applied to categorize anesthetic depth into slight, proper, and deep clusters.
Results: FCM clustering successfully identified 3 physiologically interpretable clusters consistent with EEG dynamics during progressive anesthesia. As anesthesia deepened, frontal alpha oscillations became more prominent within a delta-dominant background, while beta activity decreased with loss of consciousness. The fuzzy membership values quantified transitional states and captured the continuum of anesthetic depth. Visualization confirmed strong correspondence among cluster transitions, Patient State Index trends, and spectral density patterns.
Conclusions: This study demonstrates the feasibility of using unsupervised machine learning to enhance anesthetic depth assessment. By applying FCM clustering to pEEG data, this approach improves the understanding of anesthesia depth and integrates effectively with existing monitoring modalities. The proposed FCM-based method complements current EEG indices and may assist anesthesia practitioners and even nonanesthesia professionals in assessing anesthetic depth to enhance patient safety.
doi:10.2196/77830
Keywords
Introduction
General anesthesia induces temporary loss of consciousness characterized by unconsciousness, immobility, and autonomic regulation of pain [,]. Maintaining an appropriate depth of anesthesia is essential for patient safety. Insufficient anesthesia may lead to intraoperative awareness, autonomic hyperactivity, and significant psychological distress []. Conversely, excessive anesthesia has been associated with neuroinflammation [], neuronal injury, and postoperative cognitive dysfunction or delirium [,]. Therefore, continuous monitoring of anesthetic depth during surgery is of critical importance. Electroencephalography (EEG)-based monitoring serves as a valuable tool for this purpose. Real-time EEG analysis provides insight into anesthetic states, as oscillatory patterns vary with the anesthetic dose, type, and patient characteristics [,]. The Perioperative Quality Initiative 6 Workgroup, led by Chan, details the available EEG monitors []. Understanding perioperative neural activity enables anesthesiologists to optimize anesthesia delivery and enhance patient outcomes.
Artificial intelligence is revolutionizing anesthesiology, with techniques such as anesthesia depth monitoring []. Unsupervised machine learning operates without predefined hypotheses and identifies patterns and structures within datasets to classify patients, medications, and groups []. Unlike supervised machine learning, which correlates the input data with known outcomes, unsupervised machine learning categorizes instances based on inherent patterns. In EEG analyses, unsupervised machine learning methods such as fuzzy clustering have been used to analyze sleep stages [], detect epileptic spikes [], and identify significant elements in multichannel recordings [].
Anesthesia management fundamentally involves 3 key components: hypnosis, analgesia, and muscle relaxation. During induction and maintenance, a reproducible spectral shift occurs in the EEG, wherein frontal alpha oscillations become prominent within a delta-dominant background, delta power progressively increases with deepening anesthesia, and beta activity decreases as consciousness is lost [,-]. Power spectral metrics—including relative alpha, beta, and delta power, power ratios, and spectral entropy—have been shown to reliably distinguish between conscious and anesthetized states [-]. Inhalational agents such as sevoflurane and desflurane consistently produce dose-dependent increases in frontal alpha and delta power [,-], providing a physiologic basis for categorizing anesthesia into light, proper, and deep stages. However, current perioperative EEG-based indices, such as the Bispectral Index (BIS) [,] and Patient State Index (PSi) [,], primarily reflect the hypnotic component but can be influenced by various factors, potentially leading to misleading processed numerical outputs. Therefore, this study aimed to enhance anesthetic depth assessment by focusing on the hypnosis dimension and applying unsupervised machine learning methods, specifically Fuzzy C-Means (FCM) clustering, to processed electroencephalography (pEEG) data.
The primary objective of this study was to establish a methodology for automatically identifying anesthesia depth through a visualized presentation, leveraging machine learning–based clustering techniques. By applying unsupervised learning to pEEG data, this approach aims to enhance the classification and understanding of anesthesia depth and facilitate patient-specific anesthesia management.
Methods
Recruitment
Data were collected at the Veterans General Hospital, Taipei, with the approval of the Institutional Review Board (number 2021-09-008BC). More than 16,000 data points were collected from 10 participants (Participants 1‐10) who underwent elective lumbar spinal surgery in the prone position. The ages of the participants ranged from 44 to 78 years, with the American Society of Anesthesiologists’ physical status classifications ranging from class I to class III. Participants with conditions such as pregnancy, neurological disorders, ongoing infections, a history of central nervous system medication use, respiratory failure, heart failure, or renal failure were excluded.
Masimo SedLine [] brain function monitoring was performed with the participant in the supine position. Induction included fentanyl at 1‐3 mcg/kg as an adjunct for intubation, followed by propofol at 1‐3 mg/kg as an induction bolus. Rocuronium was administered at an intubation dose of 0.6‐1 mg/kg for muscle relaxation. The participant was then intubated.
During maintenance, the inhalational agent sevoflurane was administered, with dosage adjustments titrated based on the PSi levels and pEEG density spectral array (DSA) patterns. The participant was then placed in a prone position for lumbar spinal surgery. After the completion of the surgery, the participant was returned to the supine position, and the inhalation agent was gradually titrated off. Rocuronium administration was reversed using sugammadex. Subsequently, the participants were extubated and transferred to the postanesthetic care unit for further monitoring and recovery.
Data Collection and Processing
outlines the preprocessing steps for the EEG data in our study.

Signal Processing and Feature Extraction
EEG tracings from the 4 Masimo SedLine channels were averaged into 1-dimensional signals and synchronized for consistency. Each participant’s EEG data were recorded at a sampling frequency of 178 Hz, with a data collection period ranging from 3 to 5 hours, depending on the duration of anesthesia. A fourth-order Butterworth bandpass filter (0.5‐30 Hz) was applied to minimize the ripple and achieve a maximally flat response. Power spectral density was estimated using the Welch method implemented in Python (SciPy library), using a 30-second window with a 2-second sliding overlap to ensure both temporal continuity and frequency resolution. Additional preprocessing specifications are available in . The Welch method and the fast Fourier transform were used to estimate the power spectral density, facilitating the extraction of alpha (8‐12 Hz), beta (13‐30 Hz), delta (0.5‐4 Hz), and high-theta (6‐8 Hz) band powers. Normalization was performed by calculating the ratio of each band’s power to the sum of the power of these 4 specific bands (delta+high-theta+alpha+beta), ensuring that the sum of the feature vector elements equals 1. The 4‐6 Hz and 12‐13 Hz bands were excluded based on their limited variation across states. Removing these transitional zones established a “spectral buffer” to reduce noise, allowing the algorithm to prioritize the more discriminative delta and alpha and high-theta features. Manual artifact rejection was conducted by board-certified anesthesiologists and engineers to identify and exclude segments exhibiting abnormal, noisy epochs indicative of artifacts.
FCM Clustering Algorithm
FCM clustering categorizes data points into clusters with membership values between 0 and 1, accommodating the uncertainty in the cluster assignment. It was performed with 3 clusters (c=3), a fuzziness parameter (m) of 2, random initialization of cluster centers, and a convergence threshold of 0.005. The model iteratively updates the centroids and membership values until convergence, guided by a fuzziness parameter (m) that regulates cluster ambiguity. A global FCM model was established to generate fixed global cluster centroids. These fixed centroids were then applied to all participants to calculate membership values. Further implementation details are provided in . This method extracts delta, alpha, high-theta, and beta band power ratios from pEEG signals to partition the data into 3 statistically distinct clusters. These clusters were subsequently labeled as “slight,” “proper,” and “deep” based on their physiological spectral characteristics. The capability of FCM to manage data ambiguity makes it suitable for nuanced depth assessments under general anesthesia.
Ethical Considerations
This study was conducted in accordance with the ethical principles outlined in the Declaration of Helsinki and was approved by the Institutional Review Board of Taipei Veterans General Hospital, Taiwan (number: 2021-09-008BC). Written informed consent was obtained from all participants prior to enrollment. The data used in this study were deidentified before analysis to ensure participant confidentiality and privacy. No identifiable personal information or images were included in the manuscript or supplementary materials. Participants did not receive any financial compensation for their participation in the study.
Results
Overview
In this study, an unsupervised learning method, FCM, was used to analyze the pEEG data from participants with complete datasets. summarizes the demographic information and baseline characteristics of the participants. The analysis focused on a feature set comprising the delta-band power ratio and the sum of the alpha and high-theta band power ratios. The results revealed 3 distinct clusters. Based on the centroids’ spectral features, we assigned post hoc clinical labels to these clusters representing different anesthesia depths: slight (green), proper (blue), and deep (red). This clustering approach was validated using visual representation to confirm the effectiveness of the feature set in differentiating anesthesia depths. Subsequently, the same method was applied to individual participant data, categorizing each participant’s pEEG into 1 of the 3 clusters, thus providing a detailed estimation of the anesthesia depth for each individual.
| Participant | Age (years) | Sex | Height (cm) | Body weight (kg) | BMI (kg/m2) | ASA classification | Comorbidities | Blood loss (mL) | Operation time (minutes) | Postoperative stay (days) |
| 1 | 63 | F | 152.2 | 63.7 | 27.5 | I | None | 300 | 250 | 7 |
| 2 | 78 | F | 150.5 | 53.5 | 23.6 | II | Hepatitis | 200 | 280 | 6 |
| 3 | 65 | M | 168 | 89.8 | 31.8 | II | None | 300 | 360 | 4 |
| 4 | 75 | M | 170 | 70 | 24.2 | II | Hypertension, dementia | 660 | 405 | 7 |
| 5 | 67 | M | 160 | 64 | 25.0 | II | Hypertension | 200 | 285 | 6 |
| 6 | 45 | M | 171 | 69.9 | 23.9 | I | None | — | 170 | 2 |
| 7 | 61 | M | 160.3 | 77.7 | 30.2 | II | Hypertension, diabetes mellitus | 1300 | 195 | 6 |
| 8 | 68 | F | 157.7 | 71.1 | 28.6 | II | Hypertension, diabetes mellitus | 450 | 210 | 5 |
| 9 | 44 | M | 173.6 | 67.6 | 22.4 | I | None | 50 | 375 | 29 |
| 10 | 71 | M | 167 | 83 | 29.8 | III | Hypertension, coronary artery disease | 530 | 320 | 6 |
aASA: American Society of Anesthesiologists.
bF: female.
cM: male.
dNot available.
FCM Clustering Analysis of pEEG Features
FCM clustering was applied to all participants, using alpha, beta, delta, and high-theta band power as the selected features for clustering. illustrates the FCM clustering results for all participants, with the delta band power ratio plotted on the x-axis and the sum of the alpha and high-theta band power ratios on the y-axis. Each data point represents a single time point of a participant’s pEEG signal and is clustered into 3 distinct groups: slight anesthesia depth (green), proper anesthesia depth (blue), and deep anesthesia depth (red). The contribution of the beta band power ratio can be inferred as the sum of the delta, alpha, high-theta, and beta band power ratios equals 1, although not explicitly displayed. This visual depiction offers insights into the distribution of a participant’s single time points within each anesthesia depth cluster.
After establishing the efficacy of the selected features and parameters through a collective analysis of the participants, our investigation shifted focus to the individual application of this methodology. The fixed global cluster centroids were then applied to the data of Participants 1‐10 to calculate membership values and simplified estimation results. Following the methodology outlined, where all time indices share a common time scale, the pEEG data were combined with PSi data retrieved from the Masimo SedLine brain function monitoring system, and the time-frequency images were compared within the same figure, with each participant outputting a distinct figure. Within these figures, Participants 4 and 6 are described in the article. By incorporating this comprehensive approach, our study verified the applicability of the selected features and enhanced confidence in the adaptability of our methodology to diverse clinical scenarios and datasets, strengthening the reliability of our conclusions and paving the way for further exploration and validation within the anesthesia depth assessment domain.

Participant 4 and Participant 6: FCM Clustering Analysis
Participant 4 underwent the same data retrieval and processing procedures as the other participants, with raw EEG data obtained from the Masimo SedLine brain function monitoring system. These data were subjected to filtering, fast Fourier transformation, normalization, and subsequent FCM clustering. The culmination of these processes is depicted in , which comprises multiple panels, sharing a synchronized timescale on the x-axis.
shows the PSi of Participant 4 obtained from the Masimo SedLine brain function monitoring system. The x-axis represents the time scale, whereas the y-axis displays the PSi values, reflecting the PSi over time.
shows the results of FCM clustering for Participant 4. The y-axis illustrates the estimated membership values and denotes the degree of belongingness of each cluster. This belongingness quantifies the “fuzziness” of the FCM clustering, indicating the confidence level of each assignment of the data point to a particular cluster. It effectively quantifies the “color shading” shown in , where darker shades represent higher confidence levels in cluster assignments. For example, a membership value of 1 signifies full belongingness to the cluster, and a value of 0.8 indicates 80% confidence in the assignment. This “soft” labeling approach allows for a more nuanced understanding of the clustering results, providing insights into the uncertainty associated with each classification of the data point.
represents a modified rendition of , specifically tailored to illustrate the anesthesia depth classification for Participant 4. Along the y-axis, this plot delineates the categorization into slight, proper, or deep anesthesia groups at individual time points. provides a detailed depiction of the continuous membership values, reflecting the degree of belonging to each cluster: slight, proper, and deep. However, this comprehensive display introduces the challenge of intuitively discerning the predominant cluster at a single point. While this approach offers a more complete dataset, it complicates the task of determining the cluster affiliations for each data point. Hence, the modified version in simplifies this interpretation by highlighting the cluster with the “higher value.” This adaptation facilitates a more straightforward assessment of the anesthesia depth classification by presenting a clearer distinction. This clarity enhances the utility of visualization in aiding clinician decision-making during patient monitoring and management.
presents a time-frequency image derived from the raw EEG signal without processing, providing insights into the frequency components of the EEG signal over time. Overall, provides a comprehensive analysis of the EEG signals and anesthesia depth classification for Participant 4, contributing to the understanding of brain function monitoring and anesthesia management.
Participant 6 then underwent identical signal processing and analysis procedures, resulting in . This comprehensive underwent the same rigorous process as shown in .


Discussion
Principal Findings
This study explored the feasibility of improving anesthetic depth assessment by applying unsupervised machine learning to pEEG data. EEG patterns vary with the depth of anesthesia []. PEEG-derived indices, such as the BIS and PSi, are susceptible to various influences, presenting limitations in their interpretation []. Purdon et al [] characterized the EEG signatures of intravenous and inhaled anesthetics, providing additional insights into the depth of anesthesia. In , the delta ratio quantifies cortical suppression, as delta oscillations reflect deep anesthesia and thalamocortical inhibition. The theta and alpha ratios were selected for their modulation by anesthetics in the frontal cortex. Alpha oscillations indicate stable unconsciousness under propofol and sevoflurane, correlating with GABAergic inhibition, while theta oscillations become prominent at higher anesthetic concentrations, particularly with sevoflurane, signaling transitions between moderate and deep anesthesia. depict Participants 4 and 6, respectively, demonstrating the combination of PSi values, anesthesia depth clustering values, simplified clustering results, and processed time-frequency images. These visual presentations illustrate patient-specific anesthesia depth, facilitating the automatic identification of anesthesia depth.
Postoperative delirium and neurocognitive complications after spinal surgery remain significant concerns [], and perioperative EEG monitoring may contribute to their management []. In this study, one participant (Participant 4) had a history of cognitive dysfunction due to dementia. All participants underwent lumbar spinal surgery in the prone position with sevoflurane as the maintenance agent. The operation time ranged from 170 to 405 minutes. Most participants were discharged within 1 week, and no other cognitive impairments were documented.
Limitations
This study was constrained by a small sample size. While the extensive dataset of over 16,000 EEG epochs ensures high within-subject data density and supports the internal stability of the model for the analyzed participants, we acknowledge that the limited number of independent participants restricts the external generalizability of the findings. Previous studies have indicated that a sampling frequency of 100 Hz is sufficient for EEG-based analysis []. While a larger sample size could further refine the FCM clustering results presented in , the primary determinants of clustering effectiveness in single-subject EEG analysis are the duration and density of the data. With 3 to 5 hours of continuous EEG recordings per participant, our study provided sufficient granularity for meaningful intrasubject clustering, as demonstrated in . Our primary objective was to explore the feasibility and establish the methodological framework for applying unsupervised machine learning to processed EEG data.
García et al [] explored EEG activity and delineated an analgesia-related axis alongside hypnosis during general anesthesia, revealing distinct changes in EEG patterns. We acknowledge the limitation of a single-dimensional index in capturing the full spectrum of neural activity during anesthesia. However, our primary goal is to demonstrate the feasibility of unsupervised clustering within a clinical framework, focusing on the hypnosis axis—one of anesthesia’s 3 key components. This study used frontal EEG signals, as used in processed systems such as BIS and SedLine. Frontal EEG monitoring inherently limits spatial coverage but remains the clinical standard due to its accessibility and reliability. The frontal cortex exhibits predictable EEG dynamics—α-spindle emergence and δ-wave dominance—with increasing anesthetic depth, correlating with loss of consciousness and hypnotic adequacy [-].
While this study does not include external validation or direct quantitative comparisons, this reflects the broader challenge in anesthetic depth classification, which lacks a universal standard. Although no intraoperative recall was observed, determining the optimal depth of anesthesia remains complex. Conventional monitors, such as BIS and SedLine, along with DSA visualization, aid clinical judgment but do not serve as definitive references. The study introduces a complementary tool to enhance anesthetic depth assessment. This is reflected in , where multiple monitoring modalities are integrated to provide additional insights.
Finally, the frame-by-frame analysis maximizes temporal sensitivity but may result in rapid state transitions, or “flickering,” as observed in . For clinical application, future iterations would likely require temporal smoothing algorithms to stabilize the output and minimize alarm fatigue. Despite strong visual correspondence with PSi trends, standardized quantitative metrics were not calculated due to methodological constraints. Specifically, the significant time delay inherent in the PSi algorithm [] limits direct linear correlation with the frame-by-frame FCM method, and imposing rigid thresholds for concordance rates contradicts the continuous, fuzzy nature of anesthetic depth.
Comparison With Prior Work
Unsupervised learning involves algorithms that identify patterns or structures within a dataset, facilitating the discovery of novel classification methods []. Systematic reviews have highlighted the effectiveness of unsupervised clustering methods in various medical applications. Clustering analysis has revealed pivotal features underlying the progression from early stage to advanced Alzheimer disease []. Unsupervised learning models applied in cardiac resynchronization therapy can accurately discern patient clusters and are valuable for phenotyping and predicting treatment responses []. In amyotrophic lateral sclerosis research, the k-means score, a hierarchical clustering method, has emerged as the most widely used method for stratification and progression prediction []. We predefined 3 practical categories—slight, proper, and deep anesthesia—to emulate the structured reasoning process that governs intraoperative anesthetic management. Clinicians continuously evaluate anesthetic depth and determine whether to increase, maintain, or decrease anesthetic delivery. Each titration is typically incremental and followed by a brief observation period to allow pharmacokinetic redistribution and physiological stabilization before reevaluation. Although the equilibration interval varies among individuals, such judgments integrate both the instantaneous anesthetic state and its temporal evolution []. FCM clustering offers distinct advantages for modeling this continuum. It enables classification into clinically interpretable states while concurrently generating fuzzy membership values that quantify the degree to which a given epoch inclines toward a “lighter” or “deeper” level of anesthesia. This property captures the continuous and overlapping nature of anesthetic depth and mirrors the gradual, feedback-driven adjustments that characterize intraoperative anesthesia management.
In our continuous monitoring data, transitions between anesthetic states occurred gradually, consistent with the physiological continuum of anesthesia depth. Abrupt shifts from “light” directly to “deep” anesthesia were uncommon and, when observed, were generally attributable to identifiable physiological perturbations—such as bolus drug administration, intense noxious stimulation, or sudden hemodynamic changes—rather than modeling artifacts. Processed EEG indices may also be transiently affected by electromyographic [], electrocardiographic [], or mechanical vibration artifacts, particularly during spine surgery. These interferences are usually recognizable in the raw EEG tracing and can be excluded from analysis.
Near-equal memberships across clusters (≈33% each) are uncommon and typically occur when a feature vector lies between centroids or during transient noise, reflecting a transitional or indeterminate phase rather than a distinct anesthetic state. Interpretation of anesthetic depth is inherently pattern-based, as clinicians assess temporal trends and spectral features in the DSA—for instance, alpha dominance suggests adequate hypnosis, whereas delta and theta predominance or burst suppression indicate a deeper anesthetic level []. Therefore, a single epoch with near-equal memberships would not influence clinical judgment, which relies on the overall evolution of EEG patterns rather than isolated points.
Prior research has focused on developing and enhancing automated system controls, including closed-loop anesthesia. Components such as measurement devices, controllers, and actuators are central to these advancements []. pEEG-derived indices, such as the BIS [,] and PSi [], frequently serve as key targets. This study introduced unsupervised learning clustering as a potential new approach for assessing anesthesia depth, offering additional avenues for improving automated anesthesia control systems.
The novel clustering approach provides an alternative method for assessing anesthesia depth, particularly focusing on the “hypnosis” axis, as depicted in . These figures illustrate the EEG density spectral array data from Participant 4, suggesting segmentation into slight, proper, and excessively deep anesthesia depths. Unlike traditional PSi values, which provide singular metrics, the representation of with fuzziness on the y-axis shows nuanced membership toward anesthesia depth clusters. The graphical depiction in highlights the peak values, indicating the period of deep anesthesia. This approach offers a novel tool for assisting clinical judgment in anesthesia depth assessment.
Among conventional unsupervised clustering paradigms, FCM, Gaussian Mixture Models (GMMs), and density-based algorithms such as Density-Based Spatial Clustering of Applications with Noise (DBSCAN) exhibit fundamentally distinct analytical mechanisms. FCM minimizes a distance-weighted objective function while permitting graded memberships across clusters—an essential property for anesthesia-related data in which EEG and physiological variables vary continuously and overlap across anesthetic states. In contrast, GMM represents data as a superposition of Gaussian components and assumes that each cluster conforms to an elliptical, symmetric distribution. However, anesthetic EEG features often display non-Gaussian characteristics, including skewness and heavy tails arising from nonlinear pharmacodynamic effects and interindividual variability, rendering GMM less robust and prone to boundary instability. Density-based algorithms such as DBSCAN, although effective in identifying discrete or spatially separated clusters, depend on fixed density thresholds and therefore perform poorly with continuous-depth data, where transitions between anesthetic states are gradual and density gradients evolve smoothly. Considering these properties, FCM provides a mathematically rigorous and physiologically consistent framework for delineating the smooth, overlapping transitions that define anesthetic depth.
Building upon these theoretical considerations, we initially explored k-means clustering but found it less flexible in classifying anesthetic depth. When visualizing frequency band proportions, k-means struggled to capture transition zones effectively, reinforcing our decision to use FCM for a more adaptable classification. The FCM algorithm stands out in unsupervised machine learning because of its adaptability and effectiveness in increasing data volumes. It iteratively adjusts centroids and clusters, creating personalized representations tailored to individuals, analogous to bespoke garments []. This adaptability ensures an accurate assessment of anesthesia depth dynamics, which is crucial for personalized healthcare.
Conclusions
In conclusion, this study established a machine learning–based methodology for anesthesia depth assessment, demonstrating its feasibility and providing preliminary insights into classification, visualization, and patient-specific management. By applying FCM clustering to processed EEG data, this novel approach enhances the understanding of anesthesia depth patterns and integrates with existing monitoring modalities, including PSi values and time-frequency image visualization for a more comprehensive assessment. Although preliminary, these findings lay the foundation for future research and refinement.
Acknowledgments
The authors declare the use of generative artificial intelligence in the writing process. According to the GAIDeT taxonomy (2025), the task of “Proofreading and editing” was delegated to ChatGPT (OpenAI) under full human supervision, specifically for grammatical error correction and phrasing improvements. The authors reviewed and edited the output as needed and take full responsibility for the content of the publication.
Funding
This work was supported by the National Science and Technology Council (NSTC), Taiwan [Grant number: NSTC 112-2314-B-A49 -068 -MY3].
Data Availability
The datasets generated or analyzed during this study are available from the corresponding author on reasonable request.
Authors' Contributions
Conceptualization: PYH, WLH, CHL, CKT
Methodology: PYH, WLH, HZH, CHL, CKT
Investigation: PYH, HZH, WLH
Formal analysis: PYH, WLH
Data curation: HZH
Writing – original draft: PYH
Writing – review and editing: CKT, CHL
Supervision: WKC, CKT, CHL
Project administration: WKC, CKT, CHL
Conflicts of Interest
None declared.
Multimedia Appendix 1
Detailed data preprocessing workflow and Fuzzy C-Means (FCM) parameter settings. Electromyography signals were processed via the Welch method (30-s windows, 2-s overlap). Normalized delta, high-theta, alpha, and beta band-power ratios were extracted as input features. The FCM algorithm (c = 3, m = 2) was applied with random initialization of cluster centers to identify three anesthesia depth clusters. Measures of dispersion for the delta band within each cluster are summarized in Table S1. Figures S1 and S2 show additional two-dimensional clustering distributions, demonstrating consistent three-cluster separation across different frequency-band pairings.
PDF File, 304 KBReferences
- Brown EN, Lydic R, Schiff ND. General anesthesia, sleep, and coma. N Engl J Med. Dec 30, 2010;363(27):2638-2650. [CrossRef] [Medline]
- Egan TD, Svensen CH. Multimodal general anesthesia: a principled approach to producing the drug-induced, reversible coma of anesthesia. Anesth Analg. Nov 2018;127(5):1104-1106. [CrossRef] [Medline]
- Ghoneim MM, Block RI, Haffarnan M, Mathews MJ. Awareness during anesthesia: risk factors, causes and sequelae: a review of reported cases in the literature. Anesth Analg. Feb 2009;108(2):527-535. [CrossRef] [Medline]
- Zhou X, Dong S, Xu Y. Molecular mechanisms of propofol-induced cognitive impairment: suppression of critical hippocampal pathways. J Neurochem. Apr 2025;169(4):e70070. [CrossRef] [Medline]
- Aldecoa C, Bettelli G, Bilotta F, et al. Update of the European Society of Anaesthesiology and Intensive Care Medicine evidence-based and consensus-based guideline on postoperative delirium in adult patients. Eur J Anaesthesiol. Feb 1, 2024;41(2):81-108. [CrossRef] [Medline]
- Da X, Li X, Dong A, Chen L, Ma Y, Li X. Effect of electroencephalogram-guided anesthesia on postoperative delirium in older adults after surgery: a systematic review and meta-analysis. Front Neurol. 2025;16:1638282. [CrossRef] [Medline]
- Bennett C, Voss LJ, Barnard JPM, Sleigh JW. Practical use of the raw electroencephalogram waveform during general anesthesia: the art and science. Anesth Analg. Aug 2009;109(2):539-550. [CrossRef] [Medline]
- Purdon PL, Sampson A, Pavone KJ, Brown EN. Clinical electroencephalography for anesthesiologists: Part I: background and basic signatures. Anesthesiology. Oct 2015;123(4):937-960. [CrossRef] [Medline]
- Chan MTV, Hedrick TL, Egan TD, et al. American Society for Enhanced Recovery and Perioperative Quality Initiative Joint Consensus Statement on the role of neuromonitoring in perioperative outcomes: electroencephalography. Anesth Analg. May 2020;130(5):1278-1291. [CrossRef] [Medline]
- Hashimoto DA, Witkowski E, Gao L, Meireles O, Rosman G. Artificial intelligence in anesthesiology: current techniques, clinical applications, and limitations. Anesthesiology. Feb 2020;132(2):379-394. [CrossRef] [Medline]
- Choi RY, Coyner AS, Kalpathy-Cramer J, Chiang MF, Campbell JP. Introduction to machine learning, neural networks, and deep learning. Transl Vis Sci Technol. Feb 27, 2020;9(2):14. [CrossRef] [Medline]
- Nasibov E, Ozgören M, Ulutagay G, Oniz A, Kocaaslan S. On the analysis of BIS stage epochs via fuzzy clustering. Biomed Tech (Berl). Jun 2010;55(3):147-153. [CrossRef] [Medline]
- Inan ZH, Kuntalp M. A study on fuzzy C-means clustering-based systems in automatic spike detection. Comput Biol Med. Aug 2007;37(8):1160-1166. [CrossRef] [Medline]
- Krajca V, Petránek S, Patáková I, Värri A. Automatic identification of significant graphoelements in multichannel EEG recordings by adaptive segmentation and fuzzy clustering. Int J Biomed Comput. 1991;28(1-2):71-89. [CrossRef] [Medline]
- Fehrlin ES, Hight D, Kaiser HA, et al. A pilot investigation evaluating relative changes in fronto-occipital alpha and beta spectral power as measurement of anesthesia hypnotic depth. Anesth Analg. Sep 1, 2023;137(3):656-664. [CrossRef] [Medline]
- Gutiérrez R, Maldonado F, Egaña JI, Penna A. Electroencephalographic alpha and delta oscillation dynamics in response to increasing doses of propofol. J Neurosurg Anesthesiol. Jan 1, 2022;34(1):79-83. [CrossRef] [Medline]
- Koch S, Stegherr AM, Mörgeli R, et al. Electroencephalogram dynamics in children during different levels of anaesthetic depth. Clin Neurophysiol. Oct 2017;128(10):2014-2021. [CrossRef] [Medline]
- Liu Q, Chen YF, Fan SZ, Abbod MF, Shieh JS. Improved spectrum analysis in EEG for measure of depth of anesthesia based on phase-rectified signal averaging. Physiol Meas. Feb 2017;38(2):116-138. [CrossRef] [Medline]
- Gu Y, Liang Z, Hagihira S. Use of multiple EEG features and artificial neural network to monitor the depth of anesthesia. Sensors (Basel). May 31, 2019;19(11):2499. [CrossRef] [Medline]
- Chen YF, Fan SZ, Abbod MF, Shieh JS, Zhang M. Electroencephalogram variability analysis for monitoring depth of anesthesia. J Neural Eng. Nov 17, 2021;18(6):066030. [CrossRef] [Medline]
- Bruhn J, Röpcke H, Hoeft A. Approximate entropy as an electroencephalographic measure of anesthetic drug effect during desflurane anesthesia. Anesthesiology. Mar 2000;92(3):715-726. [CrossRef] [Medline]
- Bruhn J, Lehmann LE, Röpcke H, Bouillon TW, Hoeft A. Shannon entropy applied to the measurement of the electroencephalographic effects of desflurane. Anesthesiology. Jul 2001;95(1):30-35. [CrossRef] [Medline]
- Röpcke H, Rehberg B, Koenen-Bergmann M, Bouillon T, Bruhn J, Hoeft A. Surgical stimulation shifts EEG concentration-response relationship of desflurane. Anesthesiology. Mar 2001;94(3):390-399. [CrossRef] [Medline]
- Hajat Z, Ahmad N, Andrzejowski J. The role and limitations of EEG-based depth of anaesthesia monitoring in theatres and intensive care. Anaesthesia. Jan 2017;72 Suppl 1(Suppl 1):38-47. [CrossRef] [Medline]
- Russell IF. The ability of bispectral index to detect intra-operative wakefulness during total intravenous anaesthesia compared with the isolated forearm technique. Anaesthesia. May 2013;68(5):502-511. [CrossRef] [Medline]
- Prichep LS, Gugino LD, John ER, et al. The Patient State Index as an indicator of the level of hypnosis under general anaesthesia. Br J Anaesth. Mar 2004;92(3):393-399. [CrossRef] [Medline]
- Obara S, Oishi R, Nakano Y, et al. Update on the SedLine® algorithm for calculating the Patient State Index of older individuals during general anesthesia: a randomized controlled trial. Minerva Anestesiol. Jul 2021;87(7):774-785. [CrossRef] [Medline]
- Operator’s manual: sedline sedation monitor. Masimo Corporation. 2018. URL: https://techdocs.masimo.com/globalassets/techdocs/pdf/lab-7373f_master.pdf [Accessed 2026-01-16]
- Müller J, Nowak S, Weidemeier M, et al. Duration of surgery and intraoperative blood pressure management are modifiable risk factors for postoperative neurocognitive disorders after spine surgery: results of the Prospective CONFESS Study. Spine (Phila Pa 1976). Aug 15, 2023;48(16):1127-1137. [CrossRef] [Medline]
- Seo JS, Park SW, Lee YS, Chung C, Kim YB. Risk factors for delirium after spine surgery in elderly patients. J Korean Neurosurg Soc. Jul 2014;56(1):28-33. [CrossRef] [Medline]
- Eagleman SL, Drover CM, Li X, MacIver MB, Drover DR. Offline comparison of processed electroencephalogram monitors for anaesthetic-induced electroencephalogram changes in older adults. Br J Anaesth. May 2021;126(5):975-984. [CrossRef] [Medline]
- García PS, Kreuzer M, Hight D, Sleigh JW. Effects of noxious stimulation on the electroencephalogram during general anaesthesia: a narrative review and approach to analgesic titration. Br J Anaesth. Feb 2021;126(2):445-457. [CrossRef] [Medline]
- Hagihira S. Changes in the electroencephalogram during anaesthesia and their physiological basis. Br J Anaesth. Jul 2015;115 Suppl 1(Suppl 1):i27-i31. [CrossRef] [Medline]
- Hight DF, Kaiser HA, Sleigh JW, Avidan MS. Continuing professional development module: an updated introduction to electroencephalogram-based brain monitoring during intended general anesthesia. Can J Anaesth. Dec 2020;67(12):1858-1878. [CrossRef] [Medline]
- Zhang Y, Wang Y, Cheng H, et al. EEG spectral slope: a reliable indicator for continuous evaluation of consciousness levels during propofol anesthesia. Neuroimage. Dec 2023;283:120426. [CrossRef]
- Obert DP, Schneider F, Schneider G, et al. Performance of the SEDLine monitor: age dependency and time delay. Anesth Analg. Oct 1, 2023;137(4):887-895. [CrossRef] [Medline]
- Alashwal H, El Halaby M, Crouse JJ, Abdalla A, Moustafa AA. The application of unsupervised clustering methods to Alzheimer’s disease. Front Comput Neurosci. 2019;13:31. [CrossRef] [Medline]
- Nazar W, Szymanowicz S, Nazar K, et al. Artificial intelligence models in prediction of response to cardiac resynchronization therapy: a systematic review. Heart Fail Rev. Jan 2024;29(1):133-150. [CrossRef] [Medline]
- Tavazzi E, Longato E, Vettoretti M, et al. Artificial intelligence and statistical methods for stratification and prediction of progression in amyotrophic lateral sclerosis: a systematic review. Artif Intell Med. Aug 2023;142:102588. [CrossRef] [Medline]
- Lichtenfeld F, Kratzer S, Hinzmann D, García PS, Schneider G, Kreuzer M. The influence of electromyographic on electroencephalogram-based monitoring: putting the forearm on the forehead. Anesth Analg. Jun 1, 2024;138(6):1285-1294. [CrossRef] [Medline]
- Tatum WO, Dworetzky BA, Freeman WD, Schomer DL. Artifact: recording EEG in special care units. J Clin Neurophysiol. Jun 2011;28(3):264-277. [CrossRef] [Medline]
- Weyer C, Prötzl E, Kinateder T, et al. The strength of alpha oscillations in the electroencephalogram differently affects algorithms used for anesthesia monitoring. Anesth Analg. Dec 1, 2021;133(6):1577-1587. [CrossRef] [Medline]
- Brogi E, Cyr S, Kazan R, Giunta F, Hemmerling TM. Clinical performance and safety of closed-loop systems: a systematic review and meta-analysis of randomized controlled trials. Anesth Analg. Feb 2017;124(2):446-455. [CrossRef] [Medline]
- Wang D, Song Z, Zhang C, Chen P. Bispectral index monitoring of the clinical effects of propofol closed-loop target-controlled infusion: systematic review and meta-analysis of randomized controlled trials. Medicine (Baltimore). Jan 29, 2021;100(4):e23930. [CrossRef] [Medline]
- Castellanos Peñaranda C, Casas Arroyave FD, Gómez FJ, et al. Technical and clinical evaluation of a closed loop TIVA system with SEDLineTM spectral density monitoring: multicentric prospective cohort study. Perioper Med (Lond). 2020;9(1):1. [CrossRef] [Medline]
- Nayak J, Naik B, Behera HS. Fuzzy c-means (FCM) clustering algorithm: a decade review from 2000 to 2014. In: Computational Intelligence in Data Mining. Vol 2. New Delhi: Springer; 2015:978-981. [CrossRef] ISBN: 978-81-322-2208-8_14
Abbreviations
| BIS: Bispectral Index |
| DBSCAN: Density-Based Spatial Clustering of Applications with Noise |
| DSA: density spectral array |
| EEG: electroencephalography |
| EMG: electromyography |
| FCM: Fuzzy C-Means |
| GMM: Gaussian Mixture Model |
| pEEG: processed electroencephalography |
| PSi: Patient State Index |
Edited by Andrew Coristine; submitted 20.May.2025; peer-reviewed by Cigdem Guluzar Altintop, Tzu-Ping Kao; accepted 24.Dec.2025; published 06.Feb.2026.
Copyright© Po-Yu Huang, Wei-Lun Hong, Hui-Zen Hee, Wen-Kuei Chang, Ching-Hung Lee, Chien-Kun Ting. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 6.Feb.2026.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.

