Skip to Content
  • Article
  • Open Access

24 November 2026

15 Pages

Multimodal Audiovisual Artificial Intelligence for Observer-Rated Pain Behavior in the Postanesthesia Care Unit

,
,
,
,
,
and
1
Department of Anesthesiology and Pain Medicine, Asan Medical Center, Brain Korea 21 Project, University of Ulsan College of Medicine, Seoul 05505, Republic of Korea
2
Department of Nursing, Acute Pain Service Team, Asan Medical Center, Seoul 05505, Republic of Korea
3
Big Data Research Center, Asan Institute for Life Science, Asan Medical Center, Seoul 05505, Republic of Korea
*
Author to whom correspondence should be addressed.
J. Clin. Med.2026, 15(23), 9237;https://doi.org/10.3390/jcm15239237 
(registering DOI)
This article belongs to the Section Anesthesiology

Abstract

Background/Objectives: Pain assessment is challenging when postoperative patients cannot reliably self-report. Audiovisual artificial intelligence may enable passive assessment of pain-related behavior, but its supervision target should correspond to information observable from video and audio. We developed and internally validated multimodal audiovisual models supervised by the Pain Assessment in Advanced Dementia (PAINAD), an observer-rated behavioral scale, and explored parallel Numeric Rating Scale (NRS)-supervised models as a clinical benchmark. Methods: This secondary analysis used 666 audiovisual recordings from 100 patients in a prospectively collected observational cohort. Recordings were categorized as no pain, mild pain, or moderate-to-severe pain. Image-only, video-only, and video-plus-audio models were trained using PAINAD supervision and evaluated through patient-level nested cross-validation. Balanced accuracy and quadratic weighted kappa (QWK) were the primary performance metrics. NRS-supervised models and the agreement between NRS and PAINAD were examined as secondary exploratory analyses. Results: With PAINAD supervision, balanced accuracy was 0.785, 0.808, and 0.817 for the image-only, video-only, and video-plus-audio models, respectively; corresponding QWK values were 0.760, 0.793, and 0.801. The video-plus-audio model yielded the highest point estimates, but paired confidence intervals left its incremental benefit over video-only input uncertain. Parallel NRS-supervised models showed balanced accuracies of 0.700–0.737 without improvement across increasingly multimodal inputs. QWK between NRS and PAINAD categories was 0.679. Conclusions: PAINAD-supervised audiovisual models demonstrated promising performance in internal validation for PAINAD-category prediction in communicative surgical patients. Generalizability beyond this small, predominantly male, single-center urological cohort remains unestablished. Application to patients unable to self-report requires direct prospective validation.

1. Introduction

Pain is inherently subjective, and patient self-report such as the Numeric Rating Scale (NRS) remains the preferred approach to assessing postoperative pain when reliable communication is possible [1,2,3]. In the postanesthesia care unit (PACU), however, residual anesthesia, sedation, disorientation, cognitive impairment, or communication difficulty may temporarily make self-reported measures unreliable or unavailable [3,4,5]. In these circumstances, clinicians rely more on observable behavioral manifestations of pain, but their interpretation may be affected by interobserver variability and subjective judgement.
Artificial intelligence (AI) offers the possibility of continuously and noninvasively analyzing such behaviors from video and audio. Previous studies have demonstrated the feasibility of automated pain recognition using facial images, video, and multimodal physiological signals [6,7,8,9,10,11,12,13]. However, an important methodological question is what an audiovisual model should be trained to predict. An audiovisual system directly observes external manifestations such as facial expression, body movement, breathing, and vocalization; therefore, training the model against a structured behavioral assessment may provide a supervision target more closely aligned with the information available to it.
The Pain Assessment in Advanced Dementia (PAINAD) is an observer-rated scale comprising five behavioral domains: breathing, negative vocalization, facial expression, body language, and consolability [14]. It does not require an active numerical response from the patient, and behavioral pain scales are recommended when reliable self-report is unavailable [15,16,17]. The Korean version of PAINAD (PAINAD-K) has also been evaluated for nonverbal pain assessment in the PACU [18]. Because several PAINAD domains correspond directly to visual or auditory information, PAINAD may provide a structured behavioral supervision framework for multimodal audiovisual AI. Whether postoperative pain behaviors defined in this manner can be learned from short clinical recordings, and whether temporal and auditory information contribute beyond a static facial image, remains to be established.
In this secondary analysis of a prospectively collected surgical cohort, we developed and internally validated audiovisual AI models using PAINAD as the primary supervision target. We compared image-only, video-only, and video-plus-audio configurations to explore the contributions of temporal and auditory information. Because the development cohort could provide reliable self-report, we additionally trained parallel NRS-supervised models using identical architectures and patient partitions and examined agreement between the two supervision targets. We hypothesized that PAINAD-defined pain behaviors could be classified from short audiovisual recordings; we additionally explored whether incorporating temporal and auditory information improved classification performance.

2. Materials and Methods

2.1. Study Design and Participants

