Introduction: Systemic Lupus Erythematosus (SLE) is a chronic autoimmune disease that affects multiple organs and significantly impacts quality of life, particularly in women, with a global incidence of 5.14 cases per 100,000 person-years. Many SLE patients experience psychiatric complications, such as anxiety, with 55.4% affected in Morocco. To improve patient management and early detection of anxiety, a study proposes developing a machine learning algorithm to analyze patient data and identify predictive patterns. Method: A cross-sectional study conducted at the Hassan II University Hospital examined adults with systemic lupus erythematosus (SLE) between 2020 and 2023, excluding those with psychiatric disorders or communication problems. Data was collected through questionnaires assessing socio-demographic and clinical factors, including anxiety levels, using the Moroccan HADS. Machine learning techniques were used to analyse the data and predict anxiety. Results: The study found a significant positive association between anxiety and factors such as age, age of diagnosis, symptom duration, marital status, pre-existing conditions and respiratory problems. Model performance varied, with logistic regression achieving the highest accuracy (0.67) and recall (0.90), while random forest had the lowest accuracy (0.57) and recall (0.50). Precision scores ranged from 0.54 for SVM to 0.60 for logistic regression and decision tree, with F1 scores between 0.53 and 0.72. Conclusion: The study highlights the need to predict and treat anxiety in lupus patients, using logistic regression as an effective. Addressing anxiety through targeted care strategies can significantly improve the quality of life and overall well-being of lupus patients.
Cite this paper
Omari, M. , Harch, I. E. , Qarmiche, N. , Bourkhime, H. , Charef, N. , Elghazi, S. , Fakir, S. E. and Otmani, N. (2025). Using Machine Learning Model to Predict Anxiety in Systemic Lupus Erythematosus Patients. Open Access Library Journal, 12, e3039. doi: http://dx.doi.org/10.4236/oalib.1113039.
Tian, J., Zhang, D., Yao, X., Huang, Y. and Lu, Q. (2023) Global Epidemiology of Systemic Lupus Erythematosus: A Comprehensive Systematic Analysis and Modelling Study. Annals of the Rheumatic Diseases, 82, 351-356. https://doi.org/10.1136/ard-2022-223035
Meszaros, Z.S., Perl, A. and Faraone, S.V. (2012) Psychiatric Symptoms in Systemic Lupus Erythematosus: A Systematic Review. The Journal of Clinical Psychia-try, 73, 993-1001. https://doi.org/10.4088/jcp.11r07425
Harch, I.E., Benmaamar, S., Oubelkacem, N., Jennane, R., Diagne, B.J., Maiouak, M., et al. (2022) Prevalence and Associated Factors with Anxiety and Depression in Patients with Systemic Lupus Erythematosus in a Moroccan Region. Open Access Library Journal, 9, 1-14. https://doi.org/10.4236/oalib.1108394
Handelman, G.S., Kok, H.K., Chandra, R.V., Razavi, A.H., Lee, M.J. and Asadi, H. (2018) eDoctor: Machine Learning and the Future of Medicine. Journal of Internal Medicine, 284, 603-619. https://doi.org/10.1111/joim.12822
Aringer, M., Costenbader, K.H., Daikh, D.I., Brinks, R., Mosca, M., Ramsey-Goldman, R., et al. (2019) 2019 EULAR/ACR Classification Criteria for Systemic Lupus Erythematosus. Arthritis & Rheumatology, 71, 1400-1412.
Bendahhou, K., Serhir, Z., Ibrahim Khalil, A., Radallah, D., Amegrissi, S., Battas, O., et al. (2017) Validation de la version dialectale Marocaine de l’échelle «HADS». Revue d'épidémiologie et de Santé Publique, 65, S53. https://doi.org/10.1016/j.respe.2017.03.016
Botega, N.J., Bio, M.R., Zomignani, M.A., Garcia Jr, C. and Pe-reira, W.A.B. (1995) Transtornos do humor em enfermaria de clínica médica e validação de escala de medida (HAD) de ansiedade e depressão. Revista de Saúde Pública, 29, 359-363. https://doi.org/10.1590/s0034-89101995000500004
Yan, R., Wang, J., Yang, X. and Yu, J. (2020) Prediction of Comorbid Anxiety and Depression Using Machine Learning Models in Cancer Survivors. https://doi.org/10.21203/rs.3.rs-32449/v1
Sau, A. and Bhakta, I. (2017) Predicting Anxiety and Depression in El-derly Patients Using Machine Learning Technology. Healthcare Technology Letters, 4, 238-243. https://doi.org/10.1049/htl.2016.0096
Ahmed, A., Sultana, R., Ullas, M.T.R., Begom, M., Rahi, M.M.I. and Alam, M.A. (2020) A Machine Learning Approach to Detect Depression and Anxiety Using Supervised Learning. 2020 IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE), Gold Coast, 16-18 December 2020, 1-6. https://doi.org/10.1109/csde50874.2020.9411642
Priya, A., Garg, S. and Tigga, N.P. (2020) Predicting Anxiety, Depression and Stress in Modern Life Using Machine Learning Algorithms. Procedia Computer Science, 167, 1258-1267. https://doi.org/10.1016/j.procs.2020.03.442
Wei, Z., Wang, X., Ren, L., Liu, C., Liu, C., Cao, M., et al. (2023) Using Machine Learning Approach to Predict Depression and Anxiety among Patients with Epilepsy in China: A Cross-Sectional Study. Journal of Affective Disorders, 336, 1-8. https://doi.org/10.1016/j.jad.2023.05.043
Zhou, Y., Han, W., Yao, X., Xue, J., Li, Z. and Li, Y. (2023) Developing a Machine Learning Model for Detecting Depression, Anxiety, and Apathy in Older Adults with Mild Cognitive Impairment Using Speech and Facial Expressions: A Cross-Sectional Observational Study. International Journal of Nursing Studies, 146, Article ID: 104562. https://doi.org/10.1016/j.ijnurstu.2023.104562
Mahalingam, M., Jammal, M., Hoteit, R., Ayna, D., Romani, M., Hijazi, S., et al. (2023) A Machine Learning Study to Predict Anxiety on Campuses in Lebanon. In: Studies in Health Technology and Informatics, IOS Press, 85-88. https://doi.org/10.3233/shti230430