Original Paper
Abstract
Background: Inpatient falls are a major patient safety issue associated with prolonged hospitalization, higher medical costs, functional decline, and mortality. Although electronic health record (EHR) based fall-risk prediction has advanced, many prior models rely on structured variables or a single modality and do not fully use free-text documentation. Especially, multimodal models incorporating Korean nursing notes and medication prescriptions remain limited.
Objective: This study aimed to develop and evaluate a multimodal natural language processing (NLP)–based model for predicting inpatient fall risk by integrating Korean nursing notes, structured clinical variables, and medication prescription data. We also sought to compare predictive performance across text, hybrid structured-text, and medication modalities and to evaluate whether stacking and entropy-based adaptive fusion improve performance and calibration relative to single-modality models.
Methods: This single-center retrospective matched case-control study included 2803 hospitalized patients (503 fall cases and 2300 matched controls). Korean nursing notes and medication data recorded during a predefined preindex observation window, and admission structured clinical variables, were extracted from the EHR. Nursing notes were preprocessed with abbreviation normalization and stop-word removal, and text augmentation with oversampling was applied only to the training set. Korean clinical BERT (Bidirectional Encoder Representations from Transformers) family models were fine-tuned for the text branch, XGBoost (extreme gradient boosting) was used for structured variables and frequency-based text, and a logistic regression stacking model combined text and structured predictions to build Meta(BERT+XGB) (logistic regression stacking meta-model combining the BERT ensemble and XGBoost outputs). For the medication modality, a time-aware TF-IDF (term frequency-inverse document frequency)–based classifier constructed the medication model (MED). Final predictions were generated by entropy-based adaptive fusion of Meta and medication outputs. Performance was evaluated on a patient-level test set using the area under the receiver operating characteristic curve (AUC) and calibration measures.
Results: The final analytic sample consisted of 2803 patients. The validation and test sets each included 180 patients (90 fall cases and 90 controls) without augmentation. After text augmentation and oversampling, the training set was balanced to 2120 fall and 2120 control samples. On the test set, the BERT ensemble and the proposed XGBoost model achieved AUCs of 0.816 and 0.823, respectively. Performance improved with stacking, yielding an AUC of 0.849. Although the medication-based MED model showed a lower AUC of 0.659, the final multimodal model integrating Meta and MED yielded the highest AUC point estimate (0.860, 95% CI 0.800-0.914) in the internal test set. The final model showed acceptable calibration, with improved agreement between predicted probabilities and observed fall risk in higher-risk strata.
Conclusions: A multimodal framework integrating Korean nursing notes, structured clinical variables, and medication data was internally validated and yielded higher AUC point estimates than single-modality models. These findings show potential, while requiring more validation.
doi:10.2196/96365
Keywords
Introduction
Background
Inpatient falls continue to be emphasized worldwide as a major patient safety issue amid population aging, increasing multimorbidity, and the growing complexity of health care delivery [,]. In acute care hospital settings, falls are not merely isolated accidents; they are associated with injuries such as fractures and head trauma, prolonged hospitalization, functional decline, and increased mortality []. From a health system perspective, they also impose a substantial economic burden []. Hospital falls have repeatedly been reported as frequent adverse events, and patient safety reports and epidemiologic studies have consistently shown that fall rates remain persistently present in inpatient settings [,]. However, fall-prevention interventions are inherently multifactorial and must be implemented under real-world constraints, including limited staffing, time, and ward resources. As a result, determining which patients should receive which preventive interventions and at what time remains a challenging clinical problem. This has increased the need for predictive models that can identify high-risk patients early and help prioritize preventive interventions under limited clinical resources [].
Prior Work
In clinical practice, structured fall-risk assessment tools such as the Morse Fall Scale (MFS), Hendrich II Fall Risk Model, and Johns Hopkins Fall Risk Assessment Tool (JHFRAT) have been widely used [-]. These tools are relatively easy to implement and reassess, but systematic reviews and meta-analyses have shown that their predictive performance in acute care inpatients is often only moderate and may vary substantially across institutions, wards, and patient populations. Because falls are events that reflect the cumulative effect of dynamic changes in patient condition, including consciousness, gait, pain, blood pressure (BP), and delirium, it has been repeatedly argued that static checklist-based scores may not adequately capture fall risk with sufficient precision [,].
Against this background, an increasing number of studies have developed machine learning–based fall prediction models using data from electronic health records (EHRs), including demographic information, diagnoses; laboratory tests, vital signs, nursing assessments, and hospitalization-related variables; and have reported improved performance compared with traditional scoring systems [,]. However, many of these studies have been limited to data from a single institution or have relied heavily on specific data sources or feature representations, which restricts their generalizability and scalability []. In addition, clinical interventions are typically triggered by threshold-based decisions such as alerts or targeted preventive measures. In this context, calibration of predicted probabilities, beyond discrimination alone, has been recognized as a major challenge in predictive analytics []. Recommendations have therefore accumulated, emphasizing the need to report not only discrimination but also calibration, operational threshold selection, and clinical utility [,].
Another important line of research in fall prediction has focused on unstructured clinical text, particularly free-text nursing notes []. Nurses routinely document information such as functional status, use of mobility aids, cognitive and emotional changes, anxiety or agitation, environmental hazards, and observed behavioral changes that may be difficult to capture adequately using structured variables alone. For this reason, nursing notes are likely to contain clinically meaningful signals closely related to fall risk, and natural language processing (NLP) studies have increasingly attempted to detect fall-related information from clinical notes or use such information for prediction []. For example, fall prediction based on Japanese nursing notes has been reported [], and studies have also presented the development and internal validation of hospital fall prediction models using free-text documentation []. However, Korean clinical text is known to be particularly challenging to preprocess and standardize because of abbreviations, shortened expressions, incomplete sentences, and institution-specific documentation practices []. Accordingly, fall prediction using Korean nursing notes requires model design and evaluation strategies that explicitly account for the linguistic and domain-specific characteristics of Korean clinical text.
Meanwhile, in the field of clinical NLP, pretrained language models such as BERT (Bidirectional Encoder Representations from Transformers) have been applied to clinical notes and have shown performance gains across a wide range of tasks, including classification, named entity recognition, and relation extraction []. Following the emergence of general-purpose BERT, several domain-specific pretrained models for biomedical and clinical text have been proposed [,], and growing evidence suggests that continued pretraining on domain-specific or task-relevant corpora can improve downstream performance [,]. For Korean medical text, domain-adapted Korean pretrained language models have also been reported [], highlighting the need for domain adaptation strategies that reflect the unique properties of Korean clinical NLP []. Nevertheless, relatively few studies have applied these clinical NLP advances to the specific patient safety task of fall prediction while systematically integrating heterogeneous modalities such as nursing notes (contextual information), structured variables (tabular information), and medication prescriptions (treatment patterns), and while attempting to improve not only discrimination but also calibration.
Multimodal integration has become an important topic across medical AI, and a range of fusion approaches, including combinations of imaging and clinical data, have been proposed along with methodological guidance on multimodal implementation []. However, in the domain of fall prediction, many studies still rely on single-modality approaches or simple combinations of inputs, and research remains limited on systematically integrating predictive signals from different modalities while simultaneously considering operational use in practice, such as alert burden and prioritization of preventive resources.
Falls are also relatively infrequent events, and fall prediction datasets often show substantial class imbalance. In such settings, imbalance mitigation strategies are necessary to improve training stability and generalization performance []. In text-based applications, simple augmentation methods such as easy data augmentation (EDA) have been proposed and widely used [], and embedding-based semantic similarity validation, for example, using Sentence-BERT, has also become common practice for preserving meaning during augmentation []. However, imbalance mitigation strategies are closely related to the risk of data leakage. Therefore, it is essential to restrict augmentation to the training set and to adopt patient-level splits so that records from the same patient do not appear across different data partitions. More broadly, the TRIPOD (Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis) guideline has been introduced to improve transparency and reproducibility in prediction model reporting [], and more recently, TRIPOD+AI has been proposed for reporting AI-based prediction models [].
Medication prescription is also closely related to fall risk. Sedatives, antipsychotics, antihypertensive agents, and other medications may influence balance, BP, and cognitive function depending on dose, combination, and timing of administration, thereby altering fall risk. The concept of fall-risk-increasing drugs (FRIDs) and the need for their management have therefore been proposed []. Because evidence has linked multiple medication classes to increased fall risk [], approaches that model risk using temporal context, such as recency, administration timing, and coprescription patterns, may be more informative than simply summarizing medication exposure as a binary indicator.
Objective
Against this background, this study aimed to develop and internally validate a multimodal NLP-based model for predicting inpatient fall risk by integrating Korean nursing notes, structured clinical variables, and medication prescription data in a hospitalized patient population at Dongtan Sacred Heart Hospital in Korea. Specifically, we sought to (1) evaluate the single-modality performance of a BERT-based text model using Korean nursing notes and a hybrid XGBoost (extreme gradient boosting) model combining structured clinical variables with TF-IDF (term frequency-inverse document frequency) note features, (2) examine the complementary value of these 2 modalities by integrating their predicted probabilities using a stacking meta-model, (3) further incorporate a medication-modality model based on time-aware medication representations anchored to the fall event or matched index time and apply entropy-based adaptive fusion to assess whether discrimination and calibration can be improved relative to single-modality models, and (4) quantitatively characterize the predictive and calibration performance of the proposed framework to characterize the potential value and limitations of multimodal fall-risk prediction in a Korean EHR setting and the need for future multicenter external validation and real-time clinical workflow integration.
Methods
Study Design and Setting
This study was a single-center matched case-control study that developed and internally validated a model for predicting inpatient fall risk using structured and unstructured data extracted from the EHRs of adult patients aged 19 years or older who were hospitalized at Hallym University Dongtan Sacred Heart Hospital []. The study period extended from January 1, 2020, to June 30, 2024, and inpatient episodes that met the predefined inclusion and exclusion criteria during this period were included in the analysis. The design and reporting of the prediction model were guided by the TRIPOD and TRIPOD+AI recommendations for multivariable prediction model studies [,]. All predictor variables were derived exclusively from information collected before the fall event, and the outcome was defined as the occurrence of an inpatient fall during hospitalization.
Data Sources and Outcome Definition
The data used in this study were extracted from HERO (harmonic integrated research platform), the big data analytics platform of Hallym University Medical Center [], and the clinical data warehouse (CDW). Structured data included demographic variables such as age and sex; hospitalization-related variables such as admission and discharge dates, department, ward, and admission type; clinical variables including major comorbidities, history of surgery or procedures, laboratory results, summary indicators of vital signs, and nursing assessment scores; and complete inpatient medication prescription records, including drug name or ingredient, route of administration, dose, prescription time, and duration of administration.
Unstructured text data were selected after reviewing multiple document types, including admission notes, progress notes, consultation notes, discharge notes, nursing notes, nursing information forms, temperature, pulse, and respiration charts, nutrition records, medication administration records, nursing needs records, and nursing activity records. Among these, daily narrative nursing notes written routinely by nurses were used as the primary input for the text-based fall prediction model. Text extraction and preprocessing were performed using publicly available frameworks, including Haystack [] and the Hugging Face Transformers library [], to reduce variation arising from differences in document type and authoring style before converting the data into model-ready inputs.
The outcome was defined as whether at least 1 inpatient fall occurred during the hospitalization period. Fall events were primarily identified from cases registered as inpatient falls by the hospital quality improvement team and were then confirmed through additional review of the patient safety reporting system, nursing notes, and progress notes. Fall cases were defined as adult inpatient episodes in which an inpatient fall was reported during hospitalization, whereas controls were defined as inpatient episodes during the same period in which no inpatient fall was recorded at any time.
The admission nursing assessment form contained 205 items, of which 23 variables were selected as structured predictors. These variables therefore describe each patient’s status at admission rather than at the index time. The variables were selected on the basis of clinical relevance to inpatient falls and the risk domains of widely used fall-risk assessment tools [-]. They comprised 20 assessment items—demographics (age and sex); cognition and consciousness (level of consciousness; orientation to person, place, and time; communication; and emotional state); sleep and fall-risk–increasing medications (sleep disturbance, hypnotic use, and psychotropic use); mobility and sensory function (use of assistive devices, visual impairment, and hearing impairment); elimination (urinary dysfunction, urinary frequency, and urinary incontinence); and pain and medical history (pain, history of stroke, and any past medical history)—and 3 admission vital signs (systolic and diastolic BP and pulse rate). The same 23 variables were used in the structured-only baselines and, together with TF-IDF features, in the hybrid XGBoost branch.
Prior fall history was not available as a dedicated structured field in the admission nursing assessment extract and was therefore not included as a separate structured predictor. However, it was documented within the semistructured institutional fall-risk assessment embedded in nursing text and was therefore potentially available to the text branch.
To define the observation window for model inputs, an index time was assigned to each episode. For fall cases, the index time was defined as the timestamp of the first inpatient fall during the hospitalization. For controls, the index date was assigned through calendar-date–matched sampling. For each fall case, control candidates who were hospitalized on the corresponding fall date were preferentially matched by department, ward, sex, and age, and the matched calendar date was used as the control index date. The control index therefore represented the boundary of the predefined observation window rather than a clinical event or the end of hospitalization. Only text and medication data recorded within 7 days before the index time were used as model inputs, and documents created after the fall event, such as discharge summaries and postevent progress notes, were excluded. The 7-day window was selected a priori, independent of model performance, to balance clinical recency with data availability. This timeframe captures acute prefall changes, aligns with the 5-day median time from index admission, and ensures sufficient coverage for sparse documentation.
To allow direct evaluation of the index-time strategy, the timing of the index within each hospitalization was characterized using admission and discharge dates. For each episode, we calculated the time from admission to the index date, the residual length of stay from the index date to discharge, and the total length of stay, and we determined whether the control index date coincided with the discharge date. Total length of stay was not used as a matching variable, and postindex length of stay was examined only for this assessment and was not included among the model inputs.
Participants, Matching, and Data Split
The overall workflow for participant selection, matching, and dataset splitting is summarized in . The study procedure is described in the order shown in : fall-case selection on the left, control selection and matching on the right, and patient-level splitting at the bottom.
Fall cases consisted of adult inpatient episodes involving patients aged 19 years or older who were hospitalized during the study period and who were reported to the hospital quality improvement team as having experienced an inpatient fall during hospitalization. Cases were included only if the patient had been hospitalized for at least 24 hours before the fall event and if the patient had nursing notes recorded in HERO during the 7 days before the index time. In addition, because nursing notes were structured at the calendar-day level, fall episodes occurring on the day of admission (n=42) were excluded, as no preindex day exists for them. Episodes with insufficient medical record documentation to determine fall-related risk factors, as well as falls that occurred in the outpatient setting or outside the hospital, were excluded.
Controls were selected from adult inpatient episodes at the same hospital during the same period in which no inpatient fall had been recorded at any time. To improve comparability with fall cases, for each case, control candidates were preferentially matched from patients who were hospitalized in the same department and same ward on the date of the fall event and who also matched the same sex and a 5-year age band; when exact matching was difficult, a 10-year age band was allowed (, right panel). The original study plan targeted at least 2 controls per fall case (1:2 matching). However, to preserve eligible controls meeting the matching criteria and improve estimation stability, as many matched control episodes as possible were retained. After eligibility screening, the final analytic sample included 503 fall cases and 2300 controls, corresponding to an overall case-to-control ratio of approximately 1:4.6 (503:2300). Medication-record availability was not an eligibility criterion in either group. Three controls had no medication records in the extract, but all were retained in the analytic cohort.
Participant characteristics are presented in . summarizes demographic characteristics (age and sex), vital signs and body measurements recorded at admission (pulse rate, body temperature, height, and body weight), major medical histories (hypertension, diabetes, cancer, hyperlipidemia, stroke, and heart disease), functional factors (visual and hearing impairment), use of high-risk medications (sleep medications and psychotropic medications), and nursing-documentation intensity within the 7-day observation window (number of notes and total text length) for the final matched analytic sample (N=2803), including the fall group (n=503) and control group (n=2300). Department-level distributions are summarized for the 9 most frequent departments, with all remaining departments grouped as “other.” Medication-related variables were summarized using the number of prescription records during the 7 days before the index time, the number of unique prescription codes per patient, and the frequency of polypharmacy defined as 5 or more and 10 or more unique medications. The 3 controls without medication records contributed 0 recorded prescriptions and 0 unique prescription codes.
Medication prescriptions during the 7 days before the index time were additionally summarized in as the number of prescription records per patient, the number of unique prescription codes per patient, and the prevalence of polypharmacy (≥5 and ≥10 unique medications). More detailed prescription-code–level distributions for representative medications are provided in (Tables S1A and S1B).
For model development and evaluation, the dataset was randomly split at the patient level into training, validation, and test sets, and a patient-level split was applied to ensure that no patient appeared in more than 1 subset, thereby preventing information leakage (, bottom panel).

