Detecting spiritual pain in electronic medical records using large language models

PURPOSE: Spiritual pain is one dimension of total pain in terminally ill patients with cancer. Reducing the burden of assessing spiritual pain in electronic medical records is essential for improving the quality of spiritual care. Large language models may offer a solution. This study explored whether large language models can be used to develop an automatic system for accurately identifying spiritual pain in patients with terminal cancer. METHODS: We used unstructured nursing records from patients with cancer who died in an inpatient palliative care unit at a university hospital in Japan between July and December 2024. A total of 500 records generated within 3 weeks before patients' death were randomly selected for analysis. Records were labeled for the presence of spiritual pain. Gemini-2.5-flash and Microsoft Copilot, accessible within the Tohoku University network environment, were utilized. Prompts included definitions of spiritual pain and example sentences. RESULTS: The analyzed records were derived from 109 patients with cancer (57 (52.3%) male; mean age, 70.9 years). Manual review identified spiritual pain in 56 records (11.2%). Sensitivity for Gemini and Copilot was 1.00; specificity was 0.75 and 0.61; positive predictive value was 0.34 and 0.25; and negative predictive value was 1.00 and 1.00, respectively. Error analysis of false positives indicated that the models frequently misclassified decreased physical functions and delirium as spiritual pain. CONCLUSION: This study demonstrates that large language models can identify spiritual pain with performance comparable to, or exceeding, that of previous studies utilizing classical natural language processing methods.

Authors

Institutions

Publication Details

Journal
Supportive Care in Cancer
Published
2026-10-29
DOI
https://doi.org/10.1007/s00520-026-11416-0
Primary Topic
Religion, Spirituality, and Psychology
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Detecting spiritual pain in electronic medical records using large language models

Ryusuke Inoue, Mitsunori Miyashita, Masaaki Nakayama, Kento Masukawa et al.
6 links
Supportive Care in Cancer
Religion, Spirituality, and Psychology
article

Detecting spiritual pain in electronic medical records using large language models

Ryusuke Inoue, Mitsunori Miyashita, Masaaki Nakayama, Kento Masukawa, Uta Kondo, Miku Ishida, Momoe Meguro, Erika Aihara
article en

Abstract

PURPOSE: Spiritual pain is one dimension of total pain in terminally ill patients with cancer. Reducing the burden of assessing spiritual pain in electronic medical records is essential for improving the quality of spiritual care. Large language models may offer a solution. This study explored whether large language models can be used to develop an automatic system for accurately identifying spiritual pain in patients with terminal cancer. METHODS: We used unstructured nursing records from patients with cancer who died in an inpatient palliative care unit at a university hospital in Japan between July and December 2024. A total of 500 records generated within 3 weeks before patients' death were randomly selected for analysis. Records were labeled for the presence of spiritual pain. Gemini-2.5-flash and Microsoft Copilot, accessible within the Tohoku University network environment, were utilized. Prompts included definitions of spiritual pain and example sentences. RESULTS: The analyzed records were derived from 109 patients with cancer (57 (52.3%) male; mean age, 70.9 years). Manual review identified spiritual pain in 56 records (11.2%). Sensitivity for Gemini and Copilot was 1.00; specificity was 0.75 and 0.61; positive predictive value was 0.34 and 0.25; and negative predictive value was 1.00 and 1.00, respectively. Error analysis of false positives indicated that the models frequently misclassified decreased physical functions and delirium as spiritual pain. CONCLUSION: This study demonstrates that large language models can identify spiritual pain with performance comparable to, or exceeding, that of previous studies utilizing classical natural language processing methods.

Supportive Care in CancerVol. 34(11)
Tohoku University (JP), Tohoku University Hospital (JP)
Japan Society for the Promotion of Science
Good health and well-being
Openalex Percentile: Top 9%
Religion, Spirituality, and Psychology
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon