Sentiment Analysis of BMKG Weather Information Service Using K-Nearest Neighbor Method
DOI:
https://doi.org/10.35870/ijsecs.v4i2.2881Keywords:
BMKG, Platform X, K-Nearest Neighbor (KNN)Abstract
The Meteorology, Climatology, and Geophysics Agency (BMKG) is a government institution that provides information related to air quality, climate, dry days, satellite imagery, wave forecasts, wind forecasts, and fire potential. This information is disseminated not only through BMKG's official website but also via the social media platform X, making it easier for the public to access up-to-date information. This study aims to classify user sentiment towards the weather information services provided by BMKG using the K-Nearest Neighbor (KNN) method. Data was collected through a web crawling technique, resulting in 1,031 data points analyzed in this research. The data processing stages included Pre-Processing and sentiment calculation using Vader's Sentiment and Random Forest. The classification results using the KNN algorithm showed an accuracy rate of 96%, with an average precision of 96%, an average recall of 96%, and an average f-measure of 96%. These findings indicate that the KNN model can effectively classify user sentiment towards BMKG's services.
Downloads
References
Hartanto, B., Astriawati, N., Supartini, D., & Yekti, D. K. (2022). Pencarian dan Pemanfaatan Informasi Data Badan Meteorologi, Klimatologi, dan Geofisika (BMKG). Yogyakarta: Sekolah Tinggi Maritim Yogyakarta. https://doi.org/10.55123/insologi.v1i5.906
Prasetyaningtyas, K. (2024). Climate Outlook 2024. Jakarta: BMKG.
Mubarok, H., & Dipalokareswara, A. (2022). Optimization of Weather Forecast Using Ensemble Method on Naïve Bayes and C4.5. Tasikmalaya: Universitas Siliwangi. https://doi.org/10.28932/jutisi.v8i3.5455
Daqiqi, I. (2021). Machine Learning: Teori, Studi Kasus dan Implementasi Menggunakan Python. Riau: UR Press.
Kemp, S. (2023). Digital 2023: Indonesia. Retrieved from https://datareportal.com/reports/digital-2023-indonesia
Suradi, S. (2019). Pemodelan Sistem. Makassar: Tohar Media.
Dinata, R. K., & Hasdyna, N. (2020). Machine Learning. Sulawesi: Unimal Press.
Alafandy, K. A., Omara, H., Lazaar, M., & Al Achhab, M. (2022). Machine Learning. Maroco.
Rangkuti, M. Y. R., Alfansyuri, M. V., & Gunawan, W. (2021). Penerapan Algoritma K-Nearest Neighbor (KNN) Dalam Memprediksi dan Menghitung Tingkat Akurasi Data Cuaca di Indonesia. Sumbawa: Universitas Teknologi Sumbawa. https://doi.org/10.36761/hexagon.v2i2.1082
Yani, V. I., & Mubarok, H. (2022). Optimasi Prakiraan Cuaca Menggunakan Metode Ensemble Pada Naïve Bayes dan C4.5. Tasikmalaya: Universitas Siliwangi. https://doi.org/10.28932/jutisi.v8i3.5455
Zuriati, Z., & Qomariyah, N. (2023). Klasifikasi Penyakit Stroke Menggunakan Algoritma K-Nearest Neighbor (KNN). Lampung: Politeknik Negeri Lampung. https://doi.org/10.25181/rt.v1i1.2665
Jasmir, J., Sika, X., Mulyadi, M., & Amelia, R. (2022). Klasifikasi kelayakan pemberian kredit pada calon debitur menggunakan naïve bayes. Jurikom (Jurnal Riset Komputer), 9(6), 1833. https://doi.org/10.30865/jurikom.v9i6.5131
Downloads
Published
Issue
Section
Categories
License
Copyright (c) 2024 Muhamad Fajar Sodiq, Fatkhul Amin

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors who publish with this journal agree to the following terms:
1. Copyright Retention and Open Access License
Authors retain copyright of their work and grant the journal non-exclusive right of first publication under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
This license allows unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2. Rights Granted Under CC BY 4.0
Under this license, readers are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, including commercial use
- No additional restrictions — the licensor cannot revoke these freedoms as long as license terms are followed
3. Attribution Requirements
All uses must include:
- Proper citation of the original work
- Link to the Creative Commons license
- Indication if changes were made to the original work
- No suggestion that the licensor endorses the user or their use
4. Additional Distribution Rights
Authors may:
- Deposit the published version in institutional repositories
- Share through academic social networks
- Include in books, monographs, or other publications
- Post on personal or institutional websites
Requirement: All additional distributions must maintain the CC BY 4.0 license and proper attribution.
5. Self-Archiving and Pre-Print Sharing
Authors are encouraged to:
- Share pre-prints and post-prints online
- Deposit in subject-specific repositories (e.g., arXiv, bioRxiv)
- Engage in scholarly communication throughout the publication process
6. Open Access Commitment
This journal provides immediate open access to all content, supporting the global exchange of knowledge without financial, legal, or technical barriers.
