Hybrid Machine Learning Model for Risk Prediction and Action Recommendation Based on Artificial Mental Systems

Authors

  • Hadi Asnal Universitas Sains dan Teknologi Indonesia, Pekanbaru, Riau, Indonesia
  • Khusaeri Andesa Universitas Sains dan Teknologi Indonesia, Pekanbaru, Riau, Indonesia
  • Fitry Erlin Universitas Sains dan Teknologi Indonesia, Pekanbaru, Riau, Indonesia
  • Junadhi Universitas Sains dan Teknologi Indonesia, Pekanbaru, Riau, Indonesia

DOI:

https://doi.org/10.34148/teknika.v14i3.1357

Keywords:

Mental Health, Machine Learning, Risk Classification, Hybrid Model, Mobile Application

Abstract

Mental health problems are increasingly prevalent among the younger generation, particularly those active on social media, yet early detection efforts often remain limited. Previous studies have explored text-based approaches for identifying mental health issues, but many are constrained by low accuracy in differentiating multiple psychological states or lack integration into accessible tools for end-users. This study addresses these gaps by proposing a hybrid machine learning model for early detection of mental health conditions through social media text analysis. Five algorithms were evaluated, and a soft voting ensemble combining Logistic Regression and Support Vector Machine (SVM) was developed to improve classification across five mental states (Anxiety, Depression, Stress, Emotional Exhaustion, and Healthy) and three risk levels (Low, Medium, High). To ensure practical utility, the model was deployed in an Android-based application, SmartRisk, which allows users to input free text and receive automated assessments. The findings show that the proposed hybrid approach significantly improves detection performance, particularly in identifying depression and high-risk cases, while maintaining high usability in real-world application. The novelty of this study lies in combining hybrid ensemble learning with mobile deployment for practical, text-based early detection of mental health, offering both methodological advancement and societal impact.

Downloads

Download data is not yet available.

References

[1] Rokom, “Kemenkes Beberkan Masalah Permasalahan Kesehatan Jiwa di Indonesia,” https://sehatnegeriku.kemkes.go.id/.

[2] Rokom and S. N. Tarmizi, “Menjaga Kesehatan Mental Para Penerus Bangsa,” https://sehatnegeriku.kemkes.go.id/. Accessed: Mar. 26, 2025. [Online]. Available: https://sehatnegeriku.kemkes.go.id/baca/rilis-media/20231012/3644025/menjaga-kesehatan-mental-para-penerus-bangsa/

[3] United Nations, “Department of Economic and Social Affairs Sustainable Development.” Accessed: Mar. 24, 2025. [Online]. Available: https://sdgs.un.org/goals

[4] D. Liu, X. L. Feng, F. Ahmed, M. Shahid, and J. Guo, “Detecting and Measuring Depression on Social Media Using a Machine Learning Approach: Systematic Review,” JMIR Ment Health, vol. 9, no. 3, p. e27244, Mar. 2022, doi: 10.2196/27244.

[5] S. C. Guntuku, D. B. Yaden, M. L. Kern, L. H. Ungar, and J. C. Eichstaedt, “Detecting depression and mental illness on social media: an integrative review,” Curr Opin Behav Sci, vol. 18, pp. 43–49, 2017, doi: https://doi.org/10.1016/j.cobeha.2017.07.005.

[6] J. Koh, G. Y. Q. Tng, and A. Hartanto, “Potential and Pitfalls of Mobile Mental Health Apps in Traditional Treatment: An Umbrella Review,” J Pers Med, vol. 12, no. 9, 2022, doi: 10.3390/jpm12091376.

[7] Q. Y. Leong et al., “Characteristics of Mobile Health Platforms for Depression and Anxiety: Content Analysis Through a Systematic Review of the Literature and Systematic Search of Two App Stores,” J Med Internet Res, vol. 24, no. 2, p. e27388, Feb. 2022, doi: 10.2196/27388.

[8] F. Efendi, G. E. Aurizki, A. Yusuf, and L. McKenna, “‘Not shifting, but sharing’: stakeholders’ perspectives on mental health task-shifting in Indonesia.,” BMC Nurs, vol. 21, no. 1, p. 165, Jun. 2022, doi: 10.1186/s12912-022-00945-8.

[9] R. W. Basrowi et al., “Exploring Mental Health Issues and Priorities in Indonesia Through Qualitative Expert Consensus.,” Clin Pract Epidemiol Ment Health, vol. 20, p. e17450179331951, 2024, doi: 10.2174/0117450179331951241022175443.

[10] D. I. Yasmine, F. Colombijn, A. J. A. M. van Deursen, and E. van Ingen, “Internet skills, digital engagement, and outcomes among urban youth in Jakarta, Indonesia: incorporating a Global South context in measuring digital inequality,” Inf Commun Soc, vol. 4462, 2025, doi: 10.1080/1369118X.2025.2479778.

[11] M. Milne-Ives, E. Selby, B. Inkster, C. Lam, and E. Meinert, “Artificial intelligence and machine learning in mobile apps for mental health: A scoping review,” PLOS Digital Health, vol. 1, no. 8, pp. 1–13, 2022, doi: 10.1371/journal.pdig.0000079.

[12] L. S. Khoo, M. K. Lim, C. Y. Chong, and R. McNaney, “Machine Learning for Multimodal Mental Health Detection: A Systematic Review of Passive Sensing Approaches,” Sensors, vol. 24, no. 2, 2024, doi: 10.3390/s24020348.

