Clustering Mental Health on Instagram Users Using K-Means Algorithm


    Yuliastati Putri Sugiarta Karlim( 1 ) Aditiya Hermawan( 2 ) Ardiane Rossi Kurniawan Maranto( 3 )

    (1) Universitas Buddhi Dharma
    (2) Universitas Buddhi Dharma
    (3) Universitas Buddhi Dharma



Clustering, Elbow Method, Instagram, K Means, Mental Health


The use of Instagram too often can have an impact on the mental health of its users. Mental health that is not good requires early treatment so that it does not have a widespread impact on other health. Mental illness requires a professional to treat it as an effort to prevent a disease from getting worse. However, the stigma attached to sufferers is one of the significant causes behind the reluctance to seek treatment. Therefore we need a way so that Instagram users can find out for themselves the condition of their mental health. One way is to do Clustering the use of Instagram so that it can provide an early indication of a person's mental health. From the proposed model we can find out the categories of 600 respondents who were collected using a questionnaire with 10 main attributes. The proposed model is k-means with 3 clusters determined using the elbow method. In this study, the last centroid obtained through calculations was used to evaluate the k-means by comparing the results of the k-means calculations with the results of psychologists. The results of the K-means evaluation have an accuracy of 73.83% so that the last centroid can be applied to web-based applications that have been created. This mental health clustering model is expected to be able to help the community to get mental health conditions early and reduce the negative stigma that exists and can be used as evaluation material in using social media more wisely.


Download data is not yet available.


S. Kemp, “Digital 2021 Global Overview Report,” In Global Digital Insights, 2021.

A. Macmillan, Instagram Is the Worst Social Media for Mental Health. 2017.

Royal Society For Public Health, Status Of Mind : Social media and young people’s mental health and wellbeing. 2017.

World Health Organization, “Mental health: strengthening our response,” 2018.

Statista, Leading Countries Based on Instagram Audience Size as of October 2021. 2021.

E. Prasetyo, Data Mining Konsep dan Aplikasi Menggunakan Matlab. Andi, 2013.

T. Soni Madhulatha, “AN OVERVIEW ON CLUSTERING METHODS,” IOSR J. Eng., vol. 02, no. 04, pp. 719–725, Apr. 2012, doi: 10.9790/3021-0204719725.

P. Bholowalia and A. Kumar, “EBK-Means: A Clustering Technique based on Elbow Method and K-Means in WSN,” Int. J. Comput. Appl., vol. 105, no. 9, pp. 975–8887, 2014, doi: 10.5120/18405-9674.

T. . Kodinariya and P. . Makwana, “Review on determining number of Cluster in K-Means Clustering,” Int. J. Adv. Res. Comput. Sci. Manag. Stud., vol. 1, no. 6, pp. 90–95, 2013.

A. Chailes, A. Hermawan, and D. Kurnaedi, “Penerapan Metode Data Mining Untuk Menentukan Pola Pembelian Dengan Menggunakan Algoritma,” J. Algor, vol. 1, no. 2, pp. 1–8, 2020.

R. T. Vulandari, “Pengelompokan Tingkat Keamanan Wilayah Jawa Tengah Berdasarkan Indeks Kejahatan Dan Jumlah Pos Keamanan Dengan Metode Klastering K-Means,” J. Ilm. SINUS, vol. Vol 14, No, no. ISSN:1693-1173, pp. 59–72, 2016, doi:

B. Bukhori, “Hubungan Kebermaknaan Hidup Dan Dukungan Sosial Keluarga Dengan Kesehatan Mental Narapidana (Studi Kasus Nara Pidana Kota Semarang),” Addin, vol. 4, no. 1, pp. 1–19, 2012.

D. V. Fakhriyani, Kesehatan Mental. Pamekasan: Duta Media Publishing, 2019.

Y. Kurniawan and I. Sulistyarini, “Komunitas Sehati (Sehat Jiwa dan Hati) Sebagai Intervensi Kesehatan Mental Berbasis Masyarakat,” Insa. J. Psikol. dan Kesehat. Ment., vol. 1, no. 2, p. 112, 2016, doi: 10.20473/jpkm.v1i22016.112-124.

A. Nasir and A. Muhith, Dasar-Dasar Keperawatan Jiwa : Pengantar dan Teori. Jakarta: Salemba Medika, 2011.

R. Mondoano, Nuraeni Aprilia; Mayasar and F. Gunawan, “Instagram And Mental Health Of The Students In Islamic Higher Education Of Southeast Sulawesi Indonesia,” 2018, no. September, pp. 26–34.




How to Cite

Yuliastati Putri Sugiarta Karlim, Aditiya Hermawan, and Ardiane Rossi Kurniawan Maranto, “Clustering Mental Health on Instagram Users Using K-Means Algorithm”, bit-Tech, vol. 6, no. 1, pp. 32–39, Aug. 2023.



Abstract views: 151 / PDF downloads: 149

Most read articles by the same author(s)