Public assessments are essential for evaluating hospital quality and meeting patient demand for superior medical treatment. This study offers a novel approach to aspect-based sentiment analysis (ABSA), which consists of aspect extraction, emotion categorization, and aspect classification. The goal is to examine patient reviews (6,711 reviews) from Google assessments of 20 Indonesian hospitals, broken down by categories including cost, doctor, nurse, and other categories. For example, there are 469 good, 66 negative, and 7 neutral ratings for cleanliness and 93 positive, 125 negative, and 19 neutral reviews for pricing in the sample, which covers a range of attitudes. Using the Conditional Random Field (CRF) approach, aspect phrase extraction was refined and word characteristics and positional tags were adjusted, resulting in an improvement in the F1-score from 0.9447 to 0.9578. The Support Vector Machine (SVM) model had the greatest F1-score of 0.8424 out of two strategies used for aspect categorization. With the addition of sentiment words, sentiment classification improved and led by SVM to an ideal F1-score of 0.7913. For aspect and sentiment classification, a Weighted Average Ensemble approach incorporating SVM, Naïve Bayes, and K-Nearest Neighbors was employed, yielding F1-scores of 0.7881 and 0.8413, respectively. The use of an ensemble technique for sentiment and aspect classification and the incorporation of hyperparameter optimization in CRF for aspect term extraction, which led to notable performance gains, are the innovative aspects of this work.
                        
                        
                        
                        
                            
                                Copyrights © 2024