Komparasi Algoritma Random Forest dan SVM dalam Klasifikasi Kondisi Aliran Air Berdasarkan Getaran MPU6050
DOI:
https://doi.org/10.30865/json.v7i4.9875Keywords:
MPU6050, Machine learning, Random Forest, Support Vector Machine, Distribusi AirAbstract
Ketersediaan informasi mengenai kondisi aliran air pada sistem distribusi masih menjadi permasalahan di beberapa wilayah, terutama pada jaringan yang tidak beroperasi secara kontinu. Penelitian ini bertujuan mengembangkan model klasifikasi kondisi aliran air pada pipa distribusi berdasarkan data getaran yang diperoleh menggunakan sensor MPU6050. Data getaran direpresentasikan melalui fitur akselerasi tiga sumbu (ax, ay, dan az) serta fitur statistik berupa mean dan Root Mean Square (RMS). Dataset yang digunakan terdiri atas 4.406 sampel yang dikelompokkan ke dalam dua kelas, yaitu kondisi air mengalir dan pipa kosong. Tahapan penelitian meliputi pra-pemrosesan data menggunakan StandardScaler, penanganan ketidakseimbangan kelas menggunakan Synthetic Minority Over-sampling Technique (SMOTE), serta pelatihan model menggunakan algoritma Random Forest dan Support Vector Machine (SVM). Hasil pengujian menunjukkan bahwa Random Forest memperoleh akurasi 95,92%, presisi 96,60%, recall 96,22%, dan F1-score 96,41%, sedangkan Support Vector Machine (SVM) memperoleh akurasi 95,80%, presisi 95,50%, recall 97,21%, dan F1-score 96,35%. Hasil tersebut menunjukkan bahwa kedua algoritma mampu mengklasifikasikan kondisi aliran air dengan baik, dengan Random Forest memberikan performa keseluruhan yang sedikit lebih unggul dibandingkan Support Vector Machine (SVM). Penelitian ini menunjukkan bahwa data getaran dari sensor MPU6050 berpotensi digunakan sebagai solusi pemantauan kondisi aliran air secara non-intrusif pada sistem distribusi air.
References
[1] LOCALISE SDGs Indonesia, “Sustainable Development Goals.” Accessed: Feb. 16, 2026. [Online]. Available: https://localisesdgs-indonesia.org/17-sdgs
[2] Badan Pusat Statistik RI, “Statistik Lingkungan Hidup Indonesia 2024,” Jakarta, 2024.
[3] Z. Liu and W. Liu, “Spatial-Temporal Relationship between Water Resources and Economic Development in Rural China from a Poverty Perspective,” Int. J. Environ. Res. Public Heal., 2021, doi: 10.3390/ijerph18041540.
[4] R. Liu, T. Zayed, and R. Xiao, “A critical systematic review of machine learning based models for water leak detection using vibroacoustic technology,” 2025, doi: 10.1016/j.engappai.2025.111432.
[5] D. H. Widyatma et al., “Internet of things-based water pipe leak detection system,” 2025, doi: 10.26623/elektrika.v17i2.12750.
[6] H. Pourmehrani, R. Hosseini, and H. Moradi, “Water Flow Detection Device Based on Sound Data Analysis and Machine Learning to Detect Water Leakage,” 2025.
[7] S. A. Palermo et al., “Smart Technologies for Water Resource Management : An Overview,” Sensors, 2022, doi: 10.3390/s22166225.
[8] M. Zuñiga-uribe, R. Rojas-galván, J. M. Álvarez-alvarado, M. Aviles, G. I. Pérez-soto, and V. Pérez-moreno, “Artificial Intelligence in Water Distribution Networks : A Systematic Review of Models , Input Variables , Databases , and Output Strategies for Leak Detection,” pp. 1–29, 2026.
[9] M. Dada, M. Majemite, A. Obaigbena, O. Daraojimba, J. Oliha, and Z. Nwokediegwu, “Review of smart water management: IoT and AI in water and wastewater treatment,” World J. Adv. Res. Rev., 2024, doi: 10.30574/wjarr.2024.21.1.0171.
[10] G. Dharmarathne, A. M. S. R. Abekoon, M. Bogahawaththa, J. Alawatugoda, and P. Meddage, “A review of machine learning and internet-of-things on the water quality assessment: Methods, applications and future trends,” Results Eng., 2025, doi: 10.1016/j.rineng.2025.105182.
[11] H. Cen, D. Huang, Q. Liu, Z. Zong, and A. Tang, “Application Research on Risk Assessment of Municipal Pipeline Network Based on Random Forest Machine Learning Algorithm,” Water, 2023, doi: 10.3390/w15101964.
[12] J. Cervantes, F. Garcia-Lamont, L. Rodríguez-Mazahua, and A. Lopez, “A comprehensive survey on support vector machine classification: Applications,” Neurocomputing, vol. 408, pp. 189–215, 2020, doi: 10.1016/j.neucom.2019.10.118.
[13] M. Rajgopal, K. P. Karani, and N. S. Basavaraju, “Cluster based water leakage detection frame work for the improvement of water management using WSN,” vol. 38, no. 1, pp. 603–612, 2025, doi: 10.11591/ijeecs.v38.i1.pp603-612.
[14] A. Pagano, D. Garlisi, I. Tinnirello, and F. Giuliano, “Ad Hoc Networks Survey paper A survey on massive IoT for water distribution systems : Challenges , simulation tools , and guidelines for large-scale deployment,” Ad Hoc Networks, vol. 168, no. October 2024, p. 103714, 2025, doi: 10.1016/j.adhoc.2024.103714.
[15] I. H. Sarker, “Machine Learning: Algorithms, Real-World Applications and Research Directions,” SN Comput. Sci., vol. 2, 2021, doi: 10.1007/s42979-021-00592-x.
[16] S. Lee and B. Kim, “Machine Learning Model for Leak Detection Using Water Pipeline Vibration Sensor.,” Sensors, 2023, doi: 10.3390/s23218935.
[17] J. M. Johnson and T. M. Khoshgoftaar, “Survey on deep learning with class imbalance.,” J Big Data, 2019, doi: 10.1186/s40537-019-0192-5.
[18] J. Herrera Pinheiro et al., “The Impact of Feature Scaling In Machine Learning: Effects on Regression and Classification Tasks,” 2025, doi: 10.1109/ACCESS.2025.3635541.
[19] A. Géron, Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd ed. Sebastopol: O’Reilly Media, Inc., 2019.
[20] S. Wang, Y. Dai, J. Shen, and J. Xuan, “Research on expansion and classification of imbalanced data based on SMOTE algorithm,” Sci. Rep., 2021, doi: 10.1038/s41598-021-03430-5.
[21] J. Han, M. Kamber, and J. Pei, Data mining : concepts and techniques, 3rd ed. Waltham: Morgan Kaufmann, 2012.
[22] D. Chicco and G. Jurman, “The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation,” BMC Genomics, 2020, doi: 10.1186/s12864-019-6413-7.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jurnal Sistem Komputer dan Informatika (JSON)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This work is licensed under a Creative Commons Attribution 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 Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment 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 acknowledgment 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 (Refer to The Effect of Open Access).

