Using K-Means Algorithm to Investigate Community Behavior in Treating Waste toward Smart City

N. Tri Suswanto Saptadi, Phie Chyan, Vanessa Putri Taga


Urban communities' behavior in disposing and managing waste around the house is still very concerning. This study aims to analyze and classify community behavior patterns related to waste disposal to help the Makassar City Government overcome waste problems. The methods and techniques applied are using the Waterfall model and the K-Means Algorithm. The stages of analysis and classification of behavior patterns can assist city governments in making strategic decisions. The variables determined include education, age, occupation, free time, smoking status, and questionnaire (outreach, law, knowledge, and facilities). The K-Means algorithm calculation results are 39 people in cluster 1 and 10 people in cluster 2. In cluster 1, it is known that the community tends to take care of the environment in the sub-district where the community lives. Cluster 2 has a low average yield, such as people who do not know the impact laws, inadequate sanitation facilities, and lack of proper waste management towards smart city governance. Based on testing for each method, the Cyclomatic Complexity value generated is four. Therefore, it can be concluded that the white box testing on the K-Means algorithm runs well because each test produces the same value. The government and the community have a responsibility to carry out waste management properly, make use of goods and refill facilities, know the legal impact of littering and follow the socialization held by the Makassar City Government.


Algorithm; behavior; urban communities; waste management; smart city.

Full Text:



Nurlela. "The Impact of the Existence of the Vipa Mas 3R Waste Processing Site (Reduce, Reuse and Recycle) on the Socio-Economic Environment of the Community in Bambu Apus Village, Pamulang District, South Tangerang City". Thesis. Jakarta Universitas Islam Negeri (UIN) Syarif Hidayatullah, 2017.

Sukerti, Sudarma, Pujaastawa, Community Behavior in Waste Management and Affecting Factors in East Denpasar District, Denpasar City, Bali, 2017.

Notoatmodjo, Soekidjo, Behavioral Health Sciences, Jakarta: Rineka Cipta, 2010.

Elvi Anggraeni Tjandra dan Siska Rosiani Tjandra, “The Relationship Between Cognitive Components, Affective Components and Behavior Components Towards Consumer Attitudes Using Internet Technologyâ€, Jurnal Manajemen/Volume XVII, No. 1, Pg. 42-52, February 2013.

Mulasari A., Heru H. A., and Muhadjir N., Analysis of the Situation of the Yogyakarta City Waste Problem and its Prevention Policies, Jurnal Kesehatan Masyarakat Vol. 11 No. 2. kemas. vllil.3521, 2016.

Sahil J et al., Waste Management and Effort Management System in Dufa-Dufa Village, Ternate City, Jurnal Bioedukasi Vol. 4 No. 2. ISSN: 2301-4678/, 2016.

WHO, Waste and human health: Evidence and needs, Bonn, Germany, 2015.

Nilam S.P. “Analysis of Solid Waste Management in Banuhampu District, Agam Regencyâ€, Jurnal Kesehatan Masyarakat Andalas Vol. 10 No. 2. Pg. 157-165. E-ISSN 2442-6725/ index.php/jkma/, 2016.

Loudon, David and J. Della Bitta, Consumer Behavior: Concept and Applications, 4th Edition. New York: Mc. Graw Hill, 1993.

Walgito, B, Introduction to General Psychology, Yogyakarta: Andi Offset, 2010. Accessed January 25, 2020.

Dubey, P. Singh, P. Yadav, and K. K. Singh, “Household Waste Management System Using IoT and Machine Learning,†Procedia Comput. Sci., vol. 167, pp. 1950–1959, 2020.

Kamal, Fitrul, “Relationship between Knowledge Level and Attitude of Housewives on Waste Management in Communities Around the Beringin River in RW 07 Wonosari Village, Ngaliyan District, Semarang Cityâ€, Thesis. Universitas Negeri Semarang. 2009.

Pemerintah Republik Indonesia, UU No. 18 Tahun 2008 tentang Pengelolaan Sampah.

Kota Makassar, Peraturan Daerah Nomor 4 Tahun 2011 Tentang Pengelolaan Sampah.

Suwono, Tuwo, Haryati, Anshary, “Applying Organic Fertilizer from Solid Waste of Super Intensive Shrimp Pond on Production of Milkfish Fingerlings Chanos chanosâ€, IJASEIT Journal, Vol.10 No. 2. ISSN: 2088-5334, 2020.

Kristianto, Maria Kurniawan, Jenny Soetedjo, “Utilisation of Papaya Seeds as Natural Coagulant for Synthetic Textile Coloring Agent Wastewater Treatmentâ€, IJASEIT Journal, Vol. 8 No. 5. ISSN: 2088-5334, 2018.

Alessandra Pieroni,Noemi Scarpato,Luca Di Nunzio,Francesca Fallucchi and Mario Raso,"Smarter City: Smart Energy Grid based on Blockchain Technology," International Journal on Advanced Science, Engineering and Information Technology, vol. 8, no. 1, pp. 298-306, 2018. [Online]. Available:

Raviya, K. H. dan Gajjar, B, Performance Evaluation of Different Data Mining Classification Algorithm Using WEKA. Indian Journal of Research. II (1), 2013.

Rohmawati, N. Defiyanti, S. Jajuli, M, “Implementation of the K-Means Algorithm in Clustering Scholarship Applicantsâ€. Jitter Jurnal Ilmiah Teknologi Informasi Terapan. 2015. Vol. I (2). 62-68.

Sommerville, Ian, Sofware Engineering 9th ed, New York, 2011.

Prasetyo, E. Data Mining Concepts and Applications Using MATLAB, Yogyakarta: Andi Offset, 2012.

Rui Xu and Donald C. Wunsch II, Clustering, A John Wiley & Sons, Inc., Publication, 2009.

Yudi, Agusta, “K-Means-Penerapan, Permasalahan dan Metode Terkait. Denpasarâ€, Bali: Jurnal Sistem dan Informatika, Vol. 3, 47-60. February 2007.



  • There are currently no refbacks.

Published by INSIGHT - Indonesian Society for Knowledge and Human Development