This secondary analysis used data prospectively collected for an observational study at Asan Medical Center, a tertiary hospital in Seoul, Republic of Korea, from 24 February to 8 May 2025. The parent study protocol was approved by the Institutional Review Board of Asan Medical Center on 11 February 2025 (IRB No. 2025-0167), and all participants provided written informed consent. Neither the parent observational study nor this secondary analysis was registered in a public registry.
The protocol dated before data collection specified the overall objective of developing and evaluating an AI model for postoperative pain assessment and the collection of NRS and PAINAD-K scores. The specific ordinal prediction task, model architecture, input configurations, and patient-level nested validation procedure used in this report were not specified in that protocol. Comparisons of input configurations, analyses of NRS supervision and interscale agreement, and the additional sensitivity analyses were exploratory. Adult patients undergoing urological surgery under general anesthesia were recruited through convenience sampling either the day before or the day of surgery. Eligible patients were between 19 and 80 years old, recovered in the PACU after surgery, were able to understand the NRS and communicate a self-reported pain score, and were subsequently transferred from the PACU to a general ward. Exclusion criteria included facial deformities or prior facial surgeries that could interfere with facial expression analysis, neurological or psychiatric conditions impairing communication or facial expression, and physical impairments significantly affecting observable movement. The present analysis included 666 audiovisual recordings from 100 participants in the parent cohort, each paired with NRS and PAINAD assessments. The completed STROBE checklist (Supplementary File S1) and TRIPOD+AI checklist (Supplementary File S2) are provided in the Supplementary Materials.

2.2. Data Collection

Before surgery, participants received standardized instructions on how to use the NRS. Preoperative baseline assessments were conducted in the general ward, and repeated postoperative assessments were conducted in the PACU. PACU assessments were conducted upon admission, before and after analgesic administration, and immediately prior to discharge. Time from PACU admission to assessment was determined using available timestamps. Prior analgesic exposure was classified by comparing documented administration times with recording timestamps. Exposure was classified as indeterminate when the available timestamps did not establish whether administration preceded recording.
At each assessment, a 10–20-s audiovisual recording was obtained using an HDR-PJ340 camcorder (Sony, Tokyo, Japan), capturing the patient’s face and upper body within the frame. Audio was recorded simultaneously using the camcorder’s built-in microphone. Observable pain behavior was evaluated using the Korean version of the PAINAD (PAINAD-K). The patient was asked to report pain intensity using the NRS only after audiovisual recording had ended. The NRS question and the elicited numerical response were therefore not included in the recordings used as model input. The written protocol did not specify a staff-silence instruction during recording. Hereafter, PAINAD refers to the PAINAD-K as implemented in this study. Both PAINAD raters had more than 20 years of experience in PACU nursing and postoperative pain assessment. One PACU nurse assessed PAINAD at the bedside during recording. A second PACU nurse independently assessed PAINAD afterward by reviewing the recording, without access to the first nurse’s PAINAD rating or the corresponding NRS score. Final PAINAD reference ratings were determined through discussion and consensus between the two nurses. Only the final consensus ratings were retained in the study dataset; individual pre-consensus ratings and disagreement records were unavailable. Consequently, pre-consensus agreement for total scores or categories, the corresponding confidence intervals, and the frequency of disagreements could not be quantified retrospectively. Observed respiratory behavior, patient vocalizations, and facial expressions informed the breathing, negative vocalization, and facial expression ratings, respectively. Consolability was scored according to the need for consolation and the patient’s observed response to verbal reassurance, following the PAINAD-K anchors: no need for consolation, reassurance or distraction by voice, and inability to be consoled or reassured. Body language was scored according to observed upper-body posture and movement, following the PAINAD-K anchors: relaxed posture, tension or fidgeting, rigidity, clenched fists, pulling or pushing away, or striking out.

2.3. Pain Labels

The NRS is an 11-point self-reported scale ranging from 0, indicating no pain, to 10, indicating the worst imaginable pain. PAINAD is an observer-rated behavioral scale comprising five domains—breathing, negative vocalization, facial expression, body language, and consolability—each scored from 0 to 2, yielding a total score ranging from 0 to 10. For model development, NRS and PAINAD scores were categorized as no pain (0), mild pain (1–3), and moderate-to-severe pain (4–10). For PAINAD, the boundary of 4 was based on published applications describing scores of 1–3, 4–6, and 7–10 as mild, moderate, and severe, respectively [19,20]. The latter two ranges were combined into a single 4–10 category. The NRS grouping followed conventional pain-severity categories [21]. These PAINAD ranges were adopted as operational categories for predicting observer-rated pain-related behavior, rather than as clinical severity thresholds validated in communicative postoperative patients. Identical numerical boundaries were not assumed to indicate equivalent pain severity across PAINAD and NRS. This grouping also reduced class sparsity because PAINAD scores of 7–10 accounted for only 52 of 666 recordings (7.8%), potentially resulting in small and variable severe-pain counts across the patient-level cross-validation folds. PAINAD-supervised models constituted the main model-development analysis. Parallel NRS-supervised models were developed using identical architecture, patient partitions, preprocessing, and training procedures as a secondary exploratory clinical benchmark.

2.4. Image, Video, and Audio Processing

Three input configurations were evaluated: image-only, video-only, and video-plus-audio. Eight frames were sampled at approximately equal temporal intervals throughout the entire duration of each 10- to 20-s recording. Facial regions were detected and cropped using OpenFace 3.0 [22]. When available, the cropped facial images were used and resized to a uniform input resolution of 256 × 256 pixels. If a cropped facial image was unavailable, the corresponding original frame was resized and retained. Pixel intensities were scaled to a range of 0 to 1. Among the 5328 sampled frames from 666 recordings, cropped facial images were generated for 5178 frames (97.18%), while original frames were retained for 150 frames (2.82%). For an exploratory analysis, we compared recording-level misclassification rates by fallback status, defined as whether at least one of the eight sampled frames required use of the original frame. We used pooled out-of-fold predictions from both video-only models.
The image-only model utilized the middle frame from the eight-frame sequence. The video-only model processed all eight frames in temporal order. The video-plus-audio model incorporated the same eight frames along with the corresponding audio recording. Audio signals were sampled at 16 kHz. Each waveform was transformed into a 64-bin mel spectrogram using a 1024-point fast Fourier transform with a hop length of 256 samples. Stochastic image and audio augmentation were applied exclusively to the training data, while validation and test data underwent deterministic preprocessing without any random augmentation.

