Proceedings of the 2nd International Seminar of Science and Applied Technology (ISSAT 2021)

Implementation of Naive Bayes Algorithm on Sentiment Analysis Application

Authors
Martiti1, *, Christina Juliane1
1Informatics Engineering Department, STMIK AMIK Bandung, Indonesia
*Corresponding author. Email: martiti@stmik-amikbandung.ac.id
Corresponding Author
Martiti
Available Online 23 November 2021.
DOI
10.2991/aer.k.211106.030How to use a DOI?
Keywords
Opinion; sentiment; Pre-processing; TF-IDF; Naïve Bayes; Zero-R; Weighted Instance; Sastrawi
Abstract

Natural Language Processing (NLP) is one of the branches of artificial intelligence science where this branch science is the basis for developing sentiment analysis. The application in NLP in sentiment analysis includes Pre-processing text consisting of featured selection and tokenization. For the classification process, the determination of the algorithm is determined by comparing the results of the classification predictions of naïve Bayes, Weighted Instances, and Zero-R with the data that has been calculated for its frequency terms. The results of the testing analysis showed naïve Bayes had a stable accuracy after being tested with an accuracy value of 99.62% in the training data and 94% in the Testing Data, with an average classification failure of 0.13%. The results of the acquisition of words are used as a corpus for the construction of sentiment-level sentence analysis applications. The application development by the Naive Bayes algorithm was built using the PHP programming language and literary library. The method of application development using the waterfall starts from the analysis process to the application implementation. Based on testing the accuracy of 30 comments classified by the system, it produces an accuracy value of 86.66%. However, the accuracy of comments that have been classified as applications were retested using machine learning Weka which resulting in an accuracy value of 93.33%. The difference in accuracy is due to the Naive Bayes algorithm in utilizing the appearance of words to form a sentiment classification.

Copyright
© 2021 The Authors. Published by Atlantis Press International B.V.
Open Access
This is an open access article under the CC BY-NC license.

Download article (PDF)

Volume Title
Proceedings of the 2nd International Seminar of Science and Applied Technology (ISSAT 2021)
Series
Advances in Engineering Research
Publication Date
23 November 2021
ISBN
978-94-6239-451-3
ISSN
2352-5401
DOI
10.2991/aer.k.211106.030How to use a DOI?
Copyright
© 2021 The Authors. Published by Atlantis Press International B.V.
Open Access
This is an open access article under the CC BY-NC license.

Cite this article

TY  - CONF
AU  - Martiti
AU  - Christina Juliane
PY  - 2021
DA  - 2021/11/23
TI  - Implementation of Naive Bayes Algorithm on Sentiment Analysis Application
BT  - Proceedings of the 2nd International Seminar of Science and Applied Technology (ISSAT 2021)
PB  - Atlantis Press
SP  - 193
EP  - 200
SN  - 2352-5401
UR  - https://doi.org/10.2991/aer.k.211106.030
DO  - 10.2991/aer.k.211106.030
ID  - 2021
ER  -