Classification and visualization: Twitter sentiment analysis of Malaysia’s private hospitals

Khyrina Airin Fariza Abu Samah, Nur Maisarah Nor Azharludin, Lala Septem Riza, Mohd Nor Hajar Hasrol Jono, Nor Aiza Moketar


Malaysia has many private’s hospitals. Thus, feedback is important to improve service quality, becoming reviews for other patients. Reviews use the channel service provided on social media, such as Twitter. Nevertheless, online reviews are unstructured and enormous in volume, which leads to difficulties in comparing private hospitals. In addition, no single websites compare private hospitals based on users’ interests, bilingual reviews, and less time-consuming. Due to that, this study aims to classify and visualize the Twitter sentiment analysis of private hospitals in Malaysia. The scope focuses on five factors: 1) administrative procedure, 2) cost, 3) communication, 4) expertise, and 5) service. Term frequency-inverse document frequency is used for text mining, information retrieval techniques, and the Naïve Bayes, a machine learning algorithm for the classification. The user can visualize the specified state’s private hospitals and compare them with any selected state. The system’s functionality and usability have been tested to ensure it meets the objectives. Functionality testing proved that the private hospital’s Twitter sentiment could be predicted based on the training and testing data as intended, with 77.13% and 77.96% accuracy for English and Bahasa Melayu, respectively, while the system usability scale based on the usability testing resulted in an average final score of 95.42%.


Classification; Data visualization; Naïve Bayes; Twitter sentiment analysis

Full Text:




  • There are currently no refbacks.

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

IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938 
This journal is published by the Institute of Advanced Engineering and Science (IAES) in collaboration with Intelektual Pustaka Media Utama (IPMU).

View IJAI Stats