2.5. Model Architecture

The overall audiovisual preprocessing and model architecture are illustrated in Figure 1. A multimodal deep learning architecture was employed across all supervision targets and input configurations [23]. Visual features were extracted using an EfficientNetV2-S network pretrained on ImageNet [24]. In the video configurations, each of the eight frames was processed by the same shared visual encoder, and the resulting feature maps were preserved in temporal order. For the video-audio model, the log-mel spectrogram was treated as a single-channel image and processed using a separate EfficientNetV2-S encoder. In an exploratory inference-time analysis across all five outer test folds, we held the trained video-plus-audio models and video inputs fixed and compared original audio features, audio features replaced with zeros, and audio features randomly reassigned from another patient’s recording.
Figure 1. Overall architecture of the multimodal audiovisual pain classification model. Each 10–20-s recording was preprocessed into eight temporally ordered facial frames and a 64-bin log-mel spectrogram. The image-only, video-only, and video-plus-audio models used one central frame, eight frames, and eight frames with audio, respectively. Features extracted using EfficientNetV2-S encoders were integrated by a transformer-based fusion module and classified using Conditional Ordinal Regression for Neural Networks as no pain (score 0), mild pain (scores 1–3), or moderate-to-severe pain (scores 4–10). PAINAD was the primary supervision target; NRS-supervised models used the same architecture and category definitions. Facial images are staged photographs of an author, not patients or study participants, and are reproduced with the author’s written consent for publication. PAINAD, Pain Assessment in Advanced Dementia; NRS, Numeric Rating Scale.
The visual and audio encoders employed the same backbone architecture but did not share parameters. Visual and audio feature maps were projected into a common latent space and transformed into modality-specific tokens. For the video-only and video-plus-audio configurations, learnable three-dimensional positional embeddings that encode temporal position were applied to the visual tokens before transformer fusion (Table S1). These tokens were integrated using a transformer-based fusion module featuring learnable fusion tokens, multi-head attention, feed-forward layers, residual connections, and layer normalization. The resulting fused representation was then passed to the final pain-classification head. For the image-only and video-only models, audio tokens were excluded. In the video-audio model, both visual and audio tokens were included in the fusion module. Implementation and training settings are detailed in Supplementary Table S1, and the deep-learning software environment is reported in Supplementary Table S2.

2.6. Ordinal Classification

PAINAD-category prediction was formulated as an ordinal task because the operational score bands represent increasing levels of observer-rated pain-related behavior. Unlike conventional multiclass classification, which does not explicitly consider the ordering among outcome categories, ordinal learning incorporates the natural order of no pain, mild pain, and moderate-to-severe pain [25]. Models were trained using Conditional Ordinal Regression for Neural Networks (CORN), which estimates successive ordinal thresholds using conditional probabilities and is designed to produce rank-consistent ordinal outputs [26]. For the three ordered classes, the model generated two logits corresponding to successive conditional probabilities. During validation and testing, these logits were converted into mutually exclusive class probabilities as described in Supplementary Method S1. The class with the highest probability was assigned as the final prediction.

2.7. Model Training and Internal Validation

Model development and internal validation were conducted using a single run of patient-level nested cross-validation with five outer folds and five inner folds within each outer training set. The random seed was set to 831 (Table S1). To prevent information leakage between the training and evaluation datasets, all recordings from the same patient were assigned to the same fold. In each iteration of the outer fold, one patient group was held out as the test set, while the remaining patients were used for model training and validation through five inner-fold iterations. Class imbalance in the training data was addressed using inverse-frequency weighted random sampling. The original class distributions were preserved in the validation and test sets.
Models were trained using the AdamW optimizer with an initial learning rate of 1 × 10−4, a batch size of 4, and a maximum of 64 epochs. Training began with a one-epoch warm-up, followed by cosine learning rate decay. For each inner fold, we retained the checkpoint with the highest validation balanced accuracy and stopped training if this metric did not improve for eight consecutive epochs (Table S1). The five selected inner-fold models generated class probabilities for the corresponding outer test set. These probabilities were averaged for each recording, and the class with the highest mean probability was used as the final ensemble prediction. The same patient partitions and training procedures were applied across all supervision targets and modality configurations. Outer-fold test results were not used for checkpoint selection, model selection, or hyperparameter tuning.

2.8. Statistical Analysis