| Characteristics | Fall (n=503) | No fall (n=2300) | P value | ||||
| Demographics | |||||||
| Age, median (IQR) | 71 (59.0-79.0) | 67 (52.0-78.0) | <.001 | ||||
| Sex (male), n (%) | 279 (55.5) | 1289 (56.0) | .85 | ||||
| Vital signs and body measurements (at admission) | |||||||
| Pulse (beats/min), median (IQR) | 83 (74.0-94.0) | 81 (73.0-92.0) | .07 | ||||
| Temperature (°C), median (IQR) | 36.7 (36.5-37.0) | 36.7 (36.5-37.0) | .57 | ||||
| Height (cm), median (IQR) | 161 (155.0-168.0) | 163 (155.0-170.0) | .007 | ||||
| Weight (kg), median (IQR) | 59.5 (50.0-68.0) | 61.7 (52.8-70.9) | <.001 | ||||
| Medical history, n (%) | |||||||
| Hypertension | 238 (47.3) | 911 (39.6) | .002 | ||||
| Diabetes mellitus | 178 (35.4) | 540 (23.5) | <.001 | ||||
| Cancer | 77 (15.3) | 222 (9.7) | <.001 | ||||
| Hyperlipidemia | 70 (13.9) | 306 (13.3) | .77 | ||||
| Stroke | 27 (5.4) | 85 (3.7) | .11 | ||||
| Heart disease | 44 (8.7) | 155 (6.7) | .14 | ||||
| High-risk medication/functional factors, n (%) | |||||||
| Hypnotics use | 44 (8.7) | 121 (5.3) | .004 | ||||
| Antipsychotics use | 16 (3.2) | 49 (2.1) | .21 | ||||
| Visual impairment | 69 (13.7) | 402 (17.5) | .05 | ||||
| Hearing impairment | 45 (8.9) | 132 (5.7) | .01 | ||||
| Department (top departments; others grouped), n (%) | |||||||
| Gastroenterology | 79 (15.7) | 440 (19.1) | <.001 | ||||
| Orthopedics | 56 (11.1) | 452 (19.7) | <.001 | ||||
| Pulmonary medicine | 52 (10.3) | 346 (15.0) | <.001 | ||||
| Neurology | 76 (15.1) | 290 (12.6) | <.001 | ||||
| Neurosurgery | 45 (8.9) | 217 (9.4) | <.001 | ||||
| Nephrology | 48 (9.5) | 141 (6.1) | <.001 | ||||
| Cardiology | 27 (5.4) | 102 (4.4) | <.001 | ||||
| Hematology/oncology | 35 (7.0) | 83 (3.6) | <.001 | ||||
| Surgery | 19 (3.8) | 89 (3.9) | <.001 | ||||
| Other | 66 (13.1) | 140 (6.1) | <.001 | ||||
| Medication information (within 7 days) | |||||||
| Prescription records per patient, median (IQR) | 114 (61.5-197.0) | 95 (40.0-171.0) | <.001 | ||||
| Unique prescription codes per patient, median (IQR) | 21 (15.0-27.0) | 18 (12.0-26.0) | <.001 | ||||
| Polypharmacy (≥5 unique medications), n (%) | 500 (99.4) | 2236 (97.2) | .006 | ||||
| Polypharmacy (≥10 unique medications), n (%) | 460 (91.5) | 1941 (84.4) | <.001 | ||||
| Nursing documentation (within 7 days) | |||||||
| Nursing notes per patient, median (IQR) | 121 (49.0-175.0) | 121 (54.0-181.0) | .04 | ||||
| Total text length (characters), median (IQR) | 16,445 (6477.0-25,383.0) | 16,564 (7310.0-27,472.0) | .04 | ||||
aVital signs reported in this table were measured at admission. describes cohort characteristics and is not a list of model predictors. Percentages are calculated using the full group denominators of 503 fall cases and 2300 controls. The 3 controls without prescription records contributed 0 prescription records and 0 unique prescription codes to the medication summaries. The 10 binary items in had no missing values and were tabulated without imputation. Missing values in height, weight, pulse rate, and body temperature were imputed as described in the Statistical Analysis subsection.
Text Preprocessing and Augmentation
Overview
The overall pipeline for clinical text preprocessing and augmentation is shown in . As illustrated in , the workflow consisted of (1) enhanced cleaning and normalization (phase 1), (2) domain-specific token transformation (phase 2), (3) data-driven common-token filtering, (4) a fall-group–restricted data augmentation module (stages A-C), and (5) final dataset construction with patient-level aggregation.

