{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,17]],"date-time":"2026-08-17T23:24:15Z","timestamp":1787009055730,"version":"build-2736575974"},"reference-count":29,"publisher":"Oxford University Press (OUP)","issue":"8","license":[{"start":{"date-parts":[[2026,5,20]],"date-time":"2026-05-20T00:00:00Z","timestamp":1779235200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/"}],"funder":[{"name":"Australian National Health and Medical Research Council"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2026,8,1]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:sec>\n                    <jats:title>Objective<\/jats:title>\n                    <jats:p>To evaluate and compare the performance of large language models (LLMs) in identifying contributing factors (CFs) underlying patient safety incident investigations.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Materials and Methods<\/jats:title>\n                    <jats:p>Four open-source, lightweight LLMs, including BERT, LLaMA2, GPT2, and Phi-2 were applied to classify CFs across 6 sociotechnical system-levels encompassing 12 categories (eg, person, task, and organizational factors). Reports of real-world patient safety investigations from public health systems were extracted and labelled by domain experts (n_report\/CFs\u2009=\u2009300\/1338). Data were split into training (n\u2009=\u2009852), validation (n\u2009=\u200998), and test sets (n\u2009=\u2009388). Performance was evaluated using specificity, precision, recall, and F1 scores.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>The fine-tuned encoder-based BERT model achieved the highest performance, with a micro-averaged F1 score of 63.6%, outperforming all decoder-based models. Among the decoder models, Phi-2 demonstrated the strongest performance (F1\u2009=\u200954.9%), exceeding both LLaMA2 and GPT2. BERT performed consistently across 6 system-levels but often misclassified \u201corganization\u201d as \u201cperson\u201d.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Discussion<\/jats:title>\n                    <jats:p>LLMs hold promise for automating the extraction of CFs from complex safety narratives, particularly for frequently reported system-levels such as \u201cperson\u201d and \u201ctasks\u201d. Such automation may substantially reduce the manual effort required to analyse reports of patient safety investigations while supporting more consistent analysis across large incident datasets.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Conclusion<\/jats:title>\n                    <jats:p>Applying LLMs to analyse the underlying causes of patient safety incidents depends on developing high-quality, domain-specific datasets that enhance the representation of patient safety knowledge and improve model understanding of incident causation. Improving data coverage for rare system-levels is essential to address the current limitations of LLMs in capturing nuanced patient safety concepts and domain-specific reasoning.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.1093\/jamia\/ocag068","type":"journal-article","created":{"date-parts":[[2026,4,15]],"date-time":"2026-04-15T11:42:04Z","timestamp":1776253324000},"page":"1494-1503","source":"Crossref","is-referenced-by-count":1,"title":["Fine-tuning and evaluating large language models for patient safety tasks: classification of contributing factors in incident reports"],"prefix":"10.1093","volume":"33","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-8537-3954","authenticated-orcid":false,"given":"Ying","family":"Wang","sequence":"first","affiliation":[{"name":"Centre for Health Informatics, Australian Institute of Health Innovation, Macquarie University , Sydney,","place":["Australia"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lorelle","family":"Bowditch","sequence":"additional","affiliation":[{"name":"Centre for Healthcare Resilience and Implementation Science, Australian Institute of Health Innovation, Macquarie University , Sydney,","place":["Australia"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Charlotte","family":"Molloy","sequence":"additional","affiliation":[{"name":"Centre for Healthcare Resilience and Implementation Science, Australian Institute of Health Innovation, Macquarie University , Sydney,","place":["Australia"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yinghua","family":"Yu","sequence":"additional","affiliation":[{"name":"Centre for Healthcare Resilience and Implementation Science, Australian Institute of Health Innovation, Macquarie University , Sydney,","place":["Australia"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7865-343X","authenticated-orcid":false,"given":"Peter","family":"Hibbert","sequence":"additional","affiliation":[{"name":"Centre for Healthcare Resilience and Implementation Science, Australian Institute of Health Innovation, Macquarie University , Sydney,","place":["Australia"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8426-5588","authenticated-orcid":false,"given":"Farah","family":"Magrabi","sequence":"additional","affiliation":[{"name":"Centre for Health Informatics, Australian Institute of Health Innovation, Macquarie University , Sydney,","place":["Australia"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"286","published-online":{"date-parts":[[2026,5,20]]},"reference":[{"key":"2026072104045322000_ocag068-B1","article-title":"Do patient safety incident investigations align with systems thinking? An analysis of contributing factors and recommendations","author":"Bowditch","year":"2025","journal-title":"BMJ Qual Saf"},{"key":"2026072104045322000_ocag068-B2","volume-title":"Global Patient Safety Action Plan 2021-2030: Towards Eliminating Avoidable Harm in Health Care","author":"World Health Organization","year":"2021"},{"key":"2026072104045322000_ocag068-B3","doi-asserted-by":"crossref","first-page":"e085854","DOI":"10.1136\/bmjopen-2024-085854","article-title":"Improving health system responses when patients are harmed: a protocol for a multistage mixed-methods study","volume":"14","author":"Hibbert","year":"2024","journal-title":"BMJ Open"},{"key":"2026072104045322000_ocag068-B4","first-page":"0_1-72","article-title":"The economics of patient safety: from analysis to action","author":"Klazinga","year":"2022","journal-title":"OECD Health Working Papers"},{"key":"2026072104045322000_ocag068-B5","volume-title":"Patient Safety Incident Reporting and Learning Systems: Technical Report and Guidance","author":"World Health Organization","year":"2020"},{"key":"2026072104045322000_ocag068-B6","doi-asserted-by":"crossref","first-page":"1645575","DOI":"10.3389\/frhs.2025.1645575","article-title":"Decades of failure to prevent harm to patients-where are we going wrong? A mixed methods study of the perspectives of health services staff across Australia and internationally","volume":"5","author":"Bierbaum","year":"2025","journal-title":"Front Health Serv"},{"key":"2026072104045322000_ocag068-B7","author":"McMullan","year":"2025"},{"key":"2026072104045322000_ocag068-B8","first-page":"117","author":"Aathilakshmi","year":"2024"},{"key":"2026072104045322000_ocag068-B9","doi-asserted-by":"crossref","first-page":"103971","DOI":"10.1016\/j.ijmedinf.2019.103971","article-title":"A systematic review of natural language processing for classification tasks in the field of incident reporting and adverse event analysis","volume":"132","author":"Young","year":"2019","journal-title":"Int J Med Inform"},{"key":"2026072104045322000_ocag068-B10","first-page":"386","article-title":"Evaluating large language models for analysing safety risks in healthcare incident reports","volume":"329","author":"Denecke","year":"2025","journal-title":"Stud Health Technol Inform"},{"key":"2026072104045322000_ocag068-B11","doi-asserted-by":"crossref","first-page":"e53378","DOI":"10.2196\/53378","article-title":"A Machine learning approach with human-AI collaboration for automated classification of patient safety event reports: algorithm development and validation Study","volume":"11","author":"Chen","year":"2024","journal-title":"JMIR Hum Factors"},{"key":"2026072104045322000_ocag068-B12","doi-asserted-by":"crossref","first-page":"49","DOI":"10.3390\/healthcare12050549","article-title":"Risk management and patient safety in the artificial intelligence era: a systematic review","volume":"12","author":"Ferrara","year":"2024","journal-title":"Healthcare"},{"key":"2026072104045322000_ocag068-B13","doi-asserted-by":"crossref","first-page":"31","DOI":"10.1136\/bmjhci-2022-100731","article-title":"A natural language processing approach to categorise contributing factors from patient safety event reports","volume":"30","author":"Tabaie","year":"2023","journal-title":"BMJ Health Care Inform"},{"key":"2026072104045322000_ocag068-B14","doi-asserted-by":"crossref","first-page":"901","DOI":"10.1136\/bmjqs-2020-012538","article-title":"SEIPS 101 and seven simple SEIPS tools","volume":"30","author":"Holden","year":"2021","journal-title":"BMJ Qual Saf"},{"key":"2026072104045322000_ocag068-B15","doi-asserted-by":"crossref","first-page":"340","DOI":"10.1093\/jamia\/ocac225","article-title":"A comparative study of pretrained language models for long clinical text","volume":"30","author":"Li","year":"2023","journal-title":"J Am Med Inform Assoc"},{"key":"2026072104045322000_ocag068-B16","doi-asserted-by":"crossref","first-page":"e882","DOI":"10.1016\/S2589-7500(23)00179-6","article-title":"Predicting seizure recurrence after an initial seizure-like episode from routine clinical notes using large language models: a retrospective cohort study","volume":"5","author":"Beaulieu-Jones","year":"2023","journal-title":"Lancet Digit Health"},{"key":"2026072104045322000_ocag068-B17","doi-asserted-by":"crossref","first-page":"319","DOI":"10.1001\/jama.2024.21700","article-title":"Testing and evaluation of health care applications of large language models: a systematic review","volume":"333","author":"Bedi","year":"2025","journal-title":"JAMA"},{"key":"2026072104045322000_ocag068-B18","first-page":"1","article-title":"Scaling instruction-finetuned language models","volume":"25","author":"Chung","year":"2024","journal-title":"J Mach Learn Res"},{"key":"2026072104045322000_ocag068-B19","doi-asserted-by":"publisher","DOI":"10.2196\/7920241672471","article-title":"Large Language Models for Health Care Text Classification: Systematic Review","volume":"5","author":"Sakai","year":"2026","journal-title":"JMIR AI"},{"key":"2026072104045322000_ocag068-B20","doi-asserted-by":"crossref","first-page":"e101146","DOI":"10.1136\/bmjhci-2024-101146","article-title":"Assessing the transferability of BERT to patient safety: classifying multiple types of incident reports","volume":"32","author":"Wang","year":"2025","journal-title":"BMJ Health Care Inform"},{"key":"2026072104045322000_ocag068-B21","doi-asserted-by":"crossref","first-page":"1158","DOI":"10.1016\/j.ssci.2011.11.009","article-title":"Systems-based accident analysis methods: a comparison of Accimap, HFACS, and STAMP","volume":"50","author":"Salmon","year":"2012","journal-title":"Saf Sci"},{"key":"2026072104045322000_ocag068-B22","doi-asserted-by":"crossref","first-page":"102888","DOI":"10.1016\/j.inffus.2024.102888","article-title":"A comprehensive survey of large language models and multimodal large language models in medicine","volume":"117","author":"Xiao","year":"2025","journal-title":"Information Fusion"},{"key":"2026072104045322000_ocag068-B23","first-page":"609","article-title":"Automating the identification of patient safety incident reports using multi-label classification","volume":"245","author":"Wang","year":"2017","journal-title":"Stud Health Technol Inform"},{"key":"2026072104045322000_ocag068-B24","first-page":"549","author":"Ferrara","year":"2024"},{"key":"2026072104045322000_ocag068-B25","first-page":"mzad049","volume-title":"Revolutionizing Patient Safety with Artificial Intelligence: The Potential of Natural Language Processing and Large Language Models","author":"Klang","year":"2023"},{"key":"2026072104045322000_ocag068-B26","doi-asserted-by":"crossref","first-page":"135","DOI":"10.1038\/s41746-023-00879-8","article-title":"The shaky foundations of large language models and foundation models for electronic health records","volume":"6","author":"Wornow","year":"2023","journal-title":"NPJ Digit Med"},{"key":"2026072104045322000_ocag068-B27","doi-asserted-by":"crossref","first-page":"104274","DOI":"10.1016\/j.jbi.2022.104274","article-title":"Benchmark datasets driving artificial intelligence development fail to capture the needs of medical professionals","volume":"137","author":"Blagec","year":"2023","journal-title":"J Biomed Inform"},{"key":"2026072104045322000_ocag068-B28","doi-asserted-by":"crossref","first-page":"21763","DOI":"10.52202\/079017-0685","article-title":"Betterbench: assessing AI benchmarks, uncovering issues, and establishing best practices","volume":"37","author":"Reuel","year":"2024","journal-title":"Adv Neural Inf Process Syst"},{"key":"2026072104045322000_ocag068-B29","first-page":"e70010","article-title":"A brief review on benchmarking for large language models evaluation in healthcare","volume":"15","author":"Budler","year":"2025","journal-title":"Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery"}],"container-title":["Journal of the American Medical Informatics Association"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/academic.oup.com\/jamia\/advance-article-pdf\/doi\/10.1093\/jamia\/ocag068\/68346251\/ocag068.pdf","content-type":"application\/pdf","content-version":"am","intended-application":"syndication"},{"URL":"https:\/\/academic.oup.com\/jamia\/article-pdf\/33\/8\/1494\/68346251\/ocag068.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/academic.oup.com\/jamia\/article-pdf\/33\/8\/1494\/68346251\/ocag068.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,21]],"date-time":"2026-07-21T08:05:00Z","timestamp":1784621100000},"score":1,"resource":{"primary":{"URL":"https:\/\/academic.oup.com\/jamia\/article\/33\/8\/1494\/8688232"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,20]]},"references-count":29,"journal-issue":{"issue":"8","published-online":{"date-parts":[[2026,5,20]]},"published-print":{"date-parts":[[2026,8,1]]}},"URL":"https:\/\/doi.org\/10.1093\/jamia\/ocag068","relation":{},"ISSN":["1067-5027","1527-974X"],"issn-type":[{"value":"1067-5027","type":"print"},{"value":"1527-974X","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2026,8]]},"published":{"date-parts":[[2026,5,20]]}}}