Continuous variables are presented as means (standard deviations), and categorical variables as numbers (percentages). Primary performance estimates were calculated at the recording level using pooled out-of-fold predictions from the five outer cross-validation folds. Each recording was evaluated only when all recordings from the same patient were excluded from model training. In a patient-balanced sensitivity analysis of both PAINAD- and NRS-supervised models, balanced accuracy and QWK were recalculated by weighting each recording by the inverse of the number of recordings contributed by its patient. This gave each patient the same total recording weight.
The primary model performance analysis evaluated PAINAD-supervised models across three input configurations: image-only, video-only, and video-plus-audio. The principal performance metrics were balanced accuracy and quadratic weighted kappa (QWK). Balanced accuracy was calculated as the unweighted mean of class-specific recall, thereby assigning equal importance to each pain category regardless of class frequency. QWK measured chance-corrected ordinal agreement between predicted and reference categories, with progressively greater penalties for disagreements between more distant categories. Secondary performance metrics included class-specific recall, precision, and F1 score, ordinal mean absolute error (MAE), and row-normalized confusion matrices. For MAE calculation, no pain, mild pain, and moderate-to-severe pain were coded as 0, 1, and 2, respectively. We used 10,000 patient-cluster bootstrap replicates of the pooled out-of-fold predictions to estimate 95% confidence intervals for balanced accuracy and QWK in both the recording-level and patient-balanced analyses. Patients were sampled with replacement, retaining all recordings from each selected patient. We used the same patient-cluster bootstrap procedure to estimate 95% confidence intervals for recording-level recall in each pain category. Within each supervision target, we used identical patient bootstrap samples to estimate paired differences for video-only minus image-only and video-plus-audio minus video-only. Performance was also evaluated separately for each outer fold. Differences were interpreted using their estimates and confidence intervals without formal hypothesis testing. In an exploratory analysis, we evaluated the existing out-of-fold predictions from both video-only models using only PACU recordings, retaining the original patient-level fold assignments. We used 10,000 patient-cluster bootstrap replicates to estimate 95% confidence intervals where estimable.
The performance of the parallel NRS-supervised models was evaluated using the same metrics as a secondary exploratory benchmark. The distributions of categorized NRS and PAINAD labels were summarized as numbers (percentages). For the interscale agreement analysis, NRS and PAINAD-K labels were matched one-to-one by unique recording identifier. Agreement between NRS and PAINAD categories was assessed using exact agreement and the QWK. Exact agreement was defined as the proportion of recordings assigned to the same category by both scales. Chance-expected exact agreement was calculated from the marginal category distributions. The 95% CI for QWK was estimated using 10,000 patient-cluster bootstrap replicates, retaining all paired recordings for each sampled patient.
Exploratory error analyses for moderate-to-severe pain were based on predictions from the video-only models. In these analyses, no pain and mild pain were combined into a lower-pain category, while moderate-to-severe pain was treated as the higher-pain category. A false-positive classification of the higher-score category was defined as a higher-category prediction when the corresponding reference label was in a lower-score category. These offline, reference-specific classification errors should not be interpreted as clinical alarm rates or evidence of improved patient safety. Conversely, a false-negative classification was defined as a prediction of a lower-score category (0–3) when the corresponding reference label indicated the higher-score category (4–10).
Reference-specific false-positive and false-negative classifications were summarized as n/N (%), using each model’s corresponding reference labels. Their denominators comprised lower-score reference recordings (0–3) and higher-score reference recordings (4–10), respectively. These proportions were interpreted descriptively because PAINAD and NRS defined different populations. In a separate cross-supervision evaluation, both video-only models were evaluated against each reference using the same recordings (Table S8). For each evaluation reference, paired differences in balanced accuracy and QWK were calculated as the PAINAD-supervised model minus the NRS-supervised model. We estimated 95% CIs using 10,000 paired patient-cluster bootstrap replicates, retaining all recordings and both models’ predictions for each sampled patient.
In an exploratory sensitivity analysis of both video-only models, we adjusted out-of-fold class probabilities using the original class proportions in the corresponding outer training set and the expected uniform class distribution under inverse-frequency weighted sampling. We reapplied the argmax rule without retraining and compared balanced accuracy, QWK, class-specific recall, Brier score, and expected calibration error (ECE) before and after adjustment.
Analyses were performed using Python 3.11 with NumPy 1.26.1, Statsmodels 0.14.6, and scikit-learn 1.7.2.

3. Results

3.1. Study Cohort and Recording Characteristics

Of the 104 patients who provided written informed consent, four were excluded due to surgery cancellation (n = 1) or postoperative transfer to the intensive care unit (n = 3). The final analysis included 666 audiovisual recordings from 100 patients, each paired with NRS and PAINAD assessments (Figure S4). The median was 7 recordings per patient (IQR, 6–7), with a range of 3–12. Participant characteristics are summarized in Table 1 The mean age was 63.1 years (SD, 8.8), and 86 patients (86.0%) were male. The mean body mass index was 25.4 kg/m2 (SD, 3.1). The mean durations of anesthesia, surgery, and PACU stay were 153.8 min (SD, 46.2), 103.1 min (SD, 42.7), and 65.4 min (SD, 13.6), respectively. Among the 666 recordings, 124 (18.6%) were categorized as no pain, 306 (45.9%) as mild pain, and 236 (35.4%) as moderate-to-severe pain according to PAINAD. At the patient level, 69 of 100 patients (69.0%) contributed at least one recording categorized as moderate-to-severe pain according to PAINAD, and 99 of 100 patients (99.0%) contributed at least one such recording according to NRS. Of the 666 recordings, 102 were obtained in the preoperative ward and 564 in the PACU. All ward recordings were categorized as no pain by both scales. Among PACU recordings, 22/564 (3.9%) were categorized as no pain by PAINAD and 1/564 (0.2%) by NRS. Full category distributions by recording setting are provided in Table S6. Raw PAINAD and NRS score distributions and PAINAD domain-level scores are reported in Table S7.
Table 1. Participant characteristics.
Of the 564 PACU recordings, 563 had valid assessment timestamps. The median time from PACU admission to assessment was 22 min (IQR, 6–41 min), with a range of 0–69 min. Prior analgesic administration was confirmed for 412 recordings (73.0%), no prior administration was documented for 102 (18.1%), and exposure was indeterminate for 50 (8.9%). Standardized sedation scores were not collected (Table S4).

3.2. Model Classification Performance