Phase 1: Enhanced Cleaning and Normalization
To account for the documentation practices commonly observed in Korean clinical text, including abbreviations, shortened expressions, system-generated phrases, and symbol-based notation, the text was cleaned in a stepwise manner (, phase 1). All text was first normalized as strings, and consecutive spaces were collapsed into a single space. Frequently occurring separators and special characters in clinical notes, such as periods, parentheses, and dashes, were then standardized using regular expression–based rules to reduce unnecessary surface variation. To reduce within-institution heterogeneity in expression, abbreviation standardization was performed. For example, direction-, location-, and department-related expressions such as right/left (Rt/Lt), emergency room (ER), and intensive care unit (ICU), as well as clinical abbreviations such as BP, numeric rating scale (NRS), peripheral oxygen saturation (SpO2), and chief complaint (c/c), were replaced with predefined Korean standard forms according to rule-based mappings.
Phase 2: Domain-Specific Token Transformation
To reduce lexical sparsity in clinical text and encourage the model to focus on information types and contextual meaning rather than raw surface forms, domain-specific special tokens were defined and applied using pattern-based substitution rules (, Phase 2). Patient identifiers consisting of long numeric strings and date/time expressions were deidentified and replaced with <ID>, <DATE>, and <TIME>, respectively. Vital-sign and clinical-scale expressions were tagged as <BP>, <NRS>, and <GCS>, whereas number-unit combinations were normalized into tokens such as <PCT>, <MMHG>, and <DEG>. Remaining standalone numeric tokens that were not otherwise tagged were replaced with <NUM>. Finally, after whitespace-based tokenization, single-character tokens were removed so that only tokens with length greater than 1 were retained, thereby reducing the influence of noninformative fragments.
Data-Driven Common Token Filtering
Instead of using a generic stop-word list, we applied data-driven common-token filtering (). Specifically, we identified the most frequent tokens separately in the training texts of the fall and control groups and then defined the intersection of the 2 sets as a common-token set. In this study, the procedure was performed using the top 250 tokens from each group. The resulting common-token set was applied identically to the training, validation, and test splits to remove nonspecific expressions that repeatedly appeared in both classes. To prevent data leakage, the common-token set was derived using the training data only.
Data Augmentation Module (Fall Group Only)
To mitigate class imbalance, a hybrid augmentation strategy was applied only to fall-group texts (, lower panel).
Stage A: Rule- and Statistics-Based Augmentation
EDA was used to perform morpheme-based synonym replacement []. In addition, BERT masking–based augmentation was used by masking selected tokens within a sentence and replacing them with contextually plausible alternatives predicted by the model, thereby introducing lexical variation [].
Stage B: Generative Model–Based Augmentation
Paraphrases were generated using the Korean-specialized Llama-3-Open-Ko model []. To minimize distortion of clinical meaning, conservative prompts prohibiting summarization and omission were used, along with post hoc filtering to retain only outputs that preserved negation and did not excessively alter sentence length.
Stage C: Quality Assurance
Cosine similarity between original and augmented sentences was computed using sentence embeddings from Korean SBERT (snunlp/KR-SBERT-V40K-klueNLI-augSTS; Sentence Bidirectional Encoder Representations from Transformers), and only augmented texts meeting augmentation-specific thresholds (EDA ≥0.60, BERT masking ≥0.75, and large language model [LLM] paraphrasing ≥0.85) were retained in the final training set []. Representative deidentified original and augmented nursing-note excerpts are provided in .
Final Dataset Construction and Patient-Level Aggregation
Text augmentation and oversampling were applied only to fall-group samples in the training partition after patient-level splitting; the validation and test sets retained only original, unaugmented, and unduplicated records (, right panel). Oversampling was performed by randomly sampling with replacement from the 323 original fall-group patient-level records and duplicating each selected record in full; synthetic minority oversampling technique (SMOTE) and other feature-space interpolation methods were not used. The final fall-group training set comprised 323 original records, 945 augmented records, and 852 additional duplicated records, totaling 2120 training samples. The 2120 control-group training records were retained without resampling, yielding a final training set of 4240 samples in a 1:1 class ratio (, “final dataset construction”). For each patient, all records within the 7 days before the index time were concatenated in chronological order to form a patient-level text document, which was then used as input to the BERT-based models.
Model Architecture and Training
The proposed multimodal fall prediction pipeline is illustrated in . As shown in , the framework consisted of 3 phases: (1) input modalities and base models (phase 1), (2) stacking-based meta-model integration (phase 2), and (3) entropy-based adaptive fusion (phase 3).

