Predicting opioid consumption after surgical discharge: a multinational derivation and validation study using a foundation model
- PMID: 40858986
- PMCID: PMC12381370
- DOI: 10.1038/s41746-025-01798-6
Predicting opioid consumption after surgical discharge: a multinational derivation and validation study using a foundation model
Abstract
Opioids are frequently overprescribed after surgery. We applied a tabular foundation model to predict the risk of post-discharge opioid consumption. The model was trained and internally validated on an 80:20 training/test split of the 'Opioid PrEscRiptions and usage After Surgery' (ACTRN12621001451897p) study cohort, including adult patients undergoing general, orthopaedic, gynaecological and urological operations (n = 4267), with external validation in a distinct cohort of patients discharged after general surgical procedures (n = 826). The area under the receiver operator curve was 0.84 (95% confidence interval [CI] 0.81-0.88) at internal testing and 0.77 (95% CI 0.74-0.80) at external validation. Brier scores were 0.13 (95% CI 0.12-0.14) and 0.19 (95% CI 0.17-0.2). Patients with a <50% predicted risk of opioid consumption consumed a median of 0 oral morphine equivalents in the first week after surgery. Applying this model would reduce opioid prescriptions by 4.5% globally, and counterfactual modelling suggests without increasing time in severe pain (-4.3%, 95% CI -17.7 to 8.6).
© 2025. The Author(s).
Conflict of interest statement
Competing interests: The authors declare no competing interests.
Figures



Similar articles
-
Prescription of Controlled Substances: Benefits and Risks.2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. 2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. PMID: 30726003 Free Books & Documents.
-
Comparison of Two Modern Survival Prediction Tools, SORG-MLA and METSSS, in Patients With Symptomatic Long-bone Metastases Who Underwent Local Treatment With Surgery Followed by Radiotherapy and With Radiotherapy Alone.Clin Orthop Relat Res. 2024 Dec 1;482(12):2193-2208. doi: 10.1097/CORR.0000000000003185. Epub 2024 Jul 23. Clin Orthop Relat Res. 2024. PMID: 39051924
-
Continuous intravenous perioperative lidocaine infusion for postoperative pain and recovery in adults.Cochrane Database Syst Rev. 2018 Jun 4;6(6):CD009642. doi: 10.1002/14651858.CD009642.pub3. Cochrane Database Syst Rev. 2018. PMID: 29864216 Free PMC article.
-
Can Patient-centered Education and Pain Management Delivered by Coaches Improve Pain Outcomes After Orthopaedic Trauma? A Randomized Trial.Clin Orthop Relat Res. 2024 Oct 1;482(10):1858-1869. doi: 10.1097/CORR.0000000000003121. Epub 2024 May 15. Clin Orthop Relat Res. 2024. PMID: 38843502 Clinical Trial.
-
Transversus abdominis plane (TAP) blocks for prevention of postoperative pain in women undergoing laparoscopic and robotic gynaecological surgery.Cochrane Database Syst Rev. 2025 Apr 3;4(4):CD015145. doi: 10.1002/14651858.CD015145.pub2. Cochrane Database Syst Rev. 2025. PMID: 40178137
References
-
- S Platt, J. R. The opioid crisis in the USA: a public health emergency. Lancet390, 2016 (2017). - PubMed
LinkOut - more resources
Full Text Sources