Analisis Hubungan Preferensi Genre Musik dan Kesehatan Mental pada Dataset MXMH


  • jafar Jaya Priambudhi * Mail Universitas Mercu Buana Yogyakarta, Yogyakarta, Indonesia
  • Imam Suharjo Universitas Mercu Buana Yogyakarta, Yogyakarta, Indonesia
  • (*) Corresponding Author
Keywords: Mental Health; Music; Random Forest; Clustering; Music Genre

Abstract

Mental health is a critical issue that is influenced by various factors, including music-listening habits. In the field of music psychology, music genre preferences are known to be associated with emotional regulation and an individual’s psychological state. This study aims to analyze the relationship between music genre preferences and mental health using a data-driven approach. The dataset used is the Music & Mental Health Survey (MXMH), which consists of 737 respondents with variables including music genre preferences, duration of music listening, and mental health indicators such as anxiety, depression, insomnia, and obsessive-compulsive disorder (OCD). The research stages included data preprocessing, exploratory data analysis (EDA), determining the number of clusters using the Elbow Method and Silhouette Score, clustering using the K-Means algorithm, analyzing the relationship between music genre and mental health, and classifying the clustering results using Random Forest. The results showed that respondents could be grouped into three clusters with distinct mental health characteristics. A Silhouette Score of 0.2246 indicates that the quality of cluster separation is still relatively low, making the segmentation results more exploratory in nature. Correlation analysis revealed a positive relationship between the anxiety and depression variables, as well as differences in music genre preference patterns among groups with different mental health conditions. The feature importance results show that the music genre preference variable contributes to distinguishing the characteristics of each cluster. The contribution of this study is to provide an empirical overview of the relationship between music genre preferences and mental health conditions based on the MXMH dataset through a machine learning-based segmentation and classification approach.  The findings of this study suggest that music preferences have the potential to be used as an indicator for understanding patterns of an individual’s psychological state, although further validation and methodological development are needed to achieve a more robust segmentation.

Downloads

Download data is not yet available.

References

E. Jurnal Penelitian Dan Pengabdian, R. Surya, F. Reni, R. Bakhtiar, and A. Dzaky Zaidan, “Musik Sebagai Media Komunikasi Bagi Kesehatan Mental,” Ekasakti Jurnal Penelitian Dan Pengabdian, vol. 5, no. 2, pp. 2025–2025, 2025, doi: https://doi.org/10.31933/ejpp.v5i2.1317.

S. Astuti et al., “Lagu sebagai Cermin Psikologis Generasi Muda: Studi Kesehatan Mental dalam Karya Musik Hindia,” Jurnal Pengabdian Masyarakat dan Riset Pendidikan, vol. 3, no. 4, pp. 2891–2895, May 2025, doi: 10.31004/jerkin.v3i4.800.

T. M. Z. Zahrani, Ulin Nihayah, and Ayu Faiza Algifahmy, “Upaya Menumbuhkan Kesehatan Mental Melalui Music Therapy Dalam Mengatasi Kecemasan,” G-Couns: Jurnal Bimbingan dan Konseling, vol. 8, no. 3, pp. 1884–1892, Jun. 2024, doi: 10.31316/gcouns.v8i3.5556.

H. Jurnal et al., “Analisis Python Penggunaan Musik Sebagai Pengobatan Gangguan Mental,” JUPTI, vol. 2, no. 2, pp. 38–47, May 2023, doi: 10.55606/jupti.v2i2.1721.

Aisyah Khamini and Tri Setyo Andri Maulana, “Peran Musik dalam Regulasi Emosi dan Perubahan Mood : Kajian Literatur,” JOURNAL SAINS STUDENT RESEARCH, vol. 4, no. 1, pp. 968–972, Feb. 2026, doi: 10.61722/jssr.v4i1.8911.

N. Zulfatus Izza and V. Rega Natalia, “SWARA: Jurnal Antologi Pendidikan Musik Peran Musik Untuk Mengatasi Stres dan Krisis Mental Gen Z di Era Digital,” SWARA: Jurnal Antologi Pendidikan Musik, vol. 5, no. 1, pp. 113–124, Apr. 2025, doi: https://doi.org/10.17509/swara.v5i1.84569.

Muhammad Aulia Akbar and Anne Maryani, “Pengaruh Terpaan Lagu Hindia Terhadap Kesehatan Mental Gen Z,” Bandung Conference Series: Communication Management, vol. 5, no. 2, Jul. 2025, doi: 10.29313/bcscm.v5i2.18694.

J. Ipmawati, “Segmentasi Pendengar Musik Berdasarkan Kebiasaan dan Dampaknya Terhadap Kesehatan Mental Menggunakan K-Means dan Random Forest,” JUTIK : Jurnal Teknologi Informasi dan Komputer, vol. 11, no. 1, pp. 34–44, Apr. 2025, doi: 10.36002/jutik.v11i1.3748.

