Predicting mental illness at workplace using machine learning

  • Taha Khan Center for Applied Intelligent Systems Research, School of Information Technology and Engineering, Halmstad University, Halmstad, Sweden
  • Mark Dougherty Centre for Research on Embedded Systems, School of Information Technology and Engineering Halmstad University, Halmstad, Sweden


Mental illness (MI) is a leading cause of workplace absenteeism that often goes unrecognized and untreated. This paper presents a machine learning algorithm for predicting MI at workplace. The dataset consisted of responses from 1259 subjects collected through an online survey using a self-assessed questionnaire on the workplace environment. The responses were used as features for training a support vector machine to predict MI. Statistical analysis using the Guttmann correlation and the analysis of variance was done to determine feature significance. Results using 10-fold cross-validation showed that the model predicted MI with good accuracy. Findings support the feasibility of this approach for MI monitoring at the workplace as it offers an advantage over other technologies e.g., MRI scans, and EEG analysis, previously developed for the objective assessment of MI.

Dec 30, 2022
How to Cite
KHAN, Taha; DOUGHERTY, Mark. Predicting mental illness at workplace using machine learning. Mehran University Research Journal of Engineering and Technology, [S.l.], v. 42, n. 1, p. 95-108, dec. 2022. ISSN 2413-7219. Available at: <>. Date accessed: 24 may 2024. doi:
This is an open Access Article published by Mehran University of Engineering and Technolgy, Jamshoro under CCBY 4.0 International License