The performance of the PAINAD-supervised models based on input configuration is presented in Table 2 and Figure 2. Balanced accuracy was 0.785 for the image-only model, 0.808 for the video-only model, and 0.817 for the video-plus-audio model. The corresponding quadratic weighted kappa values were 0.760, 0.793, and 0.801, respectively. Figure 2 and Supplementary Figure S1 show recording-level balanced accuracy and QWK with patient-clustered 95% confidence intervals for the PAINAD- and NRS-supervised models, respectively. For the PAINAD-supervised models, video-only minus image-only differences were 0.023 (95% CI, −0.001 to 0.047) for balanced accuracy and 0.033 (95% CI, −0.001 to 0.068) for QWK. Video-plus-audio minus video-only differences were 0.009 (95% CI, −0.012 to 0.030) and 0.008 (95% CI, −0.022 to 0.037), respectively (Table S3B). Patient-balanced estimates and outer-fold results are provided in Table S3A and S5, respectively. Recall for the moderate-to-severe PAINAD category was 0.775 (95% CI, 0.698–0.840) with video-only input and 0.754 (95% CI, 0.667–0.827) with video-plus-audio input (Table S3C).
Table 2. Performance of PAINAD-supervised models by input configuration.
Figure 2. Performance of PAINAD-supervised models across different input configurations. (A) Balanced accuracy. (B) Quadratic weighted kappa (QWK). Points represent recording-level estimates from pooled out-of-fold predictions. Horizontal error bars show 95% confidence intervals estimated using 10,000 patient-cluster bootstrap replicates. Paired differences between configurations are reported in Table S3B. PAINAD, Pain Assessment in Advanced Dementia.
Class-specific performance was relatively consistent across the three pain categories. Across the three input configurations, F1 scores ranged from 0.874 to 0.892 for no pain, from 0.780 to 0.819 for mild pain, and from 0.738 to 0.784 for moderate-to-severe pain. The video-plus-audio model achieved F1 scores of 0.892, 0.819, and 0.784 for no pain, mild pain, and moderate-to-severe pain, respectively. Figure 3 presents the row-normalized and raw-count confusion matrices for the PAINAD-supervised video-only model.
Figure 3. Confusion matrices for the PAINAD-supervised video-only model based on pooled out-of-fold predictions for 666 recordings. The left panel shows row-normalized proportions, and the right panel shows raw recording counts. Rows represent reference categories, and columns represent predicted categories. The ordinal mean absolute error (MAE) was 0.195 category steps, with no pain, mild pain, and moderate-to-severe pain coded as 0, 1, and 2, respectively. PAINAD, Pain Assessment in Advanced Dementia.

3.3. Exploratory Analyses Using NRS Supervision

In the secondary exploratory analyses, 103 recordings (15.5%) were classified as no pain, 110 (16.5%) as mild pain, and 453 (68.0%) as moderate-to-severe pain according to the NRS. Exact categorical agreement between NRS and PAINAD was 65.6% (437/666), compared with a chance-expected exact agreement of 34.6% based on the marginal category distributions. QWK was 0.679 (95% CI, 0.625–0.731). Among the 306 recordings categorized as mild pain by PAINAD, 208 (68.0%) were categorized as moderate-to-severe pain by NRS (Figure S3).
For the NRS-supervised models, balanced accuracy was 0.737, 0.732, and 0.700 for image-only, video-only, and video-plus-audio input, respectively. The corresponding QWK values were 0.666, 0.736, and 0.686 (Figure S1). Thus, neither metric showed a consistent numerical improvement with the addition of temporal or auditory information. Across the NRS-supervised models, recall for no pain was consistently high, whereas the F1 score for mild pain ranged from 0.322 to 0.383. In the video-only models, 50.0% of NRS-labeled mild-pain recordings were classified as moderate-to-severe pain, compared with 15.4% of PAINAD-labeled mild-pain recordings. Detailed performance results of the NRS-supervised models are provided in Table S12 and Figure S1. Figure S2 presents the row-normalized and raw-count confusion matrices for the NRS-supervised video-only model. The cross-tabulation of NRS and PAINAD categories is shown in Figure S3. In the PACU subset, balanced accuracy and QWK were 0.536 and 0.584 for the PAINAD-supervised video-only model and 0.402 and 0.149 for the NRS-supervised video-only model, respectively (Table S14). Neither model correctly classified the PACU recordings categorized as no pain by its corresponding reference (PAINAD, 0/22; NRS, 0/1). The NRS balanced accuracy is descriptive because no-pain recall could not be meaningfully estimated from one recording.
At least one frame required fallback in 69 of 666 recordings (10.36%). For recordings with and without fallback, respectively, the classification error rates were 28.99% and 17.92% for the PAINAD-supervised video-only model and 14.49% and 29.98% for the NRS-supervised video-only model (Table S9).
Compared with original audio, shuffling audio features yielded numerically lower balanced accuracy and QWK for both supervision targets. Zeroing audio features lowered both metrics under PAINAD supervision and increased both under NRS supervision (Table S10).
After prior adjustment, QWK increased from 0.7360 to 0.8376 for the NRS-supervised video-only model, whereas balanced accuracy decreased from 0.7322 to 0.6658 and mild-pain recall decreased from 50.0% to 1.8%. Changes in balanced accuracy and QWK were smaller for the PAINAD-supervised video-only model. Brier scores and ECE were numerically lower after adjustment for both models (Table S11).

3.4. Exploratory Target-Specific Classification Errors

Using each model’s corresponding reference, higher-category false-positive classifications occurred in 48/430 recordings (11.2%) for the PAINAD-supervised video-only model and 56/213 (26.3%) for the NRS-supervised model. Higher-category false-negative classifications occurred in 53/236 recordings (22.5%) and 133/453 (29.4%), respectively. These proportions describe errors in different reference-defined populations and are reported descriptively (Table S13). When both video-only models were evaluated against PAINAD, balanced accuracy and QWK were higher for the PAINAD-supervised model. When both were evaluated against NRS, the 95% CI for the paired difference in balanced accuracy included zero, whereas QWK was lower for the PAINAD-supervised model (0.6386 vs. 0.7360; paired difference, −0.0975; 95% CI, −0.1441 to −0.0522; Table S8).

4. Discussion

