Natural language processing to identify documented pain preceding radiation therapy for bone metastases

JNCI Cancer Spectr. 2026 Mar 3;10(2):pkag010. doi: 10.1093/jncics/pkag010.

Abstract

Background: Radiation therapy (RT) plays a crucial role in managing cancer-related symptoms. This study characterized symptom documentation, especially pain, preceding bone metastasis diagnosis and initiation of RT for bone metastasis using natural language processing approaches.

Methods: A deidentified cohort of patients who received RT for bone metastasis at a single tertiary-care institution (2013-2023) was created. Clinical data, notes, and metadata were computationally extracted. A previously validated natural language processing pipeline based on Apache clinical Text Analysis and Knowledge Extraction System was used to extract Common Terminology Criteria for Adverse Events-encoded symptoms from all notes in the 30 days preceding bone metastasis diagnosis and each course of RT for bone metastasis. Logistic regression analyses examined the association between clinical and demographic variables and pain documentation.

Results: In all, 1061 patients (median [IQR] age, 64 [54-72] years; 582 [54.9%] men) received 1718 courses of RT for bone metastases. The most common documented symptoms before bone metastasis diagnosis and first RT for bone metastasis, respectively, were bone metastasis-related pain (52.5% vs 91.6%, P < .001), nausea (20.8% vs 48.9%, P < .001), and constipation (12.8% vs 34.2%, P < .001). Before bone metastasis diagnosis, multiracial or a race other than Asian, Black, or White (odds ratio = 0.61, 95% confidence interval = 0.38 to 0.99]; P = .045) was associated with decreased pain documentation compared with White race. Before RT for bone metastases, women (odds ratio = 1.48, 95% confidence interval = 1.02 to 2.15, P = .04) had increased pain documentation compared with men.

Conclusions: Women and patients who identified as multiracial or a race other than Asian, Black, or White experienced a relative increase in pain documentation from bone metastasis diagnosis to RT for bone metastases. This finding may reflect differential decision-making for which patients are offered RT for bone metastases sooner in the symptom trajectory. Interventions are needed to increase equitable distribution of RT.

MeSH terms

  • Aged
  • Bone Neoplasms* / complications
  • Bone Neoplasms* / radiotherapy
  • Bone Neoplasms* / secondary
  • Cancer Pain* / diagnosis
  • Cancer Pain* / etiology
  • Documentation
  • Female
  • Humans
  • Logistic Models
  • Male
  • Middle Aged
  • Natural Language Processing*
  • Nausea / etiology
  • White