Evaluation of Machine Learning–Based Methods to Detect Bipolar Disorder in Individuals With Mental Health Conditions

Authors

DOI:

https://doi.org/10.21015/vtse.v13i3.2173

Abstract

Bipolar disorder (BD) is still one of the most incapacitating of neuroaffective disorders in psychiatry. The strong mood swings from states of euphoria to depression often destabilize interpersonal relationships and can undo occupational stability. Early and reliable diagnosis facilitates prompt pharmacological intervention and mental-health education that may protect not only the patient and their immediate social circle but also the entire social structure from general distress. In this research study the performance of machine learning algorithms such as random forest (RF), support vector machine (SVM) and gradient boosting (GB) has been investigated for classification and prognostication of BD and its subtypes. The machine learning models were validated using a clinical dataset, which included 120 participants: 28 of BD I, 31 of BD II, 31 of Major Depressive Disorder and 30 healthy controls. Model performance was evaluated with stratified cross-validated train-test-split and a set of metrics, including accuracy, precision, recall, F1-score, and Receiver Operating Characteristic - Area under the Curve (ROC vs. AUC). In other words, the RF model had the highest accuracy (88%), precision (90%), and recall (88%). The discriminative performance of RF and SVM models was comparable with an ROC-AUC of 97\%. These results emphasize the potential of machine learning (ML), specifically ensemble techniques like Random Forest (RF), as an effective supplement to traditional early clinical diagnosis in bipolar disorders and related psychiatric illnesses

References

I. Grande, M. Berk, B. Birmaher, and E. Vieta, “Bipolar disorder,” The Lancet, vol. 387, no. 10027, pp. 1561–1572, 2016. DOI: https://doi.org/10.1016/S0140-6736(15)00241-X

D. J. Miklowitz and S. L. Johnson, “Bipolar disorder,” in Psychopathology: History, Diagnosis, and Empirical Foundations, 3rd ed., 2017, pp. 317–363.

R. S. McIntyre et al., “Bipolar disorders,” The Lancet, vol. 396, no. 10265, pp. 1841–1856, 2020.

V. Oliva et al., “Bipolar disorders: an update on critical aspects,” The Lancet Regional Health–Europe, vol. 48, 2025.

T. M. Gencheva et al., “Diagnostic value of structural, functional and effective connectivity in bipolar disorder,” Acta Psychiatrica Scandinavica, vol. 151, no. 3, pp. 192–209, 2025.

M. Leboyer and D. J. Kupfer, “Bipolar disorder: new perspectives in health care and prevention,” J. Clin. Psychiatry, vol. 71, no. 12, p. 1971, 2010. DOI: https://doi.org/10.4088/JCP.10m06347yel

H. B. Türközer et al., “Familial high-risk for psychosis and bipolar disorder amongst youth,” Early Intervention in Psychiatry, vol. 19, no. 2, p. e70019, 2025.

D. A. Clayton and G. M. Burlingame, “Evidence-based group therapy for mood disorders,” Group Dynamics, 2024.

P. J. Harrison et al., “Innovative approaches to bipolar disorder and its treatment,” Ann. N. Y. Acad. Sci., vol. 1366, no. 1, pp. 76–89, 2016. DOI: https://doi.org/10.1111/nyas.13048

A. Liberona et al., “BDNF as a predictor of treatment response,” Int. J. Mol. Sci., vol. 25, no. 20, p. 11204, 2024.

M. N. Modesti et al., “Lipidomics and genomics in mental health,” Lipids in Health and Disease, vol. 24, no. 1, p. 89, 2025.

L. M. Dietze et al., “White matter microstructure in obesity and bipolar disorders,” Molecular Psychiatry, 2024.

S.-Y. Ye et al., “Lower serum IGF-2 in BD,” Frontiers in Psychiatry, vol. 15, p. 1354999, 2024.

L. D. Hawke, S. V. Parikh, and E. E. Michalak, “Stigma and bipolar disorder,” J. Affect. Disord., vol. 150, no. 2, pp. 181–191, 2013. DOI: https://doi.org/10.1016/j.jad.2013.05.030

J. R. Geddes and D. J. Miklowitz, “Treatment of bipolar disorder,” The Lancet, vol. 381, no. 9878, pp. 1672–1682, 2013. DOI: https://doi.org/10.1016/S0140-6736(13)60857-0

T. de A. Cardoso et al., “Digital tools for detection and treatment of BD,” JMIR, vol. 11, p. e58631, 2024.

L. de S. Rotenberg et al., “Predict depressive relapses in BD,” J. Affect. Disord., vol. 295, pp. 681–687, 2021.

J. Mateo-Sotos et al., “Identify BD patients via ML,” CSSP, vol. 41, no. 4, pp. 2244–2265, 2022.

I. Perez Arribas et al., “Distinguishing BD and BPD,” Translational Psychiatry, vol. 8, no. 1, p. 274, 2018.

A. K. Jihoon et al., “Chronotherapeutic intervention,” BMJ Mental Health, vol. 28, no. 1, p. e301338, 2025.

M. Suárez et al., “Random forest for accurate BD classification,” Life, vol. 15, no. 3, p. 394, 2025.

F. Colombo et al., “ML for BD prediction,” Neurosci. Biobehav. Rev., vol. 135, p. 104552, 2022.

C.-H. Cho et al., “Mood prediction by ML using digital phenotypes,” J. Med. Internet Res., vol. 21, no. 4, p. e11029, 2019.

S. Kim, H.-K. Lee, and K. Lee, “Screening mood symptoms using MMPI-2-RF,” J. Pers. Med., vol. 11, no. 8, p. 812, 2021.

N. Topolski, S. H. Jeong, and B. Mwangi, “ML applications in mood disorders,” in Mood Disorders, 2021, p. 206.

Q. Yang et al., “Classification for psychiatric disorders using ML,” Comput. Struct. Biotechnol. J., vol. 20, pp. 5054–5064, 2022.

E. Turska, S. Jurga, and J. Piskorski, “Mood disorder detection in adolescents,” Entropy, vol. 23, no. 9, p. 1210, 2021.

H. Abou-Warda et al., “Random forest model for mental disorders,” in AISI 2016 2. Springer, 2017, pp. 670–680. DOI: https://doi.org/10.1007/978-3-319-48308-5_64

J. M. Rodolpho et al., “Biomarkers and mental disorders: RF analysis,” Biomolecules, vol. 15, no. 6, p. 793, 2025.

R. Choirunnisa, M. Anshori, and W. Kusuma, “Improving RF evaluation in mental health,” RIGGS J. AI & Digital Business, vol. 4, pp. 3526–3534, 2025.

H. Karbalaeipour et al., “A collection of 120 psychology patients with 17 essential symptoms to diagnose mania bipolar disorder, depressive bipolar disorder, major depressive disorder, and normal individuals,” Harvard Dataverse, doi:10.7910/DVN/0FNET5.

Downloads

Published

2025-09-07

How to Cite

Hasnain, S. I., Israr, H., Muhammad Faris, Kamal , R., & Tirmiz, H. S. Y. (2025). Evaluation of Machine Learning–Based Methods to Detect Bipolar Disorder in Individuals With Mental Health Conditions. VFAST Transactions on Software Engineering, 13(3), 129–139. https://doi.org/10.21015/vtse.v13i3.2173