In this study, we developed and internally validated audiovisual AI models for predicting PAINAD categories in communicative patients undergoing urological surgery. The models demonstrated consistent ordinal classification performance across image-only, video-only, and video-plus-audio inputs, with the highest balanced accuracy and quadratic weighted kappa observed in the video-plus-audio configuration. Class-specific performance was relatively even across no pain, mild pain, and moderate-to-severe pain categories. These findings demonstrate internal prediction of PAINAD-defined behavioral categories from short recordings. Agreement with these labels does not independently establish the accuracy of subjective pain-intensity assessment.
PAINAD was selected not because it represents an objective or definitive measure of pain, but because it provides a structured, observer-rated assessment of pain-related behavior. Several PAINAD domains—including facial expression, negative vocalization, breathing, and body language—conceptually correspond to information that can be captured through video and audio. In the present study, PAINAD therefore served as a behavioral supervision framework for model development rather than as a substitute for routine patient-reported pain assessment.
Among the PAINAD-supervised models, video plus audio yielded the highest point estimates for balanced accuracy and QWK. For these models, the paired confidence intervals for both metrics included zero in the video-only versus image-only and video-plus-audio versus video-only comparisons. The incremental benefits of using multiple frames and adding audio therefore remain uncertain. Because we did not perform a frame-order-shuffling ablation, the comparison between eight-frame and single-frame inputs could not isolate the contribution of temporal order. For the moderate-to-severe PAINAD category, adding audio was associated with lower recall (0.754 vs. 0.775), higher precision (0.817 vs. 0.792), and the same F1 score (0.784). The exploratory audio perturbation analysis showed that the trained models were sensitive to changes in audio input, but it could not distinguish patient vocalizations from staff speech or environmental sounds.
A potential advantage of this approach is that model inference relies on passive audiovisual input rather than an active verbal or numerical response from the patient. After further validation, such a system could complement pain assessment when self-reporting is temporarily delayed or unreliable during recovery from anesthesia. However, all participants in the current development cohort were able to understand the NRS and report their pain. Therefore, the applicability of the model to patients who are drowsy, delirious, cognitively impaired, or otherwise unable to communicate remains unknown and requires direct prospective evaluation.
Comparisons between supervision targets depended on the evaluation reference (Table S8). The differences in category assignment despite the observed ordinal agreement limit the interchangeability of NRS and PAINAD as supervision targets. Against PAINAD, the PAINAD-supervised model had higher balanced accuracy and QWK. Against NRS, the paired balanced-accuracy interval included zero, whereas QWK favored NRS supervision. These results reflect agreement with the selected reference and do not establish clinical superiority, reduced clinical false alarms, or improved patient safety. Instead, these findings align with the distinction between patient-reported pain intensity and observer-rated pain-related behavior. The NRS remains the preferred measure when reliable self-report is available, whereas PAINAD-based supervision may be more directly aligned with the observable information provided to an audiovisual model.
This study has several limitations. First, this single-center study used convenience sampling and included a small cohort of 100 patients undergoing urological surgery, predominantly men. These characteristics limit the generalizability of the findings to more diverse surgical populations and clinical settings. Second, although the proposed approach is designed to operate without active patient self-reporting, all participants in the development cohort were able to understand the NRS and communicate a pain score. Therefore, model performance in patients who are drowsy, delirious, cognitively impaired, or otherwise unable to communicate was not directly evaluated. Third, the PAINAD was originally developed for patients with advanced dementia [14]. Although its Korean version has been evaluated in older PACU patients unable to communicate [18], its use as a supervisory target in a broader postoperative population requires further validation. Moreover, PAINAD remains an observer-rated behavioral scale rather than an objective ground truth for pain. Only the final consensus PAINAD ratings were retained, preventing estimation of pre-consensus inter-rater agreement and its confidence intervals. This limits assessment of the reproducibility of the reference ratings and interpretation of model performance in relation to variability between human raters. Fourth, all preoperative ward recordings were categorized as no pain on both scales, whereas the no-pain category was uncommon in the PACU. The models may therefore have used cues related to the recording setting, such as residual visual information in uncropped frames or ambient sounds, potentially increasing no-pain recall and, in turn, pooled balanced accuracy. Patient-level cross-validation does not address this source of confounding. Performance was lower when we restricted evaluation to PACU recordings. The reduction in balanced accuracy reflected lower recall for the no-pain category. Because the models were developed using recordings from both settings, recording-setting confounding remains possible. Fifth, patients who contributed more recordings had a greater influence on the primary recording-level estimates. The patient-balanced sensitivity analysis yielded numerically similar estimates for both supervision targets (Table S3A). Sixth, categorizing NRS and PAINAD scores into three ordinal classes may have reduced the information contained in the original scores [27]. The PAINAD category boundaries were based on previously published score interpretations rather than validation of clinical severity thresholds in the present population. Sensitivity to alternative PAINAD cut-points was not examined; therefore, the findings should be interpreted within the selected category definitions. The 10–20-s recordings may not have consistently captured whether reassurance was needed or how the patient responded, limiting assessment of consolability from the recordings. Facial cropping may also have reduced the visibility of broader body language. Finally, internal validation was based on a single nested cross-validation run, leaving sensitivity to the choice of random seed unassessed. Before clinical implementation, external validation should include independent centers, a broader range of surgical specialties, adequate representation of women, and different audiovisual recording environments.
In conclusion, PAINAD-supervised audiovisual AI models demonstrated promising internal performance in predicting PAINAD categories in communicative patients undergoing urological surgery. The incremental performance benefit of adding audio remained uncertain. These findings warrant external validation in larger, more diverse surgical populations. Performance in patients unable to self-report was not evaluated and requires direct prospective validation.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/jcm15239237/s1, Supplementary Table S1: Implementation details and reproducibility settings; Supplementary Table S2: Software environment; Supplementary Table S3: Patient-balanced performance; Supplementary Table S4: Clinical Characteristics of Pain Assessments in the Postanesthesia Care Unit; Supplementary Table S5: Outer-Fold Performance of PAINAD and NRS-Supervised Models; Supplementary Table S6: Distribution of Pain Scores by Recording Setting; Supplementary Table S7: Distributions of Raw Pain Scores and PAINAD Ratings; Supplementary Table S8: Cross-supervision evaluation of pain classification models; Supplementary Table S9: Face-cropping fallback rates and associated prediction errors; Supplementary Table S10: Exploratory audio perturbation analysis; Supplementary Table S11: Sensitivity analysis of prior-adjusted predictions from the video-only models; Supplementary Table S12: Performance of NRS-supervised models by input configuration; Supplementary Table S13: Descriptive reference-specific classification errors of the PAINAD- and NRS-supervised video-only models; Supplementary Table S14. Performance of PAINAD- and NRS-supervised video-only models evaluated using PACU-restricted out-of-fold predictions; Supplementary Method S1: CORN probability conversion; Supplementary Figure S1: Performance of NRS-supervised models across different input configurations; Supplementary Figure S2: Confusion matrices for the NRS-supervised video-only model based on pooled out-of-fold predictions for 666 recordings; Supplementary Figure S3: Cross-tabulation of paired NRS and PAINAD-K categories for 666 recordings; Supplementary Figure S4. Flow of participant enrollment and audiovisual recordings included in the analysis; Supplementary File S1: STROBE Checklist; Supplementary File S2: TRIPOD+AI checklist.

