Bipolar disorder is a complex psychiatric condition characterized by alternating mood episodes, ranging from depression to mania. Accurate and timely detection of a patient’s current mood state is critical for optimizing treatment strategies and preventing relapse. However, traditional clinical assessments are often subjective and prone to variability. This study proposes a data-driven, machine learning-based framework to classify mood states using synthetic but clinically informed patient data. We generated a dataset of 2000 virtual patients, incorporating key clinical variables such as lithium levels, sleep duration, stress levels, medication adherence, therapy attendance, and family history. Advanced feature engineering derived clinically relevant variables including therapeutic lithium ranges, adherence-stress ratios, and mood score formulations to reflect real-world variability and interaction effects. The pipeline integrates robust preprocessing techniques, SMOTE for class imbalance, and a stacked ensemble classifier combining Random Forest and XGBoost as base learners with logistic regression as the meta-classifier. Model evaluation across multiple metrics revealed an overall classification accuracy of 61%, with particularly strong performance in identifying manic states (F1 = 0.77). Visualization tools—including ROC curves, confusion matrices, feature importance plots, and PCA-reduced decision boundaries—were employed to enhance interpretability and clinical relevance. The model identified stress level, sleep deviation, and medication adherence as key predictors, aligning well with established psychiatric insights. While classification of euthymic and depressed states remains more challenging, this work demonstrates the feasibility and clinical utility of machine learning approaches in mood state prediction. It sets the stage for further research with real-world clinical data and emphasizes the importance of interpretable, feature-rich models in psychiatric decision support.
Cite this paper
Filippis, R. D. and Foysal, A. A. (2025). A Machine Learning Framework for Mood State Classification in Bipolar Disorder Using Clinical Features. Open Access Library Journal, 12, e13869. doi: http://dx.doi.org/10.4236/oalib.1113869.
Akiskal, H.S., Bourgeois, M.L., Angst, J., Post, R., Möller, H. and Hirschfeld, R. (2000) Re-Evaluating the Prevalence of and Diagnostic Composition within the Broad Clinical Spectrum of Bipolar Disorders. Journal of Affective Disorders, 59, S5-S30. https://doi.org/10.1016/s0165-0327(00)00203-2
Kim, Y., Santos, R., Gage, F.H. and Marchetto, M.C. (2017) Molecular Mechanisms of Bipolar Disorder: Progress Made and Future Challenges. Frontiers in Cellular Neuroscience, 11, Article 30. https://doi.org/10.3389/fncel.2017.00030
Cheng, K.K.F. and Lee, D.T.F. (2011) Effects of Pain, Fatigue, Insomnia, and Mood Disturbance on Functional Status and Quality of Life of Elderly Patients with Cancer. Critical Reviews in Oncology/Hematology, 78, 127-137. https://doi.org/10.1016/j.critrevonc.2010.03.002
Iosifescu, D.V. (2012) The Relation between Mood, Cognition and Psychosocial Functioning in Psychiatric Disorders. European Neuropsychopharmacology, 22, S499-S504. https://doi.org/10.1016/j.euroneuro.2012.08.002
Mikkelsen, M.E., Shull, W.H., Biester, R.C., Taichman, D.B., Lynch, S., Demissie, E., et al. (2008) Cognitive, Mood and Quality of Life Impairments in a Select Population of ARDS Survivors. Respirology, 14, 76-82. https://doi.org/10.1111/j.1440-1843.2008.01419.x
Molassiotis, A., Callaghan, P., Twinn, S.F., Lam, S.W., Chung, W.Y. and Li, C.K. (2002) A Pilot Study of the Effects of Cognitive-Behavioral Group Therapy and Peer Support/Counseling in Decreasing Psychologic Distress and Improving Quality of Life in Chinese Patients with Symp-tomatic HIV Disease. AIDS Patient Care and STDs, 16, 83-96. https://doi.org/10.1089/10872910252806135
Maj, M., Stein, D.J., Parker, G., Zimmerman, M., Fava, G.A., De Hert, M., et al. (2020) The Clinical Characterization of the Adult Patient with Depression Aimed at Personalization of Management. World Psychiatry, 19, 269-293. https://doi.org/10.1002/wps.20771
Ramasubbu, R., Beaulieu, S., Taylor, V.H., Schaffer, A. and McIntyre, R.S. (2012) The CANMAT Task Force Recommendations for the Management of Patients with Mood Disorders and Comorbid Medical Conditions: Diagnostic, Assessment, and Treatment Principles. Annals of Clinical Psychiatry, 24, 82-90.
Velligan, D.I., Weiden, P.J., Sajatovic, M., Scott, J., Carpenter, D., Ross, R., et al. (2010) Strategies for Addressing Adherence Problems in Patients with Serious and Persistent Mental Illness: Recommendations from the Expert Consensus Guidelines. Journal of Psychiatric Practice, 16, 306-324. https://doi.org/10.1097/01.pra.0000388626.98662.a0
Zentner, M. and Eerola, T. (2010) Self-Report Measures and Models. In: Juslin, P.N., Ed., Handbook of Music and Emotion: Theory, Research, Applica-tions, Oxford University Press, 187-221. https://doi.org/10.1093/acprof:oso/9780199230143.003.0008
Lewis, A.J., Bertino, M.D., Bai-ley, C.M., Skewes, J., Lubman, D.I. and Toumbourou, J.W. (2014) Depression and Suicidal Behavior in Adolescents: A Mul-ti-Informant and Multi-Methods Approach to Diagnostic Classification. Frontiers in Psychology, 5, Article 766. https://doi.org/10.3389/fpsyg.2014.00766
Bzdok, D. and Meyer-Lindenberg, A. (2018) Machine Learning for Preci-sion Psychiatry: Opportunities and Challenges. Biological Psychiatry: Cognitive Neuroscience and Neuroimaging, 3, 223-230. https://doi.org/10.1016/j.bpsc.2017.11.007
Squires, M., Tao, X., Elangovan, S., Gururajan, R., Zhou, X., Acharya, U.R., et al. (2023) Deep Learning and Machine Learning in Psychiatry: A Survey of Current Progress in Depression Detection, Diagnosis and Treatment. Brain Informatics, 10, Article No. 10. https://doi.org/10.1186/s40708-023-00188-6
Omiyefa, S. (2025) Artificial Intelligence and Machine Learning in Precision Mental Health Diagnostics and Predictive Treatment Models. International Journal of Research Publication and Reviews, 6, 85-99. https://doi.org/10.55248/gengpi.6.0325.1107
Tsapekos, D., Strawbridge, R., Cella, M., Goldsmith, K., Kalfas, M., Taylor, R.H., et al. (2023) Cognitive Remediation in Bipolar (CRiB2): Study Protocol for a Randomised Con-trolled Trial Assessing Efficacy and Mechanisms of Cognitive Remediation Therapy Compared to Treatment as Usual. BMC Psychiatry, 23, Article No. 842. https://doi.org/10.1186/s12888-023-05327-1
Owen, D.J. (2021) Individual Differ-ences and Medication-Mediation in Chronic Ill-ness Conditions: A Mixed Methods Approach to the Development of a Novel, Conceptual Framework. Master’s Thesis, University of Derby (United Kingdom).
McFadden, S. (2015) An Exploration of the Psychological Indicators of Aspirin Adherence, in Patients with Stable Coronary Artery Disease, Using a Direct Assay Measurement. Ph.D. Thesis, Royal College of Surgeons in Ireland.
Pilarska, A., Pieczyńska, A. and Hojan, K. (2023) Neuropsychological Monitoring of Cognitive Function and ICF-Based Mental Components in Patients with Malignant Brain Tumours. Frontiers in Psychology, 14, Article 1033185. https://doi.org/10.3389/fpsyg.2023.1033185
Ostojic, D., Lalousis, P.A., Donohoe, G. and Morris, D.W. (2024) The Challenges of Using Machine Learning Models in Psychiatric Re-search and Clinical Practice. European Neuropsychopharmacology, 88, 53-65. https://doi.org/10.1016/j.euroneuro.2024.08.005
Ku, W.L. and Min, H. (2024) Evaluating Machine Learning Stabil-ity in Predicting Depression and Anxiety Amidst Subjective Response Errors. Healthcare, 12, Article 625. https://doi.org/10.3390/healthcare12060625
Corponi, F., Li, B.M., Anmella, G., Mas, A., Pacchiarotti, I., Valentí, M., et al. (2024) Automated Mood Disorder Symptoms Monitoring from Multivariate Time-Series Sensory Data: Getting the Full Picture Beyond a Single Number. Translational Psychiatry, 14, Article No. 161. https://doi.org/10.1038/s41398-024-02876-1
Mokheleli, T.D. (2023) A Comparison of Machine Learning Tech-niques for Predicting Mental Health Disorders. Master’s Thesis, University of Johannesburg (South Africa).
El-Mallakh, R.S. (1997) New Insights into the Course and Prognosis of Bipolar Illness. Psychiatric Annals, 27, 478-481. https://doi.org/10.3928/0048-5713-19970701-08
Kumar, S., Akhtar, Z., Satsangi, H., Sehrawat, S., Arora, N. and Bamal, K. (2024) Depression Prediction Using Machine Learning Techniques. In: Bathla, G., Kumar, S., Garg, H. and Saini, D., Eds., Artificial Intelligence in Healthcare, CRC Press, 241-265. https://doi.org/10.1201/9781003522096-12
Grandjean, E.M. and Aubry, J. (2009) Lithium: Updated Human Knowledge Using an Evidence-Based Approach: Part II: Clinical Pharmacology and Therapeutic Monitoring. CNS Drugs, 23, 331-349. https://doi.org/10.2165/00023210-200923040-00005
Ahmadi, F. (2022) Lithium Toxicity Following Co-Prescription of Lithium and ACEI/ARBs: A Population-Based Cohort Study. Master’s Thesis, The University of Western Ontario.
Sienaert, P., Geeraerts, I. and Wyckaert, S. (2013) How to Initiate Lithium Therapy: A Systematic Review of Dose Estimation and Level Prediction Methods. Journal of Affective Disorders, 146, 15-33. https://doi.org/10.1016/j.jad.2012.08.013
Castiglione‐Fontanellaz, C.E.G., Schaufler, S., Wild, S., Hamann, C., Kaess, M. and Tarokh, L. (2023) Sleep Regularity in Healthy Adolescents: Associations with Sleep Duration, Sleep Quality, and Mental Health. Journal of Sleep Research, 32, e13865. https://doi.org/10.1111/jsr.13865
Wang, F., Sun, Z., Lin, F., Xu, Y., Wu, E., Sun, X., et al. (2024) Nonlinear Relationships between Sleep Duration, Mental Health, and Quality of Life: The Dangers of Less Sleep versus More Sleep. Sleep Medicine, 119, 565-573. https://doi.org/10.1016/j.sleep.2024.05.043
Baglioni, C., Nanovska, S., Regen, W., Spiegelhalder, K., Feige, B., Nissen, C., et al. (2016) Sleep and Mental Disorders: A Meta-Analysis of Polysomnographic Research. Psychological Bulletin, 142, 969-990. https://doi.org/10.1037/bul0000053
Sanjobo, N. (2007) Adherence to Antiretroviral Treatment in Zam-bia: A Qualitative Study of Patients and Health Professionals’ Views. Master’s Thesis, University of Oslo.
Baillie, C.A., VanZandbergen, C., Tait, G., Hanish, A., Leas, B., French, B., et al. (2013) The Readmission Risk Flag: Using the Electronic Health Record to Automatically Identify Patients at Risk for 30‐Day Readmission. Journal of Hospi-tal Medicine, 8, 689-695. https://doi.org/10.1002/jhm.2106
Boydell, K.M., Volpe, T., Gladstone, B.M., Stasiulis, E. and Addington, J. (2012) Youth at Ultra High Risk for Psychosis: Using the Revised Network Episode Model to Examine Pathways to Mental Health Care. Early Intervention in Psychiatry, 7, 170-186. https://doi.org/10.1111/j.1751-7893.2012.00350.x
McEwan, T.E., Shea, D.E., Daffern, M., MacKenzie, R.D., Ogloff, J.R.P. and Mullen, P.E. (2016) The Reliability and Predictive Validity of the Stalking Risk Profile. Assessment, 25, 259-276. https://doi.org/10.1177/1073191116653470
Lee, K.J. and Carlin, J.B. (2016) Multiple Imputation in the Presence of Non-Normal Data. Statistics in Medicine, 36, 606-617. https://doi.org/10.1002/sim.7173
Mukherjee, M. and Khushi, M. (2021) SMOTE-ENC: A Novel Smote-Based Method to Generate Synthetic Data for Nominal and Continuous Features. Ap-plied System Innovation, 4, Article 18. https://doi.org/10.3390/asi4010018
Dablain, D., Krawczyk, B. and Chawla, N.V. (2023) DeepSMOTE: Fusing Deep Learning and SMOTE for Imbalanced Data. IEEE Transactions on Neural Networks and Learning Systems, 34, 6390-6404. https://doi.org/10.1109/tnnls.2021.3136503
Fernandez, A., Garcia, S., Herrera, F. and Chawla, N.V. (2018) SMOTE for Learning from Imbalanced Data: Progress and Challenges, Marking the 15-Year Anniversary. Journal of Artificial Intelligence Research, 61, 863-905. https://doi.org/10.1613/jair.1.11192
Douzas, G., Bacao, F. and Last, F. (2018) Improving Imbalanced Learning through a Heuristic Oversampling Method Based on K-Means and Smote. Information Sciences, 465, 1-20. https://doi.org/10.1016/j.ins.2018.06.056
Pujatti, M., Calzà, D., Gobbi, A., Svaizer, P. and Cristoforetti, M. (2025) Mopidip: A Modular Real-Time Pipeline for Machinery Diagnosis and Prognosis Based on Deep Learning Algorithms. Journal of Big Data, 12, Article No. 82. https://doi.org/10.1186/s40537-025-01123-8
Zubair, M., Hussai, M., Al-Bashrawi, M.A., Ben-dechache, M. and Owais, M. (2025) A Comprehensive Review of Techniques, Algorithms, Advancements, Chal-lenges, and Clinical Applications of Multi-Modal Medical Image Fusion for Improved Diagnosis. arXiv: 2505.14715.
Tripathi, A., Waqas, A., Venkatesan, K., Yilmaz, Y. and Rasool, G. (2024) Building Flexible, Scalable, and Machine Learning-Ready Multimodal Oncology Datasets. Sensors, 24, Article 1634. https://doi.org/10.3390/s24051634
Murphy, D.L. (1974) Depression, Elation, and Lithium Carbonate Responses in Manic Patient Subgroups. Archives of General Psychiatry, 31, 643-648. https://doi.org/10.1001/archpsyc.1974.01760170043007
Rybakowski, J.K. (2014) Response to Lithium in Bipolar Disorder: Clinical and Genetic Findings. ACS Chemical Neuroscience, 5, 413-421. https://doi.org/10.1021/cn5000277
Picard, R.W., Vyzas, E. and Healey, J. (2001) Toward Machine Emotional Intel-ligence: Analysis of Affective Physiological State. IEEE Transactions on Pattern Analysis and Machine Intelligence, 23, 1175-1191. https://doi.org/10.1109/34.954607
Sükei, E., Norbury, A., Perez-Rodriguez, M.M., Olmos, P.M. and Artés, A. (2021) Predicting Emotional States Using Behavioral Markers Derived from Passively Sensed Data: Data-Driven Machine Learning Approach. JMIR mHealth and uHealth, 9, e24465. https://doi.org/10.2196/24465
Ramirez Rios, F.E. and María Reyes Duke, A. (2023) Building of a Convolutional Neuronal Network for the Prediction of Mood States through Face Recognition Based on Object Detection with YOLOV8 and Python. 2023 IEEE International Conference on Machine Learning and Applied Network Technologies (ICMLANT), San Salvador, 14-15 December 2023, 1-6. https://doi.org/10.1109/icmlant59547.2023.10372862
McGorry, P., Keshavan, M., Goldstone, S., Amminger, P., Allott, K., Berk, M., et al. (2014) Biomarkers and Clinical Staging in Psychiatry. World Psychiatry, 13, 211-223. https://doi.org/10.1002/wps.20144
Roberts, R.E., Roberts, C.R. and Chan, W. (2009) One-Year Incidence of Psychi-atric Disorders and Associated Risk Factors among Adolescents in the Community. Journal of Child Psychology and Psychia-try, 50, 405-415. https://doi.org/10.1111/j.1469-7610.2008.01969.x
Gelenberg, A.J., Freeman, M.P., Markowitz, J.C., Rosenbaum, J.F., Thase, M.E., Trivedi, M.H. and Van Rhoads, R.S. (2010) American Psychiatric Association Practice Guidelines for the Treatment of Patients with Major Depressive Disorder. American Journal of Psychiatry, 167, 9-118.
Huang, D., Jiang, F., Li, K., Tong, G. and Zhou, G. (2022) Scaled PCA: A New Approach to Dimension Reduction. Management Science, 68, 1678-1695. https://doi.org/10.1287/mnsc.2021.4020
Nolazco-Flores, J.A., Faun-dez-Zanuy, M., Velázquez-Flores, O.A., Del-Valle-Soto, C., Cordasco, G. and Esposito, A. (2022) Mood State Detection in Handwritten Tasks Using PCA-mFCBF and Automated Machine Learning. Sensors, 22, Article 1686. https://doi.org/10.3390/s22041686
Nanga, S., Bawah, A.T., Acquaye, B.A., Billa, M., Baeta, F.D., Odai, N.A., et al. (2021) Review of Dimension Reduction Methods. Journal of Data Analysis and Information Processing, 9, 189-231. https://doi.org/10.4236/jdaip.2021.93013
Nelson, M.K. and Lawrence, M.P. (2025) Psychiatric Mental Health Nursing Case Studies, Volume 1: 100 Real-Life Scenarios for Clinical Practice in Mood, Anxiety, Psychosis, and Personality Disorders with Nursing Assessments, DSM-5 Diagnoses & Care Plans. Independently published.
Dikaios, K., Rempel, S., Dumpala, S.H., Oore, S., Kiefte, M. and Uher, R. (2023) Applications of Speech Analysis in Psychiatry. Harvard Review of Psychiatry, 31, 1-13. https://doi.org/10.1097/hrp.0000000000000356
Goldberg, J.F. and Stahl, S.M. (2024) Clini-cal Reasoning and Decision-Making in Psychiatry. Cambridge University Press. https://doi.org/10.1017/9781009181549
Mahato, K., Saha, T., Ding, S., Sandhu, S.S., Chang, A. and Wang, J. (2024) Hybrid Multimodal Wearable Sensors for Comprehensive Health Monitoring. Nature Electronics, 7, 735-750. https://doi.org/10.1038/s41928-024-01247-4
Singh, K., Piyush, P., Kumar, R., Chhabra, S., Goomer, N. and Kashyap, A. (2024) Multimodal Data Extraction & Fusion for Health Monitoring System and Early Diagnosis. 2024 Interna-tional Conference on Computational Intelligence and Computing Applications (ICCICA), Samalkha, 23-24 May 2024, 216-220. https://doi.org/10.1109/iccica60014.2024.10585027
Chaabene, S., Boudaya, A., Bouaziz, B. and Chaari, L. (2025) An Overview of Methods and Techniques in Multimodal Data Fusion with Application to Healthcare. International Journal of Data Science and Analytics. https://doi.org/10.1007/s41060-025-00715-0