Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Immunol.

Sec. Systems Immunology

This article is part of the Research TopicArtificial intelligence and machine learning–driven advances in autoimmune diseasesView all articles

A Multicenter Explainable Machine Learning Analysis of Autoimmune Disease Comorbidity in Ankylosing Spondylitis

Provisionally accepted
Jichong  ZhuJichong Zhu1Chengqian  HuangChengqian Huang2Yang  LinYang Lin3Tianyou  ChenTianyou Chen4Lei  RenLei Ren3Jiarui  ChenJiarui Chen1Jiang  XueJiang Xue1Hao  LiHao Li1Hong  ChengHong Cheng5Xinli  ZhanXinli Zhan1Chong  LiuChong Liu1*
  • 1First Affiliated Hospital, Guangxi Medical University, Nanning, China
  • 2The Affiliated Hospital of Youjiang Medical University for Nationalities, Youjiang, China
  • 3Guilin Peoples Hospital, Guilin, China
  • 4The Second Affiliated Hospital of Guangxi Medical University, Nanning, China
  • 5Nanxishan Hospital of Guangxi Zhuang Autonomous Region, Guilin, China

The final, formatted version of the article will be published soon.

Background: Ankylosing spondylitis (AS) frequently coexists with other autoimmune diseases, leading to increased clinical heterogeneity and diagnostic complexity. Early identification of autoimmune comorbidity in AS remains challenging in routine practice. Methods: A multicenter, retrospective, cross-sectional study was conducted, where clinical and laboratory data were collected from three independent tertiary centers between 2012 and 2025. Patients were classified into three groups: AS alone, autoimmune diseases alone, and AS with autoimmune comorbidities. Routinely available variables, including demographic characteristics, systemic inflammatory indices, hematological parameters, and liver and renal function markers, were analyzed. Multiple machine learning algorithms were developed for two clinically relevant classification tasks: AS alone vs. AS with autoimmune comorbidities, and autoimmune diseases alone vs. AS with autoimmune comorbidities. Model performance was evaluated using AUC, calibration, decision curve analysis, and clinical impact curves. SHapley Additive exPlanations (SHAP) were applied to enhance interpretability. Results: Among all models, LightGBM consistently demonstrated superior and stable performance across discrimination, calibration, and clinical utility metrics. In distinguishing AS alone from AS with autoimmune comorbidities, key contributors included age, gender, renal function–related markers (eGFR, CysC, BUN, UA), and protein and hepatobiliary indices (ALB, DBIL). In comparisons between autoimmune diseases alone and AS with autoimmune comorbidities, SHAP highlighted metabolic-and synthesis-related features (GLOB, PREALB, CHE, ALP), acid–base balance (HCO₃), and inflammatory activity (ESR). These patterns suggest that AS-associated autoimmune comorbidity represents a distinct systemic inflammatory–metabolic phenotype rather than a simple amplification of inflammation. Conclusions: Using routinely available clinical data, an explainable machine learning framework enables accurate identification and characterization of autoimmune comorbidity in AS. This approach has practical potential for early risk stratification and clinical decision support in real-world settings.

Keywords: ankylosing spondylitis, autoimmune comorbidity, Lightgbm, machine learning, Shap

Received: 05 Jan 2026; Accepted: 13 Feb 2026.

Copyright: © 2026 Zhu, Huang, Lin, Chen, Ren, Chen, Xue, Li, Cheng, Zhan and Liu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Chong Liu

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.