Machine Learning–Based Prediction of Autoimmune Diseases in Primary Care
Abstract
Objective: Autoimmune diseases are complex disorders with varied clinical manifestations, and their diagnosis often requires specialized tests not readily available in primary care. This study aimed to design and assessed machine learning (ML) algorithms capable of identifying potential cases of autoimmune diseases by using routinely available, low-cost clinical and laboratory parameters. Materials and Methods: A total of 1650 individuals from four family health centers were retrospectively evaluated. Commonly used primary care tests—including complete blood count, biochemical markers, metabolic indices, and anthropometric variables—were incorporated. Five ML approaches (Random Forest, Extreme Gradient Boosting (XGBoost), Support Vector Machine, Logistic Regression, and Deep Learning) were implemented and compared. To improve interpretability, SHapley Additive Explanations (SHAP) were employed to determine the relative importance of predictors. Results: XGBoost demonstrated the highest performance (Accuracy: 0.77, AUC: 0.83, F1 score: 0.77), whereas Random Forest and Deep Learning achieved moderately high accuracy. SHAP interpretation revealed that sex, systolic blood pressure, mean platelet volume, monocyte levels, triglyceride-glucose, waist-to-height ratio, and neutrophil-tolymphocyte ratio were the most impactful predictors. Conclusion: ML models using routinely available measures may support risk stratification for autoimmune diseases in primary care. SHAP improves transparency; however, external and prospective validation is needed before clinical use.
Keywords
References
- 1. Taha SI, Samaan SF, Ibrahim RA, Moustafa NM, El-Sehsah EM, Youssef MK. Can complete blood count picture tell us more about the activity of rheumatological diseases? Clin Med Insights Arthritis Musculoskelet Disord 2022; 15: 11795441221089182. google scholar
- 2. Rose NR. Prediction and prevention of autoimmune disease in the 21st century: a review and preview. Am J Epidemiol 2016; 183(5): 403–6. google scholar
- 3. Mormile I, Osman M, Rossi FW. Editorial: Prognostic and predictive factors in autoimmune connective tissue disorders. Front Immunol 2024; 15: 1465572. google scholar
- 4. Chen T, Guestrin C. XGBoost: A scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; 2016 Aug 13–17; San Francisco, CA, USA. New York: ACM; 2016. pp.785–94. google scholar
- 5. Manning C. Artificial Intelligence Definitions. Stanford University Human-Centered Artificial Intelligence (serial online) 2020 (cited 2025 Mar 18). Available from: URL: https://hai.stanford.edu/sites/default/files/2020-09/AI-Definitions-HAI.pdf google scholar
- 6. Galozzi P, Basso D, Plebani M, Padoan A. Artificial intelligence and laboratory data in rheumatic diseases. Clin Chim Acta 2023; 546: 117388. google scholar
- 7. Yoshihara A, Yoshimura Noh J, Inoue K, Taguchi J, Hata K, Aizawa T, et al. Prediction model of Graves' disease in general clinical practice based on complete blood count and biochemistry profile. Endocr J 2022; 69(9): 1091-100. google scholar
- 8. Kay J, Upchurch KS. ACR/EULAR 2010 rheumatoid arthritis classification criteria. Rheumatology (Oxford) 2012; 51(6): vi5–9. google scholar
Details
Primary Language
English
Subjects
Autoimmunity
Journal Section
Research Article
Publication Date
August 27, 2026
Submission Date
September 17, 2025
Acceptance Date
April 13, 2026
Published in Issue
Year 2026 Volume: 16 Number: 1