[13] A. Thieme, D. Belgrave, and G. Doherty, “Machine Learning in Mental Health: A Systematic Review of the HCI Literature to Support the Development of Effective and Implementable ML Systems,” ACM Trans. Comput.-Hum. Interact., vol. 27, no. 5, Aug. 2020, doi: 10.1145/3398069.

[14] K. K. Putri and E. B. Setiawan, “Depression Detection in Indonesian X Social Media Text using Convolutional Neural Networks and Long Short-Term Memory with TF- IDF and FastText Methods,” Jurnal Teknik Informatika (Jutif), vol. 6, no. 2, pp. 557–574, 2025, doi: 10.52436/1.jutif.2025.6.2.4206.

[15] M. L. McHugh, “Interrater reliability: the kappa statistic.,” Biochem Med (Zagreb), vol. 22, no. 3, pp. 276–282, 2012.

[16] J. Junadhi, A. Agustin, L. Efrizoni, F. Okmayura, H. Rahman, Dedi, and Muslim, “Improving Evaluation Metrics for Text Summarization: A Comparative Study and Proposal of a Novel Metric,” Journal of Applied Data Sciences, vol. 6, no. 2, pp. 885–896, May 2025, doi: 10.47738/jads.v6i2.547.

[17] A. Lubis, Irawan Yuda, Junadhi, and Defit Sarjon, “Leveraging K-Nearest Neighbors with SMOTE and Boosting Techniques for Data Imbalance and Accuracy Improvement,” Journal of Applied Data Sciences, vol. 5, no. 4, pp. 1625–1638, Dec. 2024, doi: 10.47738/jads.v5i4.343.

[18] Erlin, A. Yunianta, L. A. Wulandhari, Y. Desnelita, N. Nasution, and Junadhi, “Enhancing Rice Production Prediction in Indonesia Using Advanced Machine Learning Models,” IEEE Access, 2024, doi: 10.1109/ACCESS.2024.3478738.

[19] A. Qasim, G. Mehak, N. Hussain, A. Gelbukh, and G. Sidorov, “Detection of Depression Severity in Social Media Text Using Transformer-Based Models,” Information, vol. 16, no. 2, 2025, doi: 10.3390/info16020114.

[20] M. Kanahuati-Ceballos and L. J. Valdivia, “Detection of depressive comments on social media using RNN, LSTM, and random forest: comparison and optimization,” Soc Netw Anal Min, vol. 14, no. 1, p. 44, 2024, doi: 10.1007/s13278-024-01206-z.

[21] Junadhi, Agustin, M. Rifqi, and M. K. Anam, “Sentiment Analysis of Online Lectures using K-Nearest Neighbors based on Feature Selection,” Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI), vol. 11, no. 3, pp. 216–225, Dec. 2022, doi: 10.23887/janapati.v11i3.51531.

[22] D. K. Barupal and O. Fiehn, “Generating the blood exposome database using a comprehensive text mining and database fusion approach,” Environ Health Perspect, vol. 127, no. 9, pp. 2825–2830, 2019, doi: 10.1289/EHP4713.

[23] K. Kusuma et al., “The performance of machine learning models in predicting suicidal ideation, attempts, and deaths: A meta-analysis and systematic review,” J Psychiatr Res, vol. 155, pp. 579–588, 2022, doi: https://doi.org/10.1016/j.jpsychires.2022.09.050.

[24] H. Ghanadian, I. Nejadgholi, and H. Al Osman, “Improving Suicidal Ideation Detection in Social Media Posts: Topic Modeling and Synthetic Data Augmentation Approach,” JMIR Form Res, vol. 9, 2025, doi: https://doi.org/10.2196/63272.

[25] M. Conciatori, A. Valletta, and A. Segalini, “Improving the quality evaluation process of machine learning algorithms applied to landslide time series analysis,” Comput Geosci, vol. 184, p. 105531, 2024, doi: https://doi.org/10.1016/j.cageo.2024.105531.

[26] Dewi Widyawati and Amaliah Faradibah, “Comparison Analysis of Classification Model Performance in Lung Cancer Prediction Using Decision Tree, Naive Bayes, and Support Vector Machine,” Indonesian Journal of Data and Science, vol. 4, no. 2, pp. 80–89, Jul. 2023, doi: 10.56705/ijodas.v4i2.76.

[27] F. Nurjanah and S. E. Y. Suprihatin, “The development of Android-based learning media using Kodular in making suit patterns subject,” Jurnal Pendidikan Vokasi, vol. 13, no. 3, pp. 232–245, 2023, doi: 10.21831/jpv.v13i3.54542.

[28] I. P. Laksana, E. D. Wahyuni, and C. S. K. Aditya, “Game Design for Mobile App-Based IoT Introduction Education in STEM Learning,” Jurnal RESTI, vol. 7, no. 3, pp. 688–696, 2023, doi: 10.29207/resti.v7i3.5007.

[29] J. Riko Kurniawan Putra, Junadhi, Agustin, Herwin, F. Zoromi, and K. Andesa, “Analisis User Experience Sistem Tracer Alumni USTI dengan Metode SUS sebagai Upaya Peningkatan Kualitas Penggunaan,” vol. 6, no. 1, 2025.

[30] A. Bangor, P. Kortum, and J. Miller, “Determining what individual SUS scores mean; adding an adjective rating,” J Usability Stud, vol. 4, no. 3, pp. 114–23, 2009.

Hybrid Machine Learning Model for Risk Prediction and Action Recommendation Based on Artificial Mental Systems

Downloads

Published

2025-11-03

How to Cite

Hybrid Machine Learning Model for Risk Prediction and Action Recommendation Based on Artificial Mental Systems. (2025). Teknika, 14(3), 415-423. https://doi.org/10.34148/teknika.v14i3.1357