Deciphering risk factors for severe postherpetic neuralgia in patients with herpes zoster: an interpretable machine learning approach
Clinical Snapshot
PICO Framework
| P — Population | 23,326 patients diagnosed with herpes zoster from electronic medical records (2010-2020), with 8,878 meeting eligibility criteria |
| I — Intervention | Machine learning risk prediction model (XGBoost algorithm) |
| C — Comparator | Five different machine learning algorithms compared for predictive performance |
| O — Outcomes | Progression to severe postherpetic neuralgia (PHN) defined as pain persisting ≥90 days post-herpes zoster |
Bottom Line
This large retrospective cohort study developed a machine learning model to predict severe postherpetic neuralgia in herpes zoster patients, achieving good discrimination (AUC 0.787) and identifying eight key risk factors including older age, female sex, cancer history, immunosuppressant use, and initial pain intensity. The model stratified patients into risk groups with a 7-fold difference in PHN development. While the large sample size and comprehensive approach are strengths, the lack of external validation and reliance on diagnostic coding limit immediate clinical application. The identified risk factors are clinically plausible and could inform early intervention strategies, but the model requires validation in independent populations before routine clinical use. Australian clinicians should consider these risk factors when managing herpes zoster patients, particularly for early antiviral therapy and pain management decisions.
Key Findings
P Value: p<0.001 for risk group comparison
Effect Size: 7-fold increased risk in high-risk versus low-risk group
Primary Outcome: Progression to severe postherpetic neuralgia (≥90 days post-herpes zoster)
Nnt Or Sensitivity: AUC 0.787, F1 score 0.351, accuracy 0.900 for XGBoost model
Confidence Interval: Not reported for primary risk stratification
Clinical Application
Requires electronic health record integration and machine learning infrastructure, may be challenging in primary care Relevant to Australian practice given PBS coverage for antiviral therapy and pain management. Risk factors align with RACGP guidelines for HZ management and could inform early intervention strategies Adult patients diagnosed with herpes zoster in hospital or specialist care settings
Abstract
INTRODUCTION: Postherpetic neuralgia (PHN) is a common complication of herpes zoster (HZ). This study aimed to use a large real-world electronic medical records database to determine the optimal machine learning model for predicting the progression to severe PHN and to identify the associated risk factors. METHODS: We analyzed the electronic medical records of 23,326 patients diagnosed with HZ from January 2010 to June 2020. PHN was defined as pain persisting for ≥90 days post-HZ, based on diagnostic and prescription codes. Five machine learning algorithms were compared with select the optimal predictive model and a subsequent risk factor analysis was conducted. RESULTS: Of the 23,326 patients reviewed, 8,878 met the eligibility criteria for the HZ cohort. Among these, 801 patients (9.0%) progressed to severe PHN. Among the various machine learning approaches, XGBoost-an approach that combines multiple decision trees to improve predictive accuracy-performed the best in predicting outcomes (F1 score, 0.351; accuracy, 0.900; area under the receiver operating characteristic curve, 0.787). Using this model, we revealed eight major risk factors: older age, female sex, history of shingles and cancer, use of immunosuppressants and antidepressants, intensive initial pain, and the neutrophil-to-lymphocyte ratio. When patients were categorized into low-risk and high-risk groups based on the predictive model, PHN was seven times more likely to occur in the high-risk group (p<0.001). CONCLUSIONS: Leveraging machine learning analysis, this study identifies an optimal model for predicting severe PHN and highlights key associated risk factors. This model will enable the establishment of more proactive treatments for high-risk patients, potentially mitigating the progression to severe PHN.
References
- 1.Park, S. J., Han, J., Choi, J. B., Min, S. K., Park, J., & Choi, S. (2026). Deciphering risk factors for severe postherpetic neuralgia in patients with herpes zoster: an interpretable machine learning approach. Regional Anesthesia and Pain Medicine. https://doi.org/10.1136/rapm-2024-106003
Related Research
Lasers in medical science
Effect of photobiomodulation on trapezius myofascial pain: a randomized, sham-controlled, double-blind clinical trial.
28 July 2026
Scandinavian journal of pain
Multimodal deep learning fusion for automatic pain detection in cancer patients
26 July 2026
Scandinavian journal of pain
Exercise prescription and monitoring of heart rate parameters in people with chronic pain: a systematic review
25 July 2026
This content is for educational purposes for healthcare professionals only and does not constitute clinical advice. Clinical decisions should be based on individual patient assessment, current guidelines, and appropriate specialist consultation. Editorial Standards · Privacy Policy · Terms of Service