Phase 1: Input Modalities and Base Models
Text Branch: Deep Learning Ensemble for Nursing Notes
To model textual context, 3 pretrained language models were fine-tuned: KM-BERT (madatnlp/km-bert; Korean Medical Bidirectional Encoder Representations from Transformers), a Korean medical domain–adapted model []; KcELECTRA (beomi/KcELECTRA-base), a general-purpose Korean language model []; and KoBigBird (monologg/kobigbird-bert-base), which is specialized for long-document processing []. The maximum input length was set to 512 tokens for KM-BERT and KcELECTRA and to 2048 tokens for KoBigBird to minimize information loss from long inpatient records. Documents exceeding the model-specific maximum sequence length were left-truncated to prioritize recent tokens. While the 7-day source window averaged 4179 (SD 2,789) tokens, the effective input was constrained by each model’s capacity. Each model was trained as a binary classifier using patient-level nursing-note text. To account for class imbalance, focal loss was used [], and optimization was performed using the AdamW optimizer []. During fine-tuning, model performance was monitored on the validation set, and the checkpoint with the highest validation F1-score was retained for each language model rather than the checkpoint from the final training step. The predicted probabilities from the 3 models were averaged using soft voting to obtain the ensemble probability p_BERT-ens (, upper left).
Hybrid Branch: Machine Learning for Structured and TF-IDF Features
To capture statistical patterns and structured signals that were complementary to contextual information, an XGBoost classifier was used []. Input features were constructed by combining the 23 admission variables described in Data Sources and Outcome Definition with TF-IDF vectors derived from nursing-note text (, center left). To reflect the clinical assumption that the patient’s state immediately before the event was especially important, temporal weighting was applied []. Specifically, text generated within the 3 days immediately preceding the index time was repeated in the document to increase its effective contribution before TF-IDF vectorization, corresponding to a 3-fold frequency weighting. The training partition used for this branch was balanced by design, and no additional positive-class weighting was applied (scale_pos_weight was left at its default value). The resulting uncalibrated XGBoost output was denoted as p_XGB.
Medication Branch: Time-Aware Classification for Prescription Data
Medication information was represented as a time-aware medication-token document anchored to the index time (, lower left). For each prescription record within the 192-hour observation window, the interval h (in hours) between the prescription timestamp and the index time was computed; records timestamped after the index (h<0) were excluded. Each record received an exponential recency weight w = exp(−ln2 × h/48), corresponding to a 48-hour half-life and capped at 1, and the corresponding drug token was repeated max(1, round(5w)) times to construct the patient-level medication document before TF-IDF vectorization with sublinear term-frequency scaling. Repetition rather than direct term weighting was used so that the recency decay is preserved through the sublinear transform. Prescription records carry time-of-day stamps, whereas nursing-note timestamps are recorded at day-level resolution. A logistic regression classifier was then trained, and the resulting predicted probability from the medication branch was denoted p_MED.
Phase 2: Stacking Meta-Model Integration
To integrate the text-context ensemble and the structured and statistical branch, a logistic regression–based stacking meta-model, Meta(BERT+XGB) (logistic regression stacking meta-model combining the BERT ensemble and XGBoost outputs), was constructed using p_BERT-ens and p_XGB as inputs (, center). To prevent information leakage from base-model training, the meta-model was fitted on the base-model predicted probabilities for all 180 validation episodes, including the 90 episodes later used as the calibration subset (val_cal); these episodes were not used to fit the base-model parameters. The raw predicted outputs from the BERT ensemble and XGBoost branch were entered directly into the logistic regression meta-model without additional scaling or normalization. L2 regularization was applied to the logistic regression model. Although class weighting was specified, the meta-model training sample was balanced by design, resulting in equal class weighting. The output probability of the meta-model was defined as p_meta.
Phase 3: Entropy-Based Adaptive Fusion
The final prediction was generated using entropy-based adaptive fusion (, right). First, the normalized Shannon entropy H_n∈[0,1] of the meta-model probability p_meta was computed []. Based on this quantity, the meta-model weight was defined as α=σ(a+b(1−H_n)), where σ denotes the sigmoid function. The parameters a and b were selected by grid search over prespecified ranges (a from −2 to 2 and b from −4 to 4, 21 values each) to maximize area under the receiver operating characteristic curve (AUC) on the full validation set (n=180). The final fall probability was then defined as p_fusion=α(p_meta)+(1−α)(p_MED). This design allowed the model to place greater emphasis on the text- and structure-based signal when the meta-model prediction was confident (low entropy), while relatively increasing the contribution of the medication signal when the meta-model was uncertain. With the selected parameters, the Meta(BERT+XGB) prediction remained the dominant component of the fused score, while the medication prediction provided a constrained uncertainty-dependent contribution.
Representative Baseline Models for Comparison
To benchmark the proposed multimodal framework, we implemented representative baseline models commonly used in prior fall-prediction and clinical text-classification studies on the same patient-level split. Structured-only baselines included logistic regression, decision tree, and XGBoost, each trained on the same 23 admission variables without text features. Text-only classical baselines included TF-IDF+logistic regression and TF-IDF+linear support vector machine (SVM). All baseline models were trained, tuned, and evaluated using the same train/validation/test partitions as the proposed models so that all models were compared on identical episodes; the structured-only baselines, however, had no access to the preindex information used by the text-based and multimodal models.
Ablation Experiments
To quantify the contribution of each component of the proposed framework to final performance, we conducted ablation experiments. First, to assess the impact of the text-training strategy, we compared training with original text only, text augmentation only, and text augmentation combined with oversampling. Second, to evaluate the effect of multimodal integration, we compared single-modality models (BERT ensemble and the proposed XGBoost branch), the text-structure fusion model Meta(BERT+XGB), and fusion variants incorporating the medication model (MED), including simple averaging, logistic stacking, and entropy-based adaptive fusion. Third, we compared 3 medication representations: bag-of-drugs, the full time-aware representation, and a FRID-only representation restricted to 9 FRID classes comprising 73 mapped ingredients. The FRID-only representation used the same time-aware weighting procedure as the full MED. All ablation experiments were performed using the same patient-level split, and evaluation focused on AUC and threshold-based classification performance on the independent test set. Complete hyperparameters are provided in (Tables S1-S5).
Model Assessment
Model performance was evaluated on an independent patient-level test set that was not involved in model training. Discrimination was assessed primarily using the AUC and accuracy, together with F1-score, sensitivity, and specificity. Optimal classification thresholds were selected and compared using both the threshold that maximized the F1-score and the threshold that maximized the Youden index (sensitivity + specificity − 1).
Calibration was assessed visually using calibration plots by comparing mean predicted probabilities with observed fall rates across probability bins. Platt and isotonic calibrators were fitted on val_cal (n=90) and applied without refitting to test-set predictions [,]. Although val_cal and val_tune contained different episodes, val_cal had also been used to fit the stacking meta-model and therefore was not independent of meta-model fitting. Test labels were not used to fit the calibrators. The medication classifier’s internal calibration was restricted to 3-fold cross-validation within the training partition. Calibration was further evaluated on the internal holdout sets using the Brier score, expected calibration error (ECE), calibration intercept, and calibration slope. Because the validation and test sets were constructed with balanced class distributions for comparative model evaluation, these calibration results were interpreted as internal probability-quality assessments rather than direct estimates of deployment-time absolute risk calibration.
Finally, by systematically comparing the text-only modality (BERT ensemble), the structured and frequency-based XGBoost branch, the MED, the stacking-based meta-model Meta(BERT+XGB), and the entropy-based adaptive fusion model, we assessed the extent to which multimodal integration and uncertainty-aware weighting contributed to improvements in discrimination and calibration.
Sensitivity Analyses
As a sensitivity analysis for temporal drift, all models were retrained from scratch using episodes from 2020 to 2022 and independently evaluated on episodes from 2023 to 2024 (n=1062; 191 fall cases). The preprocessing procedures, model architectures, hyperparameter settings, and evaluation protocol were otherwise kept identical to those used in the primary analysis.
As a post hoc sensitivity analysis addressing potential overfitting from repeated use of the validation set, we trained the logistic regression meta-model using patient-level out-of-fold predictions generated within the training partition. This analysis separated meta-model fitting from the independent validation set while otherwise retaining the primary modeling framework.
Statistical Analysis
Continuous variables were summarized as mean (SD) or median (IQR), depending on the normality of their distribution, whereas categorical variables were summarized as frequencies and percentages. Normality was assessed using the Shapiro-Wilk test. For between-group comparisons of continuous variables, either the independent samples t test or the Mann-Whitney U test was used as appropriate. For categorical variables, either the chi-square test or the Fisher exact test was applied. These procedures were used to generate the P values reported in and for the comparisons of hospitalization timing described in the Results section.
For the continuous measurements reported in (height, weight, pulse rate, and body temperature), blank entries and values of 0 or 1 used to indicate unavailable measurements were treated as missing. Before imputation, missing values were present for height in 36 (36/2803, 1.3%) patients, weight in 49 (49/2803, 1.7%), pulse rate in 9 (9/2803, 0.3%), and body temperature in 10 (10/2803, 0.4%), with percentages calculated using the full analytic cohort of 2803 patients. Missing measurements were imputed using multiple imputation by chained equations (MICE) with predictive mean matching, generating 50 imputed datasets. The imputation models included age, sex, and the remaining continuous variables as predictors. This imputation was applied only to the descriptive statistics reported in . Within the predictive modeling pipeline, missing values in the structured variables were replaced by the median value of the training data, as reported in (Table S3).
Model AUCs and their 95% CIs were estimated using bootstrap resampling with 2000 iterations []. Pairwise differences in AUC between prespecified key model pairs were additionally explored using the DeLong test on the independent test set []. Given the modest size of the independent test set, these comparisons were considered supportive rather than definitive. All performance estimates were reported with bootstrap-based 95% CIs. All statistical analyses were performed in Python (version 3.12.2; Python Software Foundation; scikit-learn and SciPy), and statistical significance was defined as a 2-sided P value of <.05.
Computational Environment
Model augmentation and training were performed using an NVIDIA A100 GPU with 81 GB of memory. Data processing and model development were conducted in Python (version 3.12.2) using libraries including NumPy, SciPy, scikit-learn, and PyTorch [-].
Ethical Considerations
This study was approved by the institutional review board of Hallym University Dongtan Sacred Heart Hospital (IRB 2024-09-012-001), and the requirement for written informed consent was waived because of the retrospective nature of the EHR-based analysis. All data were deidentified before analysis, and all study procedures complied with institutional regulations and applicable laws regarding privacy protection and information security. The study was conducted in accordance with the ethical principles of the Declaration of Helsinki.
Results
Study Population and Dataset Splits
After applying the inclusion and exclusion criteria described in the Methods, the final analytic cohort comprised 2803 hospitalized patients, including 503 fall cases and 2300 controls (). The data were divided at the patient level into training, validation, and test sets. The validation and test sets each included 180 patients, consisting of 90 fall cases and 90 controls. The full validation set (n=180) was used to fit the meta-model and to select the fusion parameters. For the calibration analysis, it was further stratified into 2 disjoint subsets: a tuning subset (val_tune; n=90), on which reselection of the fusion parameters gave the same values, and a calibration subset (val_cal; n=90), on which the calibrators were fitted. In the training set, augmentation and oversampling were applied only to fall-group text to mitigate class imbalance, resulting in a balanced training dataset of 2120 fall samples and 2120 control samples (). Detailed information on participant selection and the composition of the final analytic sample is presented in and . More detailed distributions, including patient exposure rates and record frequencies for major prescription codes, are provided in .
In the final analytic cohort, the median time from admission to the index date was similar in both groups, at 5 (IQR 2-13) days for fall cases and 5 (IQR 2-11) days for controls (P=.24). No control index date coincided with the discharge date 0% (0/2300). The median residual length of stay after index was 6 (IQR 3-12) days for fall cases and 4 (IQR 2-10) days for controls. The median total length of stay was 14 (IQR 7-26) days for fall cases and 12 (IQR 6-22) days for controls.
Performance of Text Context Models
The test-set performance of the 3 individually fine-tuned pretrained language models showed AUCs of 0.774 (95% CI 0.704-0.840) for KM-BERT, 0.768 (95% CI 0.697-0.833) for KoBigBird, and 0.800 (95% CI 0.732-0.864) for KcELECTRA (). Although the 3 single models showed broadly similar discrimination, their sensitivities differed: 0.833 (95% CI 0.750-0.910) for KM-BERT, 0.656 (95% CI 0.556-0.750) for KoBigBird, and 0.667 (95% CI 0.566-0.762) for KcELECTRA. Soft-voting ensemble averaging of the predicted probabilities from the 3 models improved performance relative to the individual models, yielding a test AUC of 0.816 (95% CI 0.753-0.878; ). Using the default threshold, the ensemble achieved an accuracy of 0.722 (95% CI 0.656-0.789), a sensitivity of 0.744 (95% CI 0.650-0.833), a specificity of 0.700 (95% CI 0.602-0.793), and an F1-score of 0.728 (95% CI 0.651-0.798). Applying the validation-derived optimal threshold of 0.550 produced comparable classification performance without substantial change.
| Model | AUCb (95% CI) | ACCc (95% CI) | Sensitivity (95% CI) | Specificity (95% CI) | F1-score (95% CI) | PPV d,e | NPV e,f | ||||||||
| Single models | |||||||||||||||
| KM-BERTg | 0.774 (0.704-0.840) | 0.678 (0.606-0.745) | 0.833 (0.750-0.910) | 0.522 (0.416-0.628) | 0.721 (0.643-0.789) | 0.636 | 0.758 | ||||||||
| KoBigBird | 0.768 (0.697-0.833) | 0.711 (0.650-0.772) | 0.656 (0.556-0.750) | 0.767 (0.676-0.848) | 0.694 (0.612-0.767) | 0.738 | 0.690 | ||||||||
| KcELECTRA | 0.800 (0.732-0.864) | 0.744 (0.683-0.806) | 0.667 (0.566-0.762) | 0.822 (0.742-0.898) | 0.723 (0.642-0.794) | 0.789 | 0.712 | ||||||||
| Ensemble models | |||||||||||||||
| BERT ensembleh | 0.816 (0.753-0.878) | 0.722 (0.656-0.789) | 0.744 (0.650-0.833) | 0.700 (0.602-0.793) | 0.728 (0.651-0.798) | 0.713 | 0.733 | ||||||||
| BERT ensemblei | 0.816 (0.753-0.878) | 0.756 (0.694-0.817) | 0.689 (0.590-0.784) | 0.822 (0.742-0.896) | 0.738 (0.658-0.810) | 0.795 | 0.725 | ||||||||
aBERT: Bidirectional Encoder Representations from Transformers.
bAUC: area under the receiver operating characteristic curve.
cACC: accuracy.
dPPV: positive predictive value.
ePositive predictive value and negative predictive value were calculated on the balanced 1:1 internal test set and are sample-specific; they should not be interpreted as deployment-time predictive values.
fNPV: negative predictive value.
gKM-BERT: Korean Medical Bidirectional Encoder Representations from Transformers.
hDefault operating point (threshold=0.500).
iOptimized operating point (threshold=0.550) based on the validation set.
Performance of Representative Baseline Models
Representative baseline models showed clear performance differences according to input modality. Among the structured-only baselines, which used admission variables only, the decision tree model achieved the highest discrimination (AUC 0.556), whereas the other structured-only baselines, including logistic regression and XGBoost, showed similarly limited performance. Among the text-only classical baselines, TF-IDF combined with logistic regression performed best (AUC 0.801), followed closely by TF-IDF combined with linear SVM, but both remained below the performance of the BERT-based ensemble. Overall, the proposed models, particularly Meta(BERT+XGB) and adaptive fusion, outperformed both the representative structured-only and text-only baseline families on the independent test set. The institutional fall-risk assessment score, extracted from the nursing notes, achieved an AUC of 0.635 (95% CI 0.549-0.716) among the 167 test episodes with an available preindex assessment, compared with 0.843 (95% CI 0.781-0.900) for the adaptive-fusion model on the same episodes (ΔAUC 0.208, DeLong P<.001; , ).
| Model | AUCa (95% CI) | ACCb (95% CI) | Sensitivity (95% CI) | Specificity (95% CI) | F1-score (95% CI) | PPV c,d | NPV d,e | |
| Text-only baselines | ||||||||
| TF-IDFf + logistic regression | 0.801 (0.734-0.866) | 0.722 (0.661-0.783) | 0.567 (0.456-0.667) | 0.878 (0.811-0.944) | 0.671 (0.579-0.753) | 0.823 | 0.669 | |
| TF-IDF + linear SVMg | 0.785 (0.715-0.852) | 0.689 (0.628-0.750) | 0.489 (0.389-0.589) | 0.889 (0.822-0.956) | 0.611 (0.511-0.702) | 0.815 | 0.635 | |
| Structured-only baselines | ||||||||
| Logistic regression | 0.509 (0.415-0.595) | 0.506 (0.439-0.572) | 0.289 (0.200-0.378) | 0.722 (0.633-0.811) | 0.369 (0.267-0.465) | 0.510 | 0.504 | |
| Decision tree | 0.556 (0.479-0.633) | 0.528 (0.472-0.583) | 0.833 (0.756-0.911) | 0.222 (0.144-0.311) | 0.638 (0.592-0.683) | 0.517 | 0.571 | |
| XGBoosth | 0.510 (0.425-0.594) | 0.511 (0.467-0.556) | 0.911 (0.844-0.967) | 0.111 (0.044-0.178) | 0.651 (0.614-0.680) | 0.506 | 0.556 | |
| Clinical reference standard | ||||||||
| Institutional fall-risk assessment scorei | 0.635 (0.549-0.716) | —j | — | — | — | — | — | |
| Proposed models | ||||||||
| BERTk ensemblel | 0.816 (0.753-0.878) | 0.722 (0.656-0.789) | 0.744 (0.650-0.833) | 0.700 (0.602-0.793) | 0.728 (0.651-0.798) | 0.713 | 0.733 | |
| Proposed XGBoostl | 0.823 (0.760-0.883) | 0.650 (0.583-0.717) | 0.300 (0.211-0.398) | 1.000 (1.000-1.000) | 0.462 (0.348-0.569) | 1.000 | 0.588 | |
| Proposed XGBoostm | 0.823 (0.760-0.883) | 0.761 (0.700-0.822) | 0.756 (0.663-0.842) | 0.767 (0.675-0.851) | 0.760 (0.686-0.825) | 0.764 | 0.758 | |
| MEDl,n | 0.659 (0.579-0.736) | 0.622 (0.550-0.689) | 0.467 (0.363-0.571) | 0.778 (0.688-0.861) | 0.553 (0.452-0.641) | 0.677 | 0.593 | |
| Meta(BERT+XGB)l,o | 0.849 (0.787-0.904) | 0.772 (0.711-0.833) | 0.644 (0.544-0.744) | 0.900 (0.833-0.956) | 0.739 (0.657-0.812) | 0.866 | 0.717 | |
| Meta(BERT+XGB)p | 0.849 (0.787-0.904) | 0.778 (0.717-0.839) | 0.778 (0.685-0.866) | 0.778 (0.690-0.860) | 0.778 (0.704-0.840) | 0.778 | 0.778 | |
| Adaptive fusionl | 0.860 (0.800-0.914) | 0.778 (0.717-0.839) | 0.622 (0.522-0.722) | 0.933 (0.882-0.985) | 0.737 (0.673-0.801) | 0.903 | 0.712 | |
| Adaptive fusionq | 0.860 (0.800-0.914) | 0.806 (0.744-0.861) | 0.722 (0.629-0.816) | 0.889 (0.823-0.949) | 0.788 (0.712-0.850) | 0.867 | 0.762 | |
aAUC: area under the receiver operating characteristic curve.
bACC: accuracy.
cPPV: positive predictive value.
dPositive predictive value and negative predictive value were calculated on the balanced 1:1 internal test set and are sample-specific; they should not be interpreted as deployment-time predictive values.
eNPV: negative predictive value.
fTF-IDF: term frequency-inverse document frequency.
gSVM: support vector machine.
hXGBoost: extreme gradient boosting.
iEvaluated on the 167 test episodes with an available preindex assessment; the adaptive-fusion model achieved 0.843 (95% CI 0.781-0.900) on the same episodes (ΔAUC 0.208, DeLong P<.001). High scores trigger preventive interventions; observed discrimination reflects postintervention performance.
jNot available.
kBERT: Bidirectional Encoder Representations from Transformers.
lDefault operating point (threshold=0.500).
mOptimized operating point (threshold=0.010) based on the validation set.
nMED: medication model.
oMeta(BERT+XGB): logistic regression stacking meta-model combining the BERT ensemble and XGBoost outputs.
pOptimized operating point (threshold=0.419) based on the validation set.
qOptimized operating point (threshold=0.462) based on the validation set.

