Sentiment Analysis of the Policy of Providing Contraceptive Provision Policy for Teenagers in PP Number 28 Year 2024 with Naïve Bayes Classifier Method on Twitter

Authors

  • Ira Zulfa Universitas Gajah Putih
  • Eliyin Eliyin Universitas Gajah Putih
  • Firmansyah Firmansyah Universitas Gajah Putih
  • Zikri Syah Dermawan Universitas Gajah Putih

DOI:

https://doi.org/10.62951/ijeemcs.v2i1.241

Keywords:

Adolescents, Contraceptive Policy, Sentiment Analysis, Twitter

Abstract

The plan to offer birth control to teenagers, outlined in Government Regulation (PP) No. 28 of 2024, has sparked different responses in the public, especially on social media sites like Twitter. This research intends to look into how people feel about this plan by using the Naïve Bayes Classifier technique. Information was gathered from Twitter by using data collection methods with the snscrape tool and the Python coding language. A total of 1,000 tweets related to the topic of the policy were gathered and went through initial processing steps like cleaning, breaking into words, changing cases, and removing common words. The Naïve Bayes Classifier technique was employed to sort the public's feelings into three groups: positive, negative, and neutral. The findings showed that half of the tweets (50%) had a negative view on the policy, while 35% had a positive outlook, and 15% were neutral. The accuracy of the method used was 78%, with a precision of 74%, a recall of 79%, and an F1-score of 76%. The findings from this research offer a summary of how the public feels about the birth control policy for teenagers, which can help the government assess and create policies that better meet the community's needs and worries. Additionally, this research highlights how well the Naïve Bayes Classifier method works for analyzing sentiments on social media, even though there are some challenges when it comes to understanding language subtleties like sarcasm.

References

G. Ruz, P. Henríquez, and A. Mascareño, “Sentiment analysis of Twitter data during critical events through Bayesian networks classifiers,” Futur. Gener. Comput. Syst., vol. 106, pp. 92–104, 2020, doi: 10.1016/j.future.2020.01.005.

D. Normawati and S. A. Prayogi, “Implementasi Naïve Bayes Classifier dan Confusion Matrix pada Analisis Sentimen Berbasis Teks pada Twitter,” J. SAKTI, vol. 5, pp. 697–711, 2021, doi: 10.30645/J-SAKTI.V5I2.369.

M. Wongkar and A. Angdresey, “Sentiment analysis using Naive Bayes algorithm of the data crawler: Twitter,” 2019 4th Int. Conf. Informatics Comput., pp. 1–5, 2019, doi: 10.1109/ICIC47613.2019.8985884.

S. Sindhuja, K. Sai, R. Kotharu, and S. Devi, “Twitter sentiment analysis using enhanced TF-DIF Naive Bayes classifier approach,” 2023 7th Int. Conf. Comput. Methodol. Commun., pp. 547–551, 2023, doi: 10.1109/ICCMC56507.2023.10084106.

A. Muzaki and A. Witanti, “Sentiment analysis of the community in the Twitter to the 2020 election in pandemic COVID-19 by method Naive Bayes classifier,” J. Tek. Inform., 2021, doi: 10.20884/1.JUTIF.2021.2.2.51.

A. A. Dwisanny and S. Supatmi, “Twitter opinion sentiment analysis based on new student admission zoning issues using the Naïve Bayes and TensorFlow methods,” 2023 9th Int. Conf. Signal Process. Intell. Syst., pp. 1–8, 2023, doi: 10.1109/ICSPIS59665.2023.10402745.

P. Wahyuni and M. A. Romli, “Comparison of Naïve Bayes Classifier and Decision Tree algorithms for sentiment analysis on the House of Representatives’ Right of Inquiry on Twitter,” J. Appl. Informatics Comput., 2024, doi: 10.30871/jaic.v8i2.8670.

F. Millennianita, U. Athiyah, and A. W. Muhammad, “Comparison of Naïve Bayes Classifier and Support Vector Machine methods for sentiment classification of responses to bullying cases on Twitter,” J. Mechatronics Artif. Intell., 2024, doi: 10.17509/jmai.v1i1.69959.

F. Astiko and A. Khodar, “The sentiment analysis reviewing Indosat services from Twitter using the Naive Bayes Classifier,” J. Appl. Comput. Sci. Technol., 2020, doi: 10.52158/JACOST.V1I2.79.

C. Wicaksana, M. Fatkhurrokhman, H. P. Pratama, R. Tryawan, Alimuddin, and R. Febriani, “Twitter sentiment analysis in Indonesian language using Naive Bayes classification method,” 2022 Int. Conf. Informatics Electr. Electron., pp. 1–6, 2022, doi: 10.1109/ICIEE55596.2022.10010002.

Z. Zhang, “Sentiment analysis of Twitter comments using Naive Bayes classifier,” Commun. Humanit. Res., 2023, doi: 10.54254/2753-7064/10/20231338.

A. Irwanto and L. Goeirmanto, “Sentiment analysis from Twitter about COVID-19 vaccination in Indonesia using Naive Bayes and XGBoost classifier algorithm,” SINERGI, 2023, doi: 10.22441/sinergi.2023.2.001.

M. R. Ramli, H. Sulastri, and R. Rianto, “Sentiment analysis of student opinion related to online learning using Naïve Bayes classifier algorithm and SVM with AdaBoost on Twitter social media,” Telematika, 2023, doi: 10.31315/telematika.v20i2.8827.

I. Wardhani, Y. Chandra, and F. Yusra, “Application of the Naïve Bayes classifier algorithm to analyze sentiment for the COVID-19 vaccine on Twitter in Jakarta,” Int. J. Innov. Enterp. Syst., 2023, doi: 10.25124/ijies.v7i01.171.

Y. Mayasari and Y. R. Nasution, “Post-election sentiment analysis 2024 via Twitter (X) using the Naive Bayes classifier algorithm,” J. Dinda Data Sci. Inf. Technol. Data Anal., 2024, doi: 10.20895/dinda.v4i2.1582.

I. Oktavia and A. Isnain, “Analisis sentimen opini terhadap tools Artificial Intelligence (AI) berdasarkan Twitter menggunakan algoritma Naïve Bayes,” J. MEDIA Inform. BUDIDARMA, 2024, doi: 10.30865/mib.v8i2.7524.

H. Fakhrurroja, T. M. Chiqamara, F. Hamami, and D. Pramesti, “Sentiment analysis of local water company customer using Naive Bayes algorithm,” 2024 IEEE Int. Conf. Ind. 4.0, Artif. Intell. Commun. Technol., pp. 168–173, 2024, doi: 10.1109/IAICT62357.2024.10617472.

A. S. Wicaksono, “Twitter sentiment analysis of electric vehicle subsidy policy using Naïve Bayes algorithm,” J. Stat. Methods Data Sci., 2023, doi: 10.31258/jsmds.v1i1.3.

Downloads

Published

2025-03-31

How to Cite

Ira Zulfa, Eliyin Eliyin, Firmansyah Firmansyah, & Zikri Syah Dermawan. (2025). Sentiment Analysis of the Policy of Providing Contraceptive Provision Policy for Teenagers in PP Number 28 Year 2024 with Naïve Bayes Classifier Method on Twitter. International Journal of Electrical Engineering, Mathematics and Computer Science, 2(1), 17–27. https://doi.org/10.62951/ijeemcs.v2i1.241