Mental Health Detection Expert System Model Based on DASS-42 Using Fuzzy Inference System
Abstract
Mental health disorders such as depression, anxiety, and stress frequently co-occur and exhibit overlapping symptoms, making accurate diagnosis challenging due to the subjective nature of psychological assessments. Conventional use of the Depression Anxiety Stress Scales (DASS-42) relies on rigid score aggregation, while many machine learning approaches fail to adequately represent uncertainty and expert reasoning. This study aims to develop an expert system for mental health detection by integrating fuzzy logic with expert knowledge derived from the DASS-42 instrument. The main contribution of this research is a hybrid knowledge-based framework that combines decision tree–based rule extraction with psychological expert validation, ensuring both interpretability and clinical relevance. The proposed method employs a Fuzzy Inference System (FIS) using triangular and trapezoidal membership functions to model symptom intensity as linguistic variables, followed by rule generation using the CART decision tree algorithm and expert refinement. System performance is evaluated using Cohen’s Kappa coefficient, including standard error and 95% confidence intervals, to measure inter-rater reliability between the expert system, the DASS instrument, and two human experts. The results indicate that the expert system achieves almost perfect agreement in identifying dominant psychological conditions, with an average Kappa value of 0.918. For severity-level classification, strong agreement is observed for depression (Kappa = 0.842) and stress (Kappa = 0.811), while anxiety severity shows moderate-to-substantial agreement (Kappa = 0.648), reflecting inherent variability in expert interpretation. In conclusion, the proposed FIS-based expert system effectively captures expert diagnostic reasoning and outperforms decision tree–only models, demonstrating strong potential as an interpretable and reliable mental health screening tool.
Downloads
References
A. Thiyagarajan, T. G. James, and R. R. Marzo, “Psychometric properties of the 21-item Depression, Anxiety, and Stress Scale (DASS-21) among Malaysians during COVID-19: a methodological study,” Humanit. Soc. Sci. Commun., vol. 9, no. 1, Dec. 2022, doi: 10.1057/s41599-022-01229-x.
Y. Zenebe, B. Akele, M. W/Selassie, and M. Necho, “Prevalence and determinants of depression among old age: a systematic review and meta-analysis,” Dec. 01, 2021, BioMed Central Ltd. doi: 10.1186/s12991-021-00375-x.
D.-K. Kang et al., “Lecture Notes in Electrical Engineering 983.”
S. Alayón, R. Robertson, S. K. Warfield, and J. Ruiz-Alzola, “A Fuzzy System for Helping Medical Diagnosis of Malformations of Cortical Development.”
A. Priya, S. Garg, and N. P. Tigga, “Predicting Anxiety, Depression and Stress in Modern Life using Machine Learning Algorithms,” in Procedia Computer Science, Elsevier B.V., 2020, pp. 1258–1267. doi: 10.1016/j.procs.2020.03.442.
P. Kumar, S. Garg, and A. Garg, “Assessment of Anxiety, Depression and Stress using Machine Learning Models,” in Procedia Computer Science, Elsevier B.V., 2020, pp. 1989–1998. doi: 10.1016/j.procs.2020.04.213.
T. Kyriazos and M. Poga, “Exploring Fuzzy Logic as an Alternative Approach in Psychological Scoring,” Open Psychol. J., vol. 17, no. 1, Dec. 2024, doi: 10.2174/0118743501337527241125044301.
A. M. Nagayo et al., “Stress and Emotion Detection System Using IoT and Machine Learning with a Fuzzy Inference-Based Mental Health Risk Assessment Module,” Sep. 2023. [Online]. Available: http://www.ijritcc.org
S. Delgado, R. C. B. Vignola, R. J. Sassi, P. A. Belan, and S. A. de Araújo, “Symptom mapping and personalized care for depression, anxiety and stress: A data-driven AI approach,” Comput. Biol. Med., vol. 182, Nov. 2024, doi: 10.1016/j.compbiomed.2024.109146.
G. S. Mada, N. K. F. Dethan, and A. E. S. H. Maharani, “The Defuzzification Methods Comparison of Mamdani Fuzzy Inference System in Predicting Tofu Production,” Jurnal Varian, vol. 5, no. 2, pp. 137–148, Apr. 2022, doi: 10.30812/varian.v5i2.1816.
M. Ramzan, M. Hamid, A. A. Alhussan, H. N. AlEisa, and H. A. Abdallah, “Accurate Prediction of Anxiety Levels in Asian Countries Using a Fuzzy Expert System,” Healthcare (Switzerland), vol. 11, no. 11, Jun. 2023, doi: 10.3390/healthcare11111594.
S. A. Sulak and N. Koklu, “Analysis of Depression, Anxiety, Stress Scale (DASS-42) With Methods of Data Mining,” Eur. J. Educ., vol. 59, no. 4, Dec. 2024, doi: 10.1111/ejed.12778.
M. Makara-Studzińska, M. Załuski, K. Adamczyk, and E. Tyburski, “Polish version of the Depression Anxiety Stress Scale (DASS-42) – adaptation and normalization,” Psychiatr. Pol., vol. 58, no. 1, pp. 63–78, 2024, doi: 10.12740/PP/OnlineFirst/153064.
M. M. Antony, P. J. Bieling, B. J. Cox, M. W. Enns, and R. P. Swinson, “Psychometric Properties of the 42-Item and 21-Item Versions of the Depression Anxiety Stress Scales in Clinical Groups and a Community Sample,” 1998.
Y. H. Sun, H. Luo, and K. Lee, “A Novel Approach for Developing Efficient and Convenient Short Assessments to Approximate a Long Assessment,” Behav. Res. Methods, vol. 54, no. 6, pp. 2802–2828, Dec. 2022, doi: 10.3758/s13428-021-01771-7.
M. Makara-Studzińska, E. Tyburski, M. Załuski, K. Adamczyk, J. Mesterhazy, and A. Mesterhazy, “Confirmatory Factor Analysis of Three Versions of the Depression Anxiety Stress Scale (DASS-42, DASS-21, and DASS-12) in Polish Adults,” Front. Psychiatry, vol. 12, Jan. 2022, doi: 10.3389/fpsyt.2021.770532.
H. Waqar and G. Amir, “Translation, adaptation and validation of Depression, Anxiety and Stress Scale in Urdu,” Insights on the Depression and Anxiety, vol. 4, no. 1, pp. 001–004, Feb. 2020, doi: 10.29328/journal.ida.1001011.
Y. B. L. Kintomonho, M. N. Atchadé, and D. Daddah, “Decision tree-based statistical learning and quantile regression adjustment: Insights from pregnant women in Benin,” Sci. Afr., vol. 29, Sep. 2025, doi: 10.1016/j.sciaf.2025.e02832.
A. Faro, J. Tejada, and W. Al-Delaimy, “Severity Classification of Anxiety and Depression Using Generalized Anxiety Disorder Scale and Patient Health Questionnaire: National Cross-Sectional Study Applying Classification and Regression Tree Models,” JMIR Public Health Surveill., vol. 11, p. e72591, Sep. 2025, doi: 10.2196/72591.
M. N. Qureshi and N. A. Nor, “Optimisation and cross-validation of an e-hailing hybrid pricing algorithm using a supervised learning classification and regression tree model: a heuristic approach,” J. King Saud Univ. Sci., vol. 36, no. 3, Mar. 2024, doi: 10.1016/j.jksus.2024.103107.
V. Calabrese et al., “Review and practical excursus on the comparison between traditional statics methods and Classification And Regression Tree (CART) in real-life data: Low protein diet compared to Mediterranean diet in patients with chronic kidney disease,” Nefrología, vol. 45, no. 4, pp. 279–284, Apr. 2025, doi: 10.1016/j.nefro.2025.01.009.
M. Ozcan and S. Peker, “A classification and regression tree algorithm for heart disease modeling and prediction,” Healthcare Analytics, vol. 3, Nov. 2023, doi: 10.1016/j.health.2022.100130.
Y. Ali, F. Hussain, and M. M. Haque, “Advances, challenges, and future research needs in machine learning-based crash prediction models: A systematic review,” Accid. Anal. Prev., vol. 194, Jan. 2024, doi: 10.1016/j.aap.2023.107378.
S. Jun, “Evolutionary algorithm for improving decision tree with global discretization in manufacturing,” Sensors, vol. 21, no. 8, Apr. 2021, doi: 10.3390/s21082849.
A. I. Ozturk, O. Yıldırım, E. İdman, and E. İdman, “A comparative study of hybrid decision tree–deep learning models in the detection of intracranial arachnoid cysts,” Neuroscience Informatics, vol. 5, no. 4, Dec. 2025, doi: 10.1016/j.neuri.2025.100234.
S. Durgaprasad, A. Coraddu, and H. Polinder, “An analysis of maritime battery requirements and a decision tree for optimal chemistry selection,” Energy Reports, vol. 14, pp. 4851–4871, Dec. 2025, doi: 10.1016/j.egyr.2025.11.086.
J. W. Mburu, L. Kingwara, M. Ester, and N. Andrew, “Use of classification and regression tree (CART), to identify hemoglobin A1C (HbA1C) cut-off thresholds predictive of poor tuberculosis treatment outcomes and associated risk factors,” J. Clin. Tuberc. Other Mycobact. Dis., vol. 11, pp. 10–16, May 2018, doi: 10.1016/j.jctube.2018.01.002.
J. Cao et al., “Fuzzy inference system with interpretable fuzzy rules: Advancing explainable artificial intelligence for disease diagnosis—A comprehensive review,” Inf. Sci. (N Y)., vol. 662, Mar. 2024, doi: 10.1016/j.ins.2024.120212.
M. A. Asadzadeh, M. R. Shaghaghian, Z. Ghadampour, and T. Sabzevari, “A comparative study of fuzzy methods for improving satellite-derived precipitation datasets using novel indices for improvability and efficiency,” J. Hydrol. Reg. Stud., vol. 61, Oct. 2025, doi: 10.1016/j.ejrh.2025.102665.
A. El-Ibrahimi et al., “Fuzzy based system for coronary artery disease prediction using subtractive clustering and risk factors data,” Intell. Based. Med., vol. 11, Jan. 2025, doi: 10.1016/j.ibmed.2025.100208.
K. Pujaru, S. Adak, T. K. Kar, S. Patra, and S. Jana, “A Mamdani fuzzy inference system with trapezoidal membership functions for investigating fishery production,” Decision Analytics Journal, vol. 11, Jun. 2024, doi: 10.1016/j.dajour.2024.100481.
R. Fauzi Siregar, A. Rudi Nasution, H. Arifin, and M. Alwi Ripay Harahap, “JESCE (Journal of Electrical and System Control Engineering) Fuzzy Logic Mamdani-Based Simulation of Solanum Lycopersicum Fruit Sorter to Produce High-Quality Fruit Products”, doi: 10.31289/jesce.v6i2.11835.
S. Adak, T. K. Kar, and S. Jana, “A fuzzy inference system for predicting outbreaks in emerging infectious diseases,” Decision Analytics Journal, vol. 10, Mar. 2024, doi: 10.1016/j.dajour.2024.100436.
N. Sabri, S. A. Aljunid, M. S. Salim, R. B. Badlishah, R. Kamaruddin, and M. F. A. Malek, “Fuzzy inference system: Short review and design,” International Review of Automatic Control (I.RE.A.CO.), vol. 6, no. 4, 2013, [Online]. Available: https://www.researchgate.net/publication/280739444
M. J. Warrens, “Cohen’s weighted kappa with additive weights,” Adv. Data Anal. Classif., vol. 7, no. 1, pp. 41–55, Mar. 2013, doi: 10.1007/s11634-013-0123-9.
A. de Raadt, M. J. Warrens, R. J. Bosker, and H. A. L. Kiers, “A Comparison of Reliability Coefficients for Ordinal Rating Scales,” J. Classif., vol. 38, no. 3, pp. 519–543, Oct. 2021, doi: 10.1007/s00357-021-09386-5.
J. B. Garner, “THE STANDARD ERROR OF COHEN’S KAPPA,” 1991.
M. L. McHugh, “McHugh ML.-Interrater reliability,” Aug. 2012.
J. R. Landis and G. G. Koch, “The Measurement of Observer Agreement for Categorical Data,” Biometrics, vol. 33, no. 1, pp. 159–174, 1977, [Online]. Available: http://www.jstor.org/stable/2529310
A. S. Rajawat, P. Bedi, S. B. Goyal, P. Bhaladhare, A. Aggarwal, and R. S. Singhal, “Fusion Fuzzy Logic and Deep Learning for Depression Detection Using Facial Expressions,” in Procedia Computer Science, Elsevier B.V., 2022, pp. 2795–2805. doi: 10.1016/j.procs.2023.01.251.
Copyright (c) 2026 Eko Ginanjar Basuki Rahmat, Wiharto Wiharto, Umi Salamah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlikel 4.0 International (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).


.png)
.png)
.png)
.png)
.png)