Performance of the Proposed XGBoost Branch
The proposed XGBoost model, which combined structured clinical variables with TF-IDF features derived from nursing notes, achieved a test AUC of 0.823 (95% CI 0.760-0.883; ). At the default threshold of 0.500, the model showed a specificity of 1.000 but a relatively low sensitivity of 0.300, resulting in an F1-score of 0.462. These findings suggest that a frequency-based model may exhibit a conservative detection pattern, favoring a reduction in false-positive predictions at the expense of sensitivity to fall cases. This behavior was closely reflected in the model’s output distribution, which was heavily concentrated toward low values. The median predicted score was 0.010 (IQR 0.001-0.166), with 71.1% (128/180) of the test-set scores falling below 0.100. Nevertheless, median scores remained distinctively higher among fall cases than matched controls (0.098, IQR 0.010-0.602 vs 0.002, IQR <0.001-0.010), indicating preserved discriminative ability. Consequently, these outputs were clarified as uncalibrated model scores and should not be interpreted as direct estimates of absolute fall probability.
Multimodal Integration via Stacking: Meta(BERT+XGB)
The logistic regression stacking meta-model, Meta(BERT+XGB), which used the text-ensemble probability p_BERT-ens and the XGBoost probability p_XGB as inputs, achieved a test AUC of 0.849 (95% CI 0.787-0.904), exceeding the discrimination of both the BERT-based text ensemble alone (AUC 0.816) and the structured and frequency-based XGBoost branch alone (AUC 0.823; ). Threshold-based classification performance also suggested that stacking helped compensate for some of the limitations observed in the single-modality models and improved fall-case detection when an appropriate operating point was selected.
Because the classification performance of the meta-model varied according to threshold selection, different operating points were compared using the validation set. At the default threshold of 0.500, the model achieved an accuracy of 0.772 (95% CI 0.711-0.833), a sensitivity of 0.644 (95% CI 0.544-0.744), a specificity of 0.900 (95% CI 0.833-0.956), and an F1-score of 0.739 (95% CI 0.657-0.812; ). This reflects a decision-making pattern centered on relatively high specificity. By contrast, when the receiver operating characteristic (ROC)–optimized threshold of 0.419 derived from the validation set was applied to the test set, accuracy increased to 0.778 (95% CI 0.717-0.839), with a sensitivity of 0.778 (95% CI 0.685-0.866), a specificity of 0.778 (95% CI 0.690-0.860), and an F1-score of 0.778 (95% CI 0.704-0.840; ). This indicated the expected trade-off of improved sensitivity (0.644 to 0.778) with reduced specificity (0.900 to 0.778) relative to the default threshold.
Performance of MED
The MED achieved a test AUC of 0.659 (95% CI 0.579-0.736), which was substantially lower than that of the text and structure-based models (). Nevertheless, because medication prescription patterns may provide complementary information, the contribution of the MED branch was further evaluated through adaptive fusion with the meta-model at the final stage.
Final Model Performance: Entropy-Based Adaptive Fusion
The final model, which integrated Meta(BERT+XGB) and the MED model through entropy-based adaptive fusion, achieved a test AUC of 0.860 (95% CI 0.800-0.914), improving upon Meta(BERT+XGB) alone (AUC 0.849; ). At the ROC-optimized threshold, the final model achieved an accuracy of 0.806 (95% CI 0.744-0.861), a sensitivity of 0.722 (95% CI 0.629-0.816), a specificity of 0.889 (95% CI 0.823-0.949), and an F1-score of 0.788 (95% CI 0.712-0.850) on the test set (). The adaptive-fusion parameters were selected by grid search on the full validation set (validation AUC 0.850), yielding a=2.0 and b=4.0, both of which lay at the upper bounds of the search grid, with re-selection on val_tune alone for the calibration analysis giving the same values. On the test set, α ranged from 0.881 to 0.994 (median 0.904, IQR 0.895-0.909), corresponding to a medication weight (1 − α) of 0.006 to 0.119 (median 0.096, IQR 0.091-0.105). The distribution of α is provided in . When calibration was evaluated on the test set, the calibration curve of the adaptive-fusion model was generally close to the ideal line, although deviations were observed across probability ranges (). These findings support the need to evaluate not only classification performance but also the reliability of predicted probabilities using both quantitative and qualitative calibration measures.
Prevalence-adjusted predictive values and alert burden. At a plausible inpatient fall prevalence of 3%, the projected positive predictive value (PPV) of the final model was 0.167, corresponding to approximately 129 alerts per 1000 admissions and a number needed to evaluate of 6.0. These projections should be read as upper bounds. In the temporally separated holdout (an 18% [191/1062] case proportion resulting from the 1:4.6 matched sampling design, not an estimate of prevalence), the observed PPV was 0.359 at the validation-selected Youden threshold of 0.384, compared with a Bayes-projected PPV of 0.588 based on the primary internal-test sensitivity and specificity at a threshold of 0.462. Detailed tables are presented in .

