An interpretable fecal microbiota-based GBM-SHAP machine-learning model for distinguishing ankylosing spondylitis from healthy controls
Previous studies have identified associations between ankylosing spondylitis (AS) and the gut microbiota. This retrospective secondary analysis aimed to develop and interpret a fecal microbiota-based machine-learning model for distinguishing AS samples from healthy-control samples using publicly available shotgun metagenomic datasets. Paired-end fecal shotgun metagenomic sequencing data were obtained from PRJNA375935/SRP100575 and PRJEB28545/ERP110757. PRJNA375935/SRP100575 served as the model-development cohort and was divided into training and internal test sets, whereas PRJEB28545/ERP110757 was reserved as an independent external-validation cohort. Reads underwent quality control, host-read removal, taxonomic classification with Kraken2, and species-level abundance estimation with Bracken. Candidate features were screened using a nominal P-value threshold and selected by LASSO logistic regression within the training set. Hyperparameters for six machine-learning models were optimized using five-fold ROC-AUC-based GridSearchCV within the training set. After hyperparameters were fixed, ten-fold cross-validation was used to summarize training-set performance. SHAP values were used to quantify microbial-feature contributions to predictions generated by the final gradient boosting machine (GBM) model. A total of 361 samples were included: 211 from PRJNA375935/SRP100575 (97 AS and 114 healthy controls) and 150 from PRJEB28545/ERP110757 (113 AS and 37 healthy controls). The model-development cohort comprised a training set of 158 samples (69 AS and 89 healthy controls) and an internal test set of 53 samples (28 AS and 25 healthy controls). Alpha-diversity ( P = 0.024) and beta-diversity (PERMANOVA P = 0.001) analyses indicated differences in fecal microbial community structure between AS and healthy-control samples. Exploratory univariate screening identified 1,418 species-level candidate features meeting the nominal P < 0.05 criterion, and LASSO retained 82 microbial features. The GBM model showed the highest observed discrimination, with AUCs of 0.980 in the internal test set and 0.810 in the independent external-validation cohort. A GBM model based on public fecal metagenomic profiles distinguished AS samples from healthy-control samples with encouraging discrimination in an independent external-validation cohort. These findings support further investigation of fecal microbiota-based classification for AS; however, prospective clinical validation, standardized sample processing, and more complete clinical metadata are required before clinical application.
Authors
- Meng-Pan Li
- Xiaojun Ma (ORCID: https://orcid.org/0009-0002-3812-0473)
- Chao-Fan Qi
- Wencai Liu (ORCID: https://orcid.org/0000-0002-5350-3125)
- Si-Ping Long
- Jin He
- Heng-Yi Guo
- Feng-Bo Mo
- Jiang-Peng Wu
- Hao-Ran Chen
- Ling-Feng Yu
- Wei Zhang
- Yi-Cao Ma
Institutions
- Jiangsu University (CN)
- Nanchang University (CN)
- Shanghai Jiao Tong University (CN)
- Renji Hospital (CN)
- Soochow University (CN)
- First Affiliated Hospital of Jiangxi Medical College (CN)
- Jintan People's Hospital (CN)
- Second Affiliated Hospital of Soochow University (CN)
- Shanghai Sixth People's Hospital (CN)
- First Affiliated Hospital of Soochow University (CN)
- First Affiliated Hospital of Nanchang University (CN)
Publication Details
- Journal
- BMC Musculoskeletal Disorders
- Published
- 2026-09-09
- DOI
- https://doi.org/10.1186/s12891-026-10261-w
- Primary Topic
- Spondyloarthritis Studies and Treatments
- Type
- article
- Field-Weighted Citation Impact
- 0.00