The Halal Product Assurance Agency (BPJPH) is an agency under the auspices of the Ministry of Religion with the task of ensuring the halalness of products in Indonesia. BPJPH has become a public concern after establishing the new halal logo. On February 10, 2022 the new halal logo was ratified by the Head of BPJPH, Muhammad Aqil Irham. This has become a topic of public discussion either directly or through social media, one of which is social media twitter. The number of opinion tweets about the change of the halal logo can be used as a data source to obtain information about public opinion on the change of the halal logo through sentiment analysis. Sentiment analysis can be done by machine learning approach, one of these is the SVM algorithm . In this research, oversampling and undersampling are applied to handle data that has an unbalanced sentiment class. The results showed that the Support Vector Machine (SVM) model using oversampling training data got the highest accuracy, recall, precision, and f1-score, namely 71% accuracy, 67% precision, 61% recall, and 61% f1-score while training using undersampling training data has the lowest performance, namely getting 56% accuracy, 51% precision, 57% recall, and 52% f1-score.
                        
                        
                        
                        
                            
                                Copyrights © 2023