Author Contributions

Conceptualization, J.-O.R., S.-H.K. and H.-C.Y.; methodology, J.-O.R. and H.-C.Y.; software, H.-C.Y. and W.-Y.S.; validation, H.-S.K. and W.-J.K.; formal analysis, H.-C.Y.; investigation, W.-J.K., Y.Y. and H.-S.K.; data curation, J.-O.R.; writing—original draft preparation, H.-C.Y. and W.-J.K.; writing—review and editing, H.-S.K., W.-Y.S. and S.-H.K.; visualization, H.-C.Y. and Y.Y.; supervision, S.-H.K.; funding acquisition, S.-H.K.  All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by a National Research Foundation of Korea (NRF) grant funded by the Korean government (Ministry of Science and ICT, grant RS-2026-25504160) and by a grant from the Korea Health Technology R&D Project through the Korea Health Industry Development Institute (KHIDI), funded by the Ministry of Health & Welfare, Republic of Korea (grant HR20C0026). Both grants were awarded to S.H.K. The funder had no role in the study or publication decision.

Institutional Review Board Statement

The study protocol was approved by the Institutional Review Board of Asan Medical Center before participant recruitment and data collection (approval no. 2025-0167; 11 February 2025). The data processing and analyses reported in this manuscript, including audiovisual model development and internal validation, were conducted within the scope of the originally approved prospective study protocol. The study was conducted in accordance with the Declaration of Helsinki.

Data Availability Statement

