Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 May 1;8(5):e258927.
doi: 10.1001/jamanetworkopen.2025.8927.

Predicting Agitation Events in the Emergency Department Through Artificial Intelligence

Affiliations

Predicting Agitation Events in the Emergency Department Through Artificial Intelligence

Ambrose H Wong et al. JAMA Netw Open. .

Abstract

Importance: Agitation events are increasing in emergency departments (EDs), exacerbating safety risks for patients and clinicians. A wide range of clinical etiologies and behavioral patterns in the emergency setting make agitation prediction difficult in this setting.

Objective: To develop, train, and validate an agitation-specific prediction model based on a large, diverse set of past ED visit data.

Design, setting, and participants: This cohort study included electronic health record data collected from 9 ED sites within a large, urban health system in the Northeast US. All ED visits featuring patients aged 18 years or older from January 1, 2015, to December 31, 2022, were included in the analysis and modeling. Data analysis occurred between May 2023 and September 2024.

Exposures: Variables that served as potential exposures of interest, encompassing demographic information, patient history, initial vital signs, visit information, mode of arrival, and health services utilization.

Main outcomes and measures: The primary outcome of agitation was defined as the presence of an intramuscular chemical sedation and/or violent physical restraint order during an ED visit. A clinical model was developed to identify risk factors that predict agitation development during an ED visit prior to symptom onset. Model performance was measured using area under the receiver operating characteristic curve (AUROC) and area under the precision recall curve (PR-AUC).

Results: The final cohort comprised 3 048 780 visits. The cohort had a mean (SD) age of 50.2 (20.4) years, with 54.7% visits among female patients. The final artificial intelligence model used 50 predictors for the primary outcome of predicting agitation events. The model achieved an AUROC of 0.94 (95% CI, 0.93-0.94) and a PR-AUC of 0.41 (95% CI, 0.40-0.42) in cross-validation, indicating good discriminative ability. Calibration of the model was evaluated and demonstrated robustness across the range of predicted probabilities. The top predictors in the final model included factors such as number of past ED visits, initial vital signs, medical history, chief concern, and number of previous sedation and restraint events.

Conclusions and relevance: Using a cross-sectional cohort of ED visits across 9 hospitals, the prediction model included factors for detecting risk of agitation that demonstrated high accuracy and applicability across diverse patient populations. These results suggest that clinical application of the model may enhance patient-centered care through preemptive deescalation and prevention of agitation.

PubMed Disclaimer

Conflict of interest statement

Conflict of Interest Disclosures: Dr Wong reported receiving grants from the National Institute of General Medical Sciences outside the submitted work. Dr Wang reported receiving a patent for a machine learning–based risk prediction model using data from implantable or wearable cardiac devices. Dr Melnick reported receiving grants from the National Institute on Drug Abuse, the Agency for Healthcare Research and Quality, and the American Medical Association outside the submitted work and receiving options in Iolite Inc for serving as an advisor outside of the submitted work. Dr Taylor reported receiving grants from Beckman Coulter outside the submitted work. No other disclosures were reported.

Figures

Figure 1.
Figure 1.. Flow Diagram for Emergency Department (ED) Visits Included in the Study and Breakdown of Visits Used for Training, Testing, and External Validation
Figure 2.
Figure 2.. Model Performance and Evaluation Plots for the External Cohort
AUROC indicates area under the receiver operating characteristic curve; PR-AUC, area under the precision recall curve.
Figure 3.
Figure 3.. Shapley Additive Explanations (SHAP) Bee Swarm Plot of the Top 25 Predictors of Agitation Events Generated From the Gradient-Boosted Decision Tree Model
Each dot corresponds to a single patient observation, and its position along the x-axis indicates how strongly and in which direction the predictor shifted the log-odds of an agitation event. Positive SHAP values (right of 0) indicate that a feature increased the log-odds (and thus the likelihood) of agitation, whereas negative SHAP values (left of 0) show a decrease in the log-odds. ED indicates emergency department; ESI, Emergency Severity Index.

Comment in

  • doi: 10.1001/jamanetworkopen.2025.8939

References

    1. Theriault KM, Rosenheck RA, Rhee TG. Increasing emergency department visits for mental health conditions in the United States. J Clin Psychiatry. 2020;81(5):20m13241. doi:10.4088/JCP.20m13241 - DOI - PubMed
    1. Capp R, Hardy R, Lindrooth R, Wiler J. National trends in emergency department visits by adults with mental health disorders. J Emerg Med. 2016;51(2):131-135.e1. doi:10.1016/j.jemermed.2016.05.002 - DOI - PubMed
    1. Nordstrom K, Zun LS, Wilson MP, et al. . Medical evaluation and triage of the agitated patient: consensus statement of the American Association for Emergency Psychiatry Project Beta medical evaluation workgroup. West J Emerg Med. 2012;13(1):3-10. doi:10.5811/westjem.2011.9.6863 - DOI - PMC - PubMed
    1. Holloman GH Jr, Zeller SL. Overview of Project BETA: best practices in evaluation and treatment of agitation. West J Emerg Med. 2012;13(1):1-2. doi:10.5811/westjem.2011.9.6865 - DOI - PMC - PubMed
    1. Miner JR, Klein LR, Cole JB, Driver BE, Moore JC, Ho JD. The characteristics and prevalence of agitation in an urban county emergency department. Ann Emerg Med. 2018;72(4):361-370. doi:10.1016/j.annemergmed.2018.06.001 - DOI - PubMed

Publication types