D. Muriyatmoko, A. Musthafa, M. Fa-Idzaa, U. Darussalam Gontor, and J. Timur Indonesia, “Seminar Nasional Amikom Surakarta (Semnasa) 2024 Perbandingan Metode Support Vector Machine dan Random Forest Dalam Menganalisis Pengaruh Musik Terhadap Penurunan Tingkat Stress Mahasiswa Semester 7 Saat Skripsi (Studi Kasus : Universitas Darussalam Gontor),” Seminar Nasional Amikom Surakarta (Semnasa), vol. 2, pp. 128–135, Nov. 2024, Accessed: Jun. 17, 2026. [Online]. Available: https://ojs.amikomsolo.ac.id/index.php/semnasa/article/view/533

M. J. Faisti, R. Hadapiningradja Kusumodestoni, G. Wahyu, and N. Wibowo, “Mental Health Classification Using Naïve Bayes and Random Forest Algorithms,” Aug. 2025. doi: https://doi.org/10.30871/jaic.v9i4.10144.

D. Nuriska, B. Irawan, A. Bahtiar, and A. Rinaldi Dikananda, “Klasterisasi Data Lagu Terpopuler Spotify 2023 Berdasarkan Suasana Hati Menggunakan Algoritma K-Means,” Jurnal Mahasiswa Teknik Informatika, vol. 7, no. 6, pp. 3843–3850, Dec. 2023, doi: https://doi.org/10.36040/jati.v7i6.8232.

G. Zidane Dhamara and A. Nugroho, “Klasifikasi Genre Musik Menggunakan Machine Learning,” Bulletin of Information Technology (BIT), vol. 6, no. 3, pp. 206–217, Sep. 2025, doi: 10.47065/bit.v5i2.2021.

B. Hakim, F. Joanda Kaunang, C. Susanto, J. Salim, and R. Indradjaja, “Implementasi Machine Learning Dalam Pengelompokan Musik Meggunakan Algoritma K-Means Clustering,” 2025. [Online]. Available: http://jom.fti.budiluhur.ac.id/index.php/IDEALIS/indexBhustomyHakim|http://jom.fti.budiluhur.ac.id/index.php/IDEALIS/index|

N. Aliya, A. Aini, R. Cinta Endynda, and H. Al Rosyid, “Jurnal Sains dan Teknolog Penerapan Algoritma K-Means untuk Klasterisasi Lagu Terpopuler 2025 Versi Spotify,” Jurnal Sains Dan Teknologi, vol. 02, no. 3, p. 147, 2026, doi: 10.62379/jsit.v2i3.939.

M. A. Munajad, A. Ridwan, and T. G. Pratama, “Pengembangan Sistem Rekomendasi Musik dengan K-Means dan KNN Berbasis Cosine Similarity,” Sainteks, vol. 22, no. 2, pp. 153–165, Oct. 2025, doi: 10.30595/sainteks.v22i2.27815.

I. Komang Dika Setiawan and I. Wayan Sudiarsa, “Analisis Klasifikasi Perilaku Pengguna Terhadap Customer Churn Pada Layanan Musik Spotify Menggunakan Metode Random Forest,” JMA), vol. 4, no. 1, pp. 3031–5220, Jan. 2026, doi: 10.62281.

N. Sofie Soraya, “Komparasi linear regression, random forest regression, dan multilayer perceptron regression untuk prediksi tren musik TikTok,” AITI: Jurnal Teknologi Informasi, vol. 20, no. Agustus, pp. 191–205, Apr. 2023, doi: https://doi.org/10.24246/aiti.v20i2.191-205.

P. Studi Informatika and F. Matematika dan Ilmu Pengetahuan Alam, “Analisis dan Klasifikasi Genre Musik Menggunakan Algoritma STFT dan Random Forest Merry Royanti Manalu a1 , Made Agung Raharja a2,” JNATIA, vol. 3 No. 1, no. 1, pp. 205–214, Nov. 2024, doi: https://doi.org/10.24843/JNATIA.2024.v03.i01.p24.

S. Naeem, A. Ali, S. Anam, and M. M. Ahmed, “An Unsupervised Machine Learning Algorithms: Comprehensive Review,” International Journal of Computing and Digital Systems, vol. 13, no. 1, pp. 911–921, Apr. 2023, doi: 10.12785/ijcds/130172.

N. Defany Marsya et al., “Jurnal Sains Informatika Terapan (JSIT) Penerapan Algoritma Random Forest Dalam Prediksi Emosi Musik Berdassarkan Karakteristik Fitur Audio Spotify,” JSIT, vol. 4, pp. 435–440, Aug. 2025, doi: https://doi.org/10.62357/jsit.v4i2.648.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Analisis Hubungan Preferensi Genre Musik dan Kesehatan Mental pada Dataset MXMH

Dimensions Badge
Article History
Submitted: 2026-06-09
Published: 2026-07-05
Abstract View: 0 times
How to Cite
Jaya Priambudhi, jafar, & Suharjo, I. (2026). Analisis Hubungan Preferensi Genre Musik dan Kesehatan Mental pada Dataset MXMH. Journal of Information System Research (JOSH), 7(4). https://doi.org/10.47065/josh.v7i4.10236
Section
Articles