The data that support the findings of this study are not publicly available because they contain potentially identifiable patient information and are subject to institutional restrictions on public sharing, but may be available from the corresponding author upon reasonable request and with institutional approval. The analysis code and model configurations are available in the GitHub repository (https://github.com/olivepicker/multimodal_pain_scale_classification, accessed on 1 October 2026).

Acknowledgments

Data from Jeong-Ok Ryu’s doctoral dissertation were reprocessed and reanalyzed for the present study. A related manuscript used the same patient cohort and pain assessments to develop a visual CNN–LSTM model for binary classification and continuous-score prediction using NRS, PAINAD-K, and CNPS. The present study extends this work by comparing single-frame, multiframe, and audiovisual inputs for three-category ordinal prediction and by evaluating agreement between categorized NRS and PAINAD-K scores.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. El-Boghdadly, K.; Levy, N.A.; Fawcett, W.J.; Knaggs, R.D.; Laycock, H.; Baird, E.; Cox, F.J.; Eardley, W.; Kemp, H.; Malpus, Z.; et al. Peri-operative pain management in adults: A multidisciplinary consensus statement from the Association of Anaesthetists and the British Pain Society. Anaesthesia 2024, 79, 1220–1236. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Joshi, G.P.; Kehlet, H. Postoperative pain management in the era of ERAS: An overview. Best Pract. Res. Clin. Anaesthesiol. 2019, 33, 259–267. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Apfelbaum, J.L.; Silverstein, J.H.; Chung, F.F.; Connis, R.T.; Fillmore, R.B.; Hunt, S.E.; Nickinovich, D.G.; Schreiner, M.S.; Barlow, J.C.; Joas, T.A.; et al. Practice guidelines for postanesthetic care: An updated report by the American Society of Anesthesiologists Task Force on Postanesthetic Care. Anesthesiology 2013, 118, 291–307. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Gan, T.J. Poorly controlled postoperative pain: Prevalence, consequences, and prevention. J. Pain Res. 2017, 10, 2287–2298. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Luo, J.; Min, S. Postoperative pain management in the postanesthesia care unit: An update. J. Pain Res. 2017, 10, 2687–2698. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Huo, J.; Yu, Y.; Lin, W.; Hu, A.; Wu, C. Application of AI in Multilevel Pain Assessment Using Facial Images: Systematic Review and Meta-Analysis. J. Med. Internet Res. 2024, 26, e51250. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Zhang, J.T.; Hu, X.Y.; Duan, W.; Ji, M.H.; Yang, J.J. Application of deep learning-based facial pain recognition model for postoperative pain assessment. J. Clin. Anesth. 2025, 105, 111898. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Fontaine, D.; Vielzeuf, V.; Genestier, P.; Limeux, P.; Santucci-Sivilotto, S.; Mory, E.; Darmon, N.; Lanteri-Minet, M.; Mokhtar, M.; Laine, M.; et al. Artificial intelligence to evaluate postoperative pain based on facial expression recognition. Eur. J. Pain 2022, 26, 1282–1291. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Tan, C.W.; Du, T.; Teo, J.C.; Chan, D.X.H.; Kong, W.M.; Sng, B.L. Automated pain detection using facial expression in adult patients with a customized spatial temporal attention long short-term memory (STA-LSTM) network. Sci. Rep. 2025, 15, 13429. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Werner, P.; Lopez-Martinez, D.; Walter, S.; Al-Hamadi, A.; Gruss, S.; Picard, R.W. Automatic Recognition Methods Supporting Pain Assessment: A Survey. IEEE Trans. Affect. Comput. 2022, 13, 530–552. [Google Scholar] [CrossRef] [Scilit]
  11. Park, I.; Park, J.H.; Yoon, J.; Na, H.S.; Oh, A.Y.; Ryu, J.; Koo, B.W. Machine learning model of facial expression outperforms models using analgesia nociception index and vital signs to predict postoperative pain intensity: A pilot study. Korean J. Anesthesiol. 2024, 77, 195–204. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Heintz, T.A.; Badathala, A.; Wooten, A.; Cu, C.W.; Wallace, A.; Pham, B.; Wallace, A.W.; Cobert, J. Preliminary Development and Validation of Automated Nociception Recognition Using Computer Vision in Perioperative Patients. Anesthesiology 2025, 142, 726–737. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Zhang, M.; Zhu, L.; Lin, S.Y.; Herr, K.; Chi, C.L.; Demir, I.; Dunn Lopez, K.; Chi, N.C. Using artificial intelligence to improve pain assessment and pain management: A scoping review. J. Am. Med. Inform. Assoc. 2023, 30, 570–587. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Warden, V.; Hurley, A.C.; Volicer, L. Development and psychometric evaluation of the Pain Assessment in Advanced Dementia (PAINAD) scale. J. Am. Med. Dir. Assoc. 2003, 4, 9–15. [Google Scholar] [CrossRef] [PubMed]
  15. Hadjistavropoulos, T.; Herr, K.; Prkachin, K.M.; Craig, K.D.; Gibson, S.J.; Lukas, A.; Smith, J.H. Pain assessment in elderly adults with dementia. Lancet Neurol. 2014, 13, 1216–1227. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Herr, K.; Coyne, P.J.; McCaffery, M.; Manworren, R.; Merkel, S. Pain assessment in the patient unable to self-report: Position statement with clinical practice recommendations. Pain Manag. Nurs. 2011, 12, 230–250. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Zwakhalen, S.M.; Hamers, J.P.; Abu-Saad, H.H.; Berger, M.P. Pain in elderly people with severe dementia: A systematic review of behavioural pain assessment tools. BMC Geriatr. 2006, 6, 3. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Kang, H.; Uhm, J.-Y. Validation of the PAINAD-K Scale for Nonverbal Pain Assessment in the Post Anesthesia Care Unit. J. Korean Acad. Fundam. Nurs. 2023, 30, 90–101. [Google Scholar] [CrossRef] [Scilit]
  19. Resnick, B.; Boltz, M.; Galik, E.; Holmes, S.; Vigne, E.; Fix, S.; Zhu, S. Pain Assessment, Management, and Impact Among Older Adults in Assisted Living. Pain Manag. Nurs. 2019, 20, 192–197. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Boltz, M.; Resnick, B.; Kuzmik, A.; Mogle, J.; Jones, J.R.; Arendacs, R.; BeLue, R.; Cacchione, P.; Galvin, J.E. Pain Incidence, Treatment, and Associated Symptoms in Hospitalized Persons with Dementia. Pain Manag. Nurs. 2021, 22, 158–163. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Breivik, H.; Borchgrevink, P.C.; Allen, S.M.; Rosseland, L.A.; Romundstad, L.; Hals, E.K.; Kvarstein, G.; Stubhaug, A. Assessment of pain. Br. J. Anaesth. 2008, 101, 17–24. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Hu, J.; Mathur, L.; Liang, P.P.; Morency, L.-P. OpenFace 3.0: A lightweight multitask system for comprehensive facial behavior analysis. In Proceedings of the 2025 IEEE 19th International Conference on Automatic Face and Gesture Recognition (FG), Clearwater, FL, USA, 26–30 May 2025; pp. 1–11. [Google Scholar] [CrossRef] [Scilit]
  23. Bjorgaard, J. Sparsely Multimodal Data Fusion. arXiv 2025. [Google Scholar] [CrossRef] [Scilit]
  24. Tan, M.; Le, Q. EfficientNetV2: Smaller Models and Faster Training. In Proceedings of the 38th International Conference on Machine Learning; PMLR: Cambridge, MA, USA; Volume 139, pp. 10096–10106.
  25. Cao, W.; Mirjalili, V.; Raschka, S. Rank consistent ordinal regression for neural networks with application to age estimation. Pattern Recognit. Lett. 2020, 140, 325–331. [Google Scholar] [CrossRef] [Scilit]
  26. Shi, X.; Cao, W.; Raschka, S. Deep neural networks for rank-consistent ordinal regression based on conditional probabilities. Pattern Anal. Appl. 2023, 26, 941–955. [Google Scholar] [CrossRef] [Scilit]
  27. Altman, D.G.; Royston, P. The cost of dichotomising continuous variables. BMJ 2006, 332, 1080. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.