Sensitivity Analyses
In the chronological sensitivity analysis, all models were retrained using episodes from 2020 to 2022 and evaluated on episodes from 2023 to 2024 (n=1062; 191 fall cases). The BERT ensemble, proposed XGBoost, Meta(BERT+XGB), and adaptive-fusion models achieved AUCs of 0.801 (95% CI 0.761-0.835), 0.818 (95% CI 0.779-0.853), 0.830 (95% CI 0.791-0.862), and 0.834 (95% CI 0.796-0.865), respectively. Detailed discrimination and threshold-based performance metrics for the chronological analysis are provided in .
In the post hoc OOF sensitivity analysis, the adaptive fusion model recorded a test AUC of 0.857 (95% CI 0.800-0.910), a sensitivity of 0.778 (95% CI 0.689-0.856), and a specificity of 0.833 (95% CI 0.756-0.911), which were similar to the 0.860 observed in the primary analysis. These similar AUC estimates suggest that discriminatory performance was largely maintained even when the meta-model fitting process was separated from the validation set.
Ablation Analyses
In the augmentation ablation, each setting was evaluated within the full final pipeline while varying only the text-training strategy; therefore, the “augmentation + oversampling” condition corresponds to the final adaptive-fusion configuration used in the proposed model. In the augmentation ablation analysis, performance improved when text augmentation was applied compared with the setting that used original text only, and the highest performance was observed when augmentation and oversampling were combined (). These results suggest that, in Korean clinical text–based fall prediction, both mitigation of class imbalance and exposure to semantically diverse expressions contributed to improved generalization of the text model. In the fusion ablation analysis, Meta(BERT+XGB) showed higher discrimination than the single-modality models, and among the fusion variants that additionally incorporated the MED signal, entropy-based adaptive fusion yielded the highest AUC point estimate (). The observed fusion weights indicate that the medication modality served as a modest supplementary signal within the adaptive-fusion model.
In the comparison of medication representation strategies, the bag-of-drugs, full-time-aware, and FRID-only representations achieved AUCs of 0.616, 0.659, and 0.538, respectively. The time-aware representation yielded the highest AUC among the evaluated medication representations, whereas restricting the medication input to prespecified FRID classes did not improve discrimination.
In prespecified pairwise DeLong comparisons, AUC point estimates increased across the staged integration (BERT ensemble 0.816, Meta(BERT+XGB) 0.849, Meta+MED stacking 0.852, adaptive fusion 0.860; ). The incremental improvement of adaptive fusion over Meta(BERT+XGB) was modest (ΔAUC 0.011, 95% CI −0.001 to 0.023, P=.07).
| Model | AUCa (95% CI) | ACCb (95% CI) | Sensitivity (95% CI) | Specificity (95% CI) | F1-score (95% CI) | |||||
| Augmentation ablation | ||||||||||
| Original text only | 0.816 (0.748-0.873) | 0.728 (0.633-0.817) | 0.689 (0.589-0.778) | 0.767 (0.678-0.856) | 0.717 (0.639-0.785) | |||||
| Augmentation only | 0.818 (0.753-0.875) | 0.767 (0.683-0.850) | 0.656 (0.556-0.744) | 0.878 (0.811-0.944) | 0.738 (0.654-0.805) | |||||
| Augmentation + oversampling | 0.860 (0.800-0.914) | 0.806 (0.744-0.861) | 0.722 (0.629-0.816) | 0.889 (0.823-0.949) | 0.788 (0.712-0.850) | |||||
| Fusion ablation | ||||||||||
| Meta+MEDc simple averaging | 0.822 (0.757-0.882) | 0.706 (0.639-0.772) | 0.433 (0.333-0.544) | 0.978 (0.944-1.000) | 0.595 (0.492-0.695) | |||||
| Meta+MED logistic stacking | 0.852 (0.792-0.903) | 0.822 (0.766-0.879) | 0.767 (0.678-0.845) | 0.878 (0.811-0.944) | 0.812 (0.742-0.870) | |||||
| Meta+MED adaptive fusion | 0.860 (0.800-0.914) | 0.806 (0.744-0.861) | 0.722 (0.629-0.816) | 0.889 (0.823-0.949) | 0.788 (0.712-0.850) | |||||
| Medication ablation | ||||||||||
| MED bag of drugsd | 0.616 (0.537-0.695) | 0.550 (0.472-0.628) | 0.222 (0.133-0.311) | 0.878 (0.811-0.944) | 0.331 (0.218-0.439) | |||||
| MED time-awaree | 0.659 (0.579-0.736) | 0.617 (0.528-0.706) | 0.389 (0.289-0.489) | 0.844 (0.767-0.922) | 0.504 (0.397-0.604) | |||||
| MED—FRIDf-only (9 classes, 73 agents) | 0.538 (0.453-0.620) | 0.556 (0.483-0.622) | 0.444 (0.344-0.544) | 0.667 (0.567-0.756) | 0.500 (0.400-0.584) | |||||
aAUC: area under the receiver operating characteristic curve.
bACC: accuracy.
cMED: medication model.
dOptimized operating point (threshold=0.534) based on the validation set.
eOptimized operating point (threshold=0.537) based on the validation set.
fFRID: fall-risk-increasing drug.
| Comparison | AUC1 | AUC2 | Delta AUC (95% CI) | DeLong P value |
| BERTb ensemble vs Meta(BERT+XGBc) | 0.816 | 0.849 | 0.032 (–0.004 to 0.068) | .08 |
| Meta(BERT+XGB) vs adaptive fusion | 0.849 | 0.860 | 0.011 (–0.001 to 0.023) | .07 |
| Meta+MEDd logistic stacking vs adaptive fusion | 0.852 | 0.860 | 0.008 (–0.009 to 0.026) | .33 |
aAUC: area under the receiver operating characteristic curve.
bBERT: Bidirectional Encoder Representations from Transformers.
cXGB: extreme gradient boosting.
dMED: medication model.
Calibration and Probability Quality
On the balanced internal test set, the raw adaptive-fusion probabilities achieved an AUC of 0.860, Brier score of 0.168, log loss of 0.508, and ECE of 0.120. With Platt scaling, the AUC remained 0.860, while the Brier score, log loss, and ECE improved to 0.158, 0.479, and 0.090, respectively. Isotonic calibration was associated with a slight decrease in AUC to 0.857, but it yielded the lowest probability error, with a Brier score of 0.152, log loss of 0.457, and ECE of 0.052. The calibration intercept and slope also moved closer to the ideal values with Platt scaling (intercept 0.382, slope 1.760) and isotonic calibration (intercept 0.125, slope 1.256), compared with the raw predictions (intercept 0.568, slope 2.547; , ).
On the balanced internal test set, calibration plots suggested that the raw and recalibrated probabilities were reasonably ordered across risk strata, although deviations from the ideal line remained. These results should be interpreted cautiously because the balanced evaluation design does not reflect the outcome prevalence expected in routine clinical deployment. Overall, within the present internal evaluation setting, Platt scaling appeared to provide the most practical balance between preserved discrimination and improved overall probability quality, whereas isotonic calibration achieved a lower Brier score and ECE at the cost of a slight reduction in AUC.
| Model | AUCa (95% CI) | Brier (95% CI) | LogLoss (95% CI) | ECEb (95% CI) | Intercept (95% CI) | Slope (95% CI) |
| Adaptive raw | 0.860 (0.800-0.914) | 0.168 (0.149-0.187) | 0.508 (0.462-0.551) | 0.120 (0.078-0.176) | 0.568 (0.220-1.107) | 2.547 (1.742-3.715) |
| Adaptive + Platt | 0.860 (0.800-0.914) | 0.158 (0.136-0.182) | 0.479 (0.424-0.534) | 0.090 (0.065-0.154) | 0.382 (0.081-0.851) | 1.760 (1.205-2.569) |
| Adaptive + isotonic | 0.857 (0.800-0.905) | 0.152 (0.126-0.179) | 0.457 (0.396-0.520) | 0.052 (0.031-0.115) | 0.125 (–0.158-0.661) | 1.256 (0.838-2.019) |
aAUC: area under the receiver operating characteristic curve.
bECE: expected calibration error.
Discussion
Principal Results
In this study, we developed and internally validated a multimodal framework for predicting inpatient fall risk by integrating a BERT-based model that learned contextual information from unstructured Korean nursing notes [,,,] with structured clinical variables and medication prescription patterns.
A central constraint on the interpretation of these results is the intentionally balanced matched case-control evaluation design. The validation and test sets each included 90 fall cases and 90 controls to support comparative model evaluation. Although discrimination is less directly dependent on outcome prevalence, predictive values, calibration-in-the-large, alert burden, and the clinical utility of a fixed threshold cannot be directly extrapolated to routine inpatient populations with different prevalence and case mix. We therefore report prevalence-adjusted scenario projections in to contextualize these deployment-oriented quantities. These projections should be interpreted as conditional estimates rather than observed deployment performance.
The results showed that the single text models (KM-BERT, KoBigBird, and KcELECTRA) achieved test AUCs ranging from 0.768 to 0.800 (95% CI 0.697-0.864), whereas the soft-voting text ensemble improved discrimination to an AUC of 0.816 (95% CI 0.753-0.878), suggesting that ensembling helped reduce variability across text models. Further improvement was observed with Meta(BERT+XGB), which stacked the text ensemble with the structured and frequency-based XGBoost branch and achieved an AUC of 0.849 (95% CI 0.787-0.904). This finding is consistent with prior work suggesting that heterogeneous EHR data types can provide complementary predictive value in clinical prediction tasks [,].
Notably, when the ROC-optimal threshold of 0.419 derived from the validation set was applied to the test set, Meta(BERT+XGB) achieved a sensitivity of 0.778 (95% CI 0.685-0.866), a specificity of 0.778 (95% CI 0.690-0.860), and an F1-score of 0.778 (95% CI 0.704-0.840). This indicates that, at an operating point relevant to clinical use, the model was able to achieve a balanced trade-off between sensitivity and precision while reducing false negatives, which are particularly important in fall-risk screening.
In this study, we considered not only discrimination but also calibration. Calibration is directly relevant to clinical decision-making and has repeatedly been emphasized as a critical yet often underreported aspect of prediction model evaluation [,]. Accordingly, the observed deviations across probability ranges suggest that, when the model is applied to real-world alerting and intervention workflows, operational threshold selection and probability recalibration strategies should be adapted to institutional prevalence and resource constraints [-].
Finally, the entropy-based adaptive fusion model combining Meta(BERT+XGB) and MED yielded the highest AUC point estimate of 0.860 (95% CI 0.800-0.914), accuracy of 0.806 (95% CI 0.744-0.861), sensitivity of 0.722 (95% CI 0.629-0.816), specificity of 0.889 (95% CI 0.823-0.949), and an F1-score of 0.788 (95% CI 0.712-0.850). Although medication information alone may provide limited standalone predictive power, the association between FRIDs and falls has been consistently reported [,]. In this context, the adaptive fusion was designed to allow the medication branch to contribute relatively more when the text- and structure-based meta-model was uncertain. However, the observed fusion weights indicate that medication information functioned as a modest supplementary signal rather than as an equally weighted modality, with the fused prediction remaining predominantly driven by Meta(BERT+XGB).
Because both fusion parameters were selected at the upper bounds of the search grid, the validation data favored the largest meta-model weight the grid allowed. With a=2.0, the medication contribution could not exceed 1 − σ(2)=0.119, the maximum observed on the test set (); it was therefore set by the grid range rather than estimated from the data, and a wider grid would likely have reduced it further. Accordingly, the small, nonsignificant difference between adaptive fusion and Meta(BERT+XGB) (ΔAUC 0.011, P=.07) should not be interpreted as evidence of an optimized medication contribution.
When threshold-based performance was considered, Meta+MED logistic stacking achieved higher accuracy (0.822 vs 0.806), sensitivity (0.767 vs 0.722), and F1-score (0.812 vs 0.788) than adaptive fusion at the selected operating point, whereas adaptive fusion yielded a slightly higher AUC point estimate (0.860 vs 0.852) and specificity (0.889 vs 0.878). AUC was used as the primary between-model discrimination metric because it is independent of the selected operating threshold, whereas threshold-based metrics depend on the chosen operating point and several are additionally sensitive to outcome prevalence. This rationale concerns the comparison metric rather than establishing a preference for either model. Accordingly, the 2 integration strategies should be interpreted as alternative approaches with a small difference in AUC point estimates but different threshold-specific trade-offs, and neither demonstrated clear overall superiority in the present internal evaluation.
The text-based and multimodal models showed higher AUC point estimates than the admission-only structured baselines in this dataset. However, this comparison reflects differences in both modeling approaches and the timing and content of the available inputs, rather than an isolated comparison of model architectures or data modalities. By comparison with the text-only baselines, the BERT-based text model and the multimodal integrated models leveraged structured and unstructured information in a complementary way, yielding stronger discrimination and more stable classification performance. In addition, this study sought to report the model development and evaluation process transparently in accordance with the TRIPOD and TRIPOD+AI recommendations [,].
The chronological sensitivity analysis provided an additional assessment of temporal generalizability. The adaptive-fusion AUC decreased from 0.860 in the primary random-split analysis to 0.834 when the models were developed using 2020-2022 data and evaluated on 2023-2024 data. This finding suggests some sensitivity to temporal changes in patient characteristics or clinical documentation practices and highlights the need for further temporal and external validation.
Comparison With Prior Work
Inpatient fall prediction has traditionally relied on score-based assessment tools such as the MFS, Hendrich II, and the Johns Hopkins tool [-], and the St. Thomas Risk Assessment Tool in Falling Elderly Inpatients (STRATIFY) has also been recognized as a representative fall-risk assessment tool for older hospitalized patients []. However, the accuracy of these fall-risk assessment tools in acute care settings varies considerably across studies, institutions, and target populations, and systematic reviews have reported substantial variability in performance and limitations in implementation [,].
More recently, machine learning–based studies using structured EHR variables for inpatient fall prediction have increased [,], and there has been growing recognition that, in addition to discrimination, calibration, operational threshold selection, and decision-oriented evaluation are important when connecting predictive models to clinical workflows [-]. At the same time, attempts have been made to extract fall-related information from clinical text, such as nursing notes, or to use such text directly for fall prediction [-]. However, many studies have focused primarily on structured data or, even when text was used, have been based on English-language or other non-Korean clinical documentation. Korean clinical text is particularly challenging for NLP because it contains abbreviations, shortened forms, incomplete sentences, and institution-specific documentation practices, making preprocessing and modeling more difficult []. As a result, studies predicting inpatient fall risk in this linguistic and documentation environment remain limited, and direct head-to-head comparison within the same language and document context is difficult [].
In this context, the present study is meaningful in that it used an ensemble of contextual models for Korean nursing notes to improve the stability of text-based prediction and evaluated multimodal integration through stacking with structured variables and TF-IDF features using XGBoost []. Moreover, by going beyond simple averaging and applying adaptive fusion based on predictive uncertainty (entropy), the model adjusted the contribution of each modality at the sample level [], although the incremental AUC gain of this uncertainty-aware weighting was modest and not statistically conclusive.
Limitations and Future Work
This study has several limitations. First, it was conducted as a retrospective study at a single institution and did not include external validation. In particular, the control-sampling strategy based on matching may reduce the demographic and clinical representativeness of the broader inpatient population. Second, because the independent test set was relatively modest in size, it remains necessary to verify whether the performance metrics and optimal thresholds identified in this study can be stably reproduced in other institutions or in larger datasets. This limitation also applies to the prespecified pairwise DeLong comparisons, for which the limited number of fall cases may have reduced statistical power to detect differences between correlated ROC curves. Third, because prior studies and publicly available benchmarks for inpatient fall prediction using Korean nursing notes remain limited, direct comparison within the same language and documentation environment is inherently difficult. Fourth, the comparison with the structured-only baselines was unequal. These baselines used 23 variables recorded at admission, whereas the text-based and multimodal models incorporated information recorded during the preindex observation window of up to 7 days. This asymmetry may favor the text-based and multimodal models because they have access to more recent information about the patient’s condition.
In addition, although observation windows were similar in timing and overall documentation volume, residual differences in documentation intensity and style between prefall and routine periods cannot be fully excluded, and documentation practices are institution-specific, which may affect generalizability across wards or institutions.
Future work should therefore focus on (1) evaluating generalizability through external validation in multicenter prospective cohorts, (2) redesigning threshold selection and calibration strategies according to institutional prevalence and operational goals, and (3) establishing standard evaluation protocols and reporting criteria for Korean clinical text–based fall prediction to improve reproducibility and comparability. In addition, approaches such as federated learning may be considered to enable the use of data from multiple institutions while preserving privacy. Ultimately, prospective implementation studies will be needed to assess usability in real clinical workflows, alert burden, and the real-world impact of the model on fall prevention.
The training curves showed decreasing training loss with a subsequent increase in validation loss, indicating susceptibility to overfitting in the later stages of fine-tuning. Although the final checkpoints were selected according to the validation F1-score rather than the final training step, this pattern highlights the limitation imposed by the relatively small number of original fall cases available for fine-tuning. The training and validation loss curves for all 3 language models are provided in .
In addition, augmentation quality was assessed using automated semantic-similarity filtering without independent clinician review; therefore, subtle alterations in clinically relevant meaning cannot be excluded.
The validation data were reused across modeling stages. In particular, val_cal was used for both meta-model estimation and calibrator fitting, so calibration fitting was not performed on data independent of meta-model estimation. Although the test set remained excluded from model fitting and parameter selection, this reuse limits the assessment of calibration using a fully independent calibration sample.
Finally, the calibration analyses in this study were conducted on balanced internal validation and test sets designed for comparative model evaluation. Therefore, the reported calibration intercepts, slopes, and related probability-quality metrics should not be interpreted as direct estimates of absolute risk calibration in the real-world inpatient population.
Conclusions
This study presented a multimodal framework for inpatient fall-risk prediction that integrated contextual information from Korean nursing notes (BERT ensemble), structured and frequency-based clinical information (XGBoost), and medication prescription patterns (MED). In this framework, stacking-based integration improved discrimination over the single-modality models, and entropy-based adaptive fusion yielded a slightly higher AUC point estimate (0.860) than stacking alone; the evaluation additionally considered operating-threshold selection and probability calibration. These findings suggest that Korean clinical text can provide meaningful information for inpatient fall-risk prediction. They are hypothesis-generating; prospective, prevalence-representative, multicenter external validation, together with evaluation in clinical workflows, is required before clinical use.
Funding
This research was supported by the ANCHOR program (Glocal University 30) through the Gangwon ANCHOR Center, funded by the Ministry of Education (MOE) and the Gangwon State (GS), Republic of Korea (2024-ANCHOR-10-009). This work was also supported by the National Research Foundation of Korea (NRF) grant funded by the Korean government (MSIT; No. RS-2022-NR070859). The funders had no involvement in the study design, data collection, analysis, interpretation, or writing of the manuscript.
Data Availability
The datasets used and analyzed in this study are not publicly available because they are not public-use data and were provided under permission for research purposes only. Public disclosure and external sharing are restricted by institutional policies, patient privacy protections, and the conditions of institutional review board approval.
Generative AI Use
The authors prepared the initial draft in Korean and used Claude (Opus 5.5, Anthropic) and ChatGPT (GPT-5.6 Sol, OpenAI) to assist with translation into English and to improve grammar, vocabulary, and readability throughout the manuscript. These tools also assisted with editing translated passages to preserve the intended meaning and strength of the claims in the Korean draft, particularly where the English wording could overstate the original claims. All AI-assisted text was reviewed, revised, and verified by the authors, who take full responsibility for the accuracy and integrity of the final manuscript.
Authors' Contributions
Conceptualization: SG, Y-SK
Data curation: SG, SK, JOP
Formal analysis: SG
Investigation: SG, SK, JOP
Methodology: SG, Y-SK, SK
Project administration: SK
Resources: JOP
Software: SG
Supervision: Y-SK, SK
Validation: SG
Visualization: SG
Writing – original draft: SG
Writing – review & editing: Y-SK, SK, JOP
Y-SK handled correspondence, and SK and JOP were responsible for clinical interpretation. Y-SK and SK contributed equally and jointly supervised this work.
All authors approved the final manuscript and agree to be accountable for all aspects of the work.
Conflicts of Interest
None declared.
Detailed prescription distributions within 7 days before index time.
PDF File (Adobe PDF File), 219 KBDeidentified examples of original vs augmented Korean nursing-note excerpts.
PDF File (Adobe PDF File), 216 KBHyperparameter assignments for all experiments.
PDF File (Adobe PDF File), 134 KBDistribution of adaptive-fusion weights in the internal test set.
PDF File (Adobe PDF File), 88 KBPrevalence-adjusted predictive values and estimated alert burden.
PDF File (Adobe PDF File), 69 KBChronological split.
PDF File (Adobe PDF File), 54 KBTraining and validation loss curves.
PDF File (Adobe PDF File), 173 KBReferences
- Falls. World Health Organization. Oct 21, 2026. URL: https://www.who.int/news-room/fact-sheets/detail/falls [accessed 2026-11-13]
- Agency for Healthcare Research and Quality. Falls. AHRQ Patient Safety Network. Jun 15, 2024. URL: https://psnet.ahrq.gov/primer/falls [accessed 2026-11-13]
- LeLaurin JH, Shorr RI. Preventing falls in hospitalized patients: state of the science. Clin Geriatr Med. 2019;35(2):273-283. [FREE Full text] [CrossRef] [Medline]
- Florence CS, Bergen G, Atherly A, Burns E, Stevens J, Drake C. Medical costs of fatal and nonfatal falls in older adults. J Am Geriatr Soc. 2018;66(4):693-698. [FREE Full text] [CrossRef] [Medline]
- Bouldin ELD, Andresen EM, Dunton NE, Simon M, Waters TM, Liu M, et al. Falls among adult patients hospitalized in the United States: prevalence and trends. J Patient Saf. 2013;9(1):13-17. [FREE Full text] [CrossRef] [Medline]
- Cameron ID, Dyer SM, Panagoda CE, Murray GR, Hill KD, Cumming RG, et al. Interventions for preventing falls in older people in care facilities and hospitals. Cochrane Database Syst Rev. 2018;9(9):CD005465. [FREE Full text] [CrossRef] [Medline]
- Morse JM, Morse RM, Tylko SJ. Development of a scale to identify the fall-prone patient. Can J Aging. 1989;8(4):366-377. [CrossRef]
- Hendrich AL, Bender PS, Nyhuis A. Validation of the Hendrich II Fall Risk Model: a large concurrent case/control study of hospitalized patients. Appl Nurs Res. 2003;16(1):9-21. [CrossRef] [Medline]
- Poe SS, Cvach M, Dawson PB, Straus H, Hill EE. The Johns Hopkins Fall Risk Assessment Tool: postimplementation evaluation. J Nurs Care Qual. 2007;22(4):293-298. [CrossRef] [Medline]
- Aranda-Gallardo M, Morales-Asencio JM, Canca-Sanchez JC, Barrero-Sojo S, Perez-Jimenez C, Morales-Fernandez A, et al. Instruments for assessing the risk of falls in acute hospitalized patients: a systematic review and meta-analysis. BMC Health Serv Res. 2013;13:122. [FREE Full text] [CrossRef] [Medline]
- Matarese M, Ivziku D, Bartolozzi F, Piredda M, De Marinis MG. Systematic review of fall risk screening tools for older patients in acute hospitals. J Adv Nurs. Jun 2015;71:1198-1209. [CrossRef] [Medline]
- Jung H, Park HA, Hwang H. Improving prediction of fall risk using electronic health record data with various types and sources at multiple times. Comput Inform Nurs. 2020;38(3):157-164. [CrossRef] [Medline]
- Ye C, Li J, Hao S, Liu M, Jin H, Zheng L, et al. Identification of elders at higher risk for fall with statewide electronic health records and a machine learning algorithm. Int J Med Inform. 2020;137:104105. [FREE Full text] [CrossRef] [Medline]
- Beaulieu-Jones BK, Yuan W, Brat GA, Beam AL, Weber G, Ruffin M, et al. Machine learning for patient risk stratification: standing on, or looking over, the shoulders of clinicians? npj Digit Med. 2021;4(1):62. [FREE Full text] [CrossRef] [Medline]
- Van Calster B, McLernon DJ, van Smeden M, Wynants L, Steyerberg EW, Topic Group ‘Evaluating diagnostic tests and prediction models’ of the STRATOS initiative. Calibration: the Achilles heel of predictive analytics. BMC Med. 2019;17(1):230. [FREE Full text] [CrossRef] [Medline]
- Steyerberg EW, Vickers AJ, Cook NR, Gerds T, Gonen M, Obuchowski N, et al. Assessing the performance of prediction models: a framework for traditional and novel measures. Epidemiology. 2010;21(1):128-138. [FREE Full text] [CrossRef] [Medline]
- Vickers AJ, Elkin EB. Decision curve analysis: a novel method for evaluating prediction models. Med Decis Making. 2006;26(6):565-574. [FREE Full text] [CrossRef] [Medline]
- Mitha S, Schwartz J, Hobensack M, Cato K, Woo K, Smaldone A, et al. Natural language processing of nursing notes: an integrative review. Comput Inform Nurs. 2023;41(6):377-384. [CrossRef] [Medline]
- Topaz M, Murga L, Gaddis KM, McDonald MV, Bar-Bachar O, Goldberg Y, et al. Mining fall-related information in clinical notes: comparison of rule-based and novel word embedding-based machine learning approaches. J Biomed Inform. 2019;90:103103. [FREE Full text] [CrossRef] [Medline]
- Nakatani H, Nakao M, Uchiyama H, Toyoshiba H, Ochiai C. Predicting inpatient falls using natural language processing of nursing records obtained from Japanese electronic medical records: case-control study. JMIR Med Inform. 2020;8(4):e16970. [FREE Full text] [CrossRef] [Medline]
- Groeneveld M, Leurs WLM, Bouwman ARA, Schenk J, Lammers L, Dierick A, et al. Text-based fall prediction in hospital: development and internal validation of a model to predict in-hospital falls in older patients using free text from daily nursing records. Appl Nurs Res. 2025;82:151923. [CrossRef] [Medline]
- Kim Y-M, Lee T-H. Korean clinical entity recognition from diagnosis text using BERT. BMC Med Inform Decis Mak. Sep 30, 2020;20(Suppl 7):242. [FREE Full text] [CrossRef] [Medline]
- Devlin J, Chang MW, Lee K, Toutanova K. BERT: pre-training of deep bidirectional transformers for language understanding. 2019. Presented at: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; June 2-7, 2019:4171-4186; Minneapolis, MN. [CrossRef]
- Lee J, Yoon W, Kim S, Kim D, Kim S, So CH, et al. BioBERT: a pre-trained biomedical language representation model for biomedical text mining. Bioinformatics. 2020;36(4):1234-1240. [FREE Full text] [CrossRef] [Medline]
- Alsentzer E, Murphy J, Boag W, Weng WH, Jindi D, Naumann T, et al. Publicly available clinical BERT embeddings. 2019. Presented at: Proceedings of the 2nd Clinical Natural Language Processing Workshop; June 7, 2019:72-78; Minneapolis, MN. [CrossRef]
- Gu Y, Tinn R, Cheng H, Lucas M, Usuyama N, Liu X, et al. Domain-specific language model pretraining for biomedical natural language processing. ACM Trans Comput Healthcare. 2021;3(1):1-23. [CrossRef]
- Gururangan S, Marasović A, Swayamdipta S, Lo K, Beltagy I, Downey D, et al. Don't stop pretraining: adapt language models to domains and tasks. 2020. Presented at: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; July 5-10, 2020; Online. [CrossRef]
- Kim Y, Kim J, Lee JM, Jang MJ, Yum YJ, Kim S, et al. A pre-trained BERT for Korean medical natural language processing. Sci Rep. 2022;12(1):13847. [FREE Full text] [CrossRef] [Medline]
- Huang SC, Pareek A, Seyyedi S, Banerjee I, Lungren MP. Fusion of medical imaging and electronic health records using deep learning: a systematic review and implementation guidelines. NPJ Digit Med. 2020;3:136. [FREE Full text] [CrossRef] [Medline]
- Johnson JM, Khoshgoftaar TM. Survey on deep learning with class imbalance. J Big Data. 2019;6(1):27. [CrossRef]
- Wei J, Zou K. EDA: easy data augmentation techniques for boosting performance on text classification tasks. 2019. Presented at: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing; November 3-7, 2019:6382-6388; Hong Kong, China. [CrossRef]
- Reimers N, Gurevych I. Sentence-BERT: sentence embeddings using siamese BERT-networks. 2019. Presented at: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing; November 3-7, 2019:3982-3992; Hong Kong, China. [CrossRef]
- Collins GS, Reitsma JB, Altman DG, Moons KGM. Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): the TRIPOD statement. BMJ. 2015;350:g7594. [FREE Full text] [CrossRef] [Medline]
- Collins GS, Moons KGM, Dhiman P, Riley RD, Beam AL, Van Calster B, et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ. 2024;385:e078378. [FREE Full text] [CrossRef] [Medline]
- Seppala LJ, van der Velde N, Masud T, Blain H, Petrovic M, van der Cammen TJ, EuGMS Task and Finish Group on Fall-Risk-Increasing Drugs, et al. EuGMS Special Interest Group on Pharmacology. EuGMS task and finish group on fall-risk-increasing drugs (FRIDs): position on knowledge dissemination, management, and future research. Drugs Aging. 2019;36(4):299-307. [FREE Full text] [CrossRef] [Medline]
- Woolcott JC, Richardson KJ, Wiens MO, Patel B, Marin J, Khan KM, et al. Meta-analysis of the impact of 9 medication classes on falls in elderly persons. Arch Intern Med. 2009;169(21):1952-1960. [FREE Full text] [CrossRef] [Medline]
- Hallym University Dongtan Sacred Heart Hospital. URL: https://dongtan.hallym.or.kr/eng/ [accessed 2026-11-13]
- HERO: harmonic integrated research platform. Hallym University Medical Center Big Data Center. URL: https://www.hero.re.kr [accessed 2026-11-13]
- deepset-ai/haystack. GitHub. URL: https://github.com/deepset-ai/haystack [accessed 2026-11-13]
- Wolf T, Debut L, Sanh V, et al. Transformers: state-of-the-art natural language processing. 2020. Presented at: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations; November 16-20, 2020:38-45; Online. [CrossRef]
- beomi/Llama-3-Open-Ko-8B. Hugging Face. URL: https://huggingface.co/beomi/Llama-3-Open-Ko-8B [accessed 2026-11-13]
- Clark K, Luong M, Le Q, Manning C. ELECTRA: pre-training text encoders as discriminators rather than generators. ICLR 2020 Conference. 2025. URL: https://openreview.net/forum?id=r1xMH1BtvB [accessed 2026-11-13]
- Zaheer M, Guruganesh G, Dubey A, Ainslie J, Alberti C, Ontanon S, et al. Big bird: transformers for longer sequences. 2020. Presented at: NIPS'20: Proceedings of the 34th International Conference on Neural Information Processing Systems; December 6-12, 2020:17283-17297; Vancouver, British Columbia, Canada. URL: https://dl.acm.org/doi/abs/10.5555/3495724.3497174
- Lin TY, Goyal P, Girshick R, He K, Dollár P. Focal loss for dense object detection. 2017. Presented at: Proceedings of the IEEE International Conference on Computer Vision; October 22-29, 2017:2980-2988; Venice, Italy. [CrossRef]
- Loshchilov I, Hutter F. Decoupled weight decay regularization. 2019. Presented at: ICLR 2019 Conference; May 6-9, 2019; New Orleans, LA. URL: https://openreview.net/forum?id=Bkg6RiCqY7
- Chen T, Guestrin C. XGBoost: a scalable tree boosting system. 2016. Presented at: KDD '16: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; August 13-17, 2016:785-794; San Francisco, CA. [CrossRef]
- Salton G, Buckley C. Term-weighting approaches in automatic text retrieval. Inf Process Manage. 1988;24(5):513-523. [CrossRef]
- Shannon CE. A mathematical theory of communication. Bell Syst Tech J. 1948;27(4):623-656. [CrossRef]
- Platt JC. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. Adv Large Margin Classifiers. Mar 26, 1999:1-11. [FREE Full text]
- Zadrozny B, Elkan C. Transforming classifier scores into accurate multiclass probability estimates. 2002. Presented at: KDD '02: Proceedings of the Eighth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; July 23-26, 2002:694-699; Edmonton, Alberta, Canada. [CrossRef]
- Efron B, Tibshirani RJ. An Introduction to the Bootstrap. Boca Raton, FL. CRC Press; 1993.
- DeLong ER, DeLong DM, Clarke-Pearson DL. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics. 1988;44(3):837-845. [Medline]
- Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: machine learning in Python. J Mach Learn Res. 2011;12(85):2825-2830. [FREE Full text]
- Harris CR, Millman KJ, van der Walt SJ, Gommers R, Virtanen P, Cournapeau D, et al. Array programming with NumPy. Nature. 2020;585(7825):357-362. [FREE Full text] [CrossRef] [Medline]
- Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, et al. SciPy 1.0 Contributors. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat Methods. 2020;17(3):261-272. [FREE Full text] [CrossRef] [Medline]
- Paszke A, Gross S, Massa F, Lerer A, Bradbury J, Chanan G, et al. PyTorch: an imperative style, high-performance deep learning library. 2019. Presented at: NIPS'19: 33rd International Conference on Neural Information Processing Systems; December 8-14, 2019:8026-8037; Vancouver, British Columbia, Canada. URL: https://dl.acm.org/doi/10.5555/3454287.3455008
- Oliver D, Britton M, Seed P, Martin FC, Hopper AH. Development and evaluation of evidence based risk assessment tool (STRATIFY) to predict which elderly inpatients will fall: case-control and cohort studies. BMJ. 1997;315(7115):1049-1053. [FREE Full text] [CrossRef] [Medline]
Abbreviations
| AUC: area under the receiver operating characteristic curve |
| BERT: Bidirectional Encoder Representations from Transformers |
| BP: blood pressure |
| c/c: chief complaint |
| CDW: clinical data warehouse |
| ECE: expected calibration error |
| EDA: easy data augmentation |
| EHR: electronic health record |
| ER: emergency room |
| FRID: fall-risk-increasing drug |
| HERO: harmonic integrated research platform |
| ICU: intensive care unit |
| JHFRAT: Johns Hopkins Fall Risk Assessment Tool |
| KM-BERT: Korean Medical Bidirectional Encoder Representations from Transformers |
| LLM: large language model |
| MED: medication model |
| Meta(BERT+XGB): logistic regression stacking meta-model combining the BERT ensemble and XGBoost outputs |
| MFS: Morse Fall Scale |
| MICE: multiple imputation by chained equations |
| NLP: natural language processing |
| NRS: numeric rating scale |
| PPV: positive predictive value |
| ROC: receiver operating characteristic |
| Rt/Lt: right/left |
| SBERT: Sentence Bidirectional Encoder Representations from Transformers |
| SMOTE: synthetic minority oversampling technique |
| SpO2: peripheral oxygen saturation |
| STRATIFY: St. Thomas Risk Assessment Tool in Falling Elderly Inpatients |
| SVM: support vector machine |
| TF-IDF: term frequency-inverse document frequency |
| TRIPOD: Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis |
| XGBoost: extreme gradient boosting |
Edited by A Coristine; submitted 28.Mar.2026; peer-reviewed by D Trabassi, W Mayer; comments to author 06.Jul.2026; revised version received 04.Nov.2026; accepted 09.Nov.2026; published 03.Dec.2026.
Copyright©Sanghyeon Gill, Yu-Seop Kim, Sola Kim, Ju Ok Park. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 03.Dec.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.

