Classification of Bullying Comments on YouTube Streamer Comment Sections Using Nayve Bayes Classification Ahlida Nikmatul H1*. Didih Rizki C2. Christian S. Aditya3 123Universitas Muhammadiyah Malang. Malang. Indonesia Email: ahlida27@gmail. com, 2didihkrizki@umm. id, 3christianskaditya@umm. Abstract One of the social media crimes that is rampant in the current era is cyberbullying. Cyberbullying is a form of intimidation by someone to harass other people using technological devices. this research uses a design for information decision making that aims to get the expected results. the data collection process is carried out manually with a time frame of 1 week by watching the live broadcast of the online game YouTube streamer then sorting out some bullying and non-bullying comments in the commentAos column. Data labeling is done manually. The data obtained amounted to 1000 with 500 negative comments and 500 positive comments. The above test can be concluded that from the distribution of test data there are 90% - 10% have results that are superior to the results of other tests with an increase of 4% in the Nayve Bayes weighting Gain Ratio method. Based on the test data, the results of precision, recall. F1-score and accuracy of the Nayve Bayes classification method are The test analysis above can be concluded that from the distribution of test data, 90% - 10% have results that are superior to other test results with a 4% increase in the Nayve Bayes weighting Gain Ratio method. The existence of increased accuracy results is due to a randomized data processing process. Keywords: Cyberbullying. Mobile Legends Bang-Bang. Naive Bayes. Gain Ratio Introduction One of the social media crimes that is rampant in the current era is cyberbullying. Cyberbullying is a form of intimidation by someone to harass another person using technological devices. The perpetrators of cyberbullying attack the victim's mentality and mind, so it is not uncommon for victims to become depressed and lack confidence, even suicidal. In general, the perpetrators of cyberbullying actions are carried out on YouTube live streaming, it is not uncommon for these actions to attack someone's profession, the profession is an eSport athlete. Bullying and harassment have become pervasive problems in the online world, and social media platforms such as YouTube are not immune to this phenomenon. YouTube comment sections, in particular, have become a breeding ground for negative and abusive comments, which can have a significant impact on the mental health and well-being of streamers and their audiences. As such, there is a pressing need to develop effective tools for identifying and addressing bullying behavior in online communities. This research paper focuses on the problem of classifying bullying comments on YouTube streamer comment sections using Nayve Bayes classification. Nayve Bayes is a simple but powerful classification algorithm that is widely used in text classification tasks. , . The algorithm works by assuming that the features . n this case, the words used in the comment. are independent of each other, and then calculating the probability that a comment belongs to a particular class . ullying or non-bullyin. based on the occurrence of these features. Ae. The goal of this research is to develop a Nayve Bayes classifier that can accurately detect and classify bullying comments on YouTube streamer comment sections. To achieve this, we will collect a dataset of comments from various YouTube streamer comment sections, and manually annotate each comment as either bullying or non-bullying. We will then use this dataset to train and evaluate the Nayve Bayes classifier, using various metrics such as accuracy, precision, recall, and F1-score. The results of this research will have important implications for addressing bullying behavior on YouTube and other online platforms. By developing an effective and accurate classifier for bullying comments, we can help streamers and their audiences to identify and address this harmful behavior, and create a more positive and supportive online community. Method At the method stage, this research uses a design for information decision making that aims to get the expected The stages of this research method design are contained in Figure 1 which includes data collection, preprocessing. TF-IDF. Gain Ratio. Nayve Bayes, and model evaluation. Accepted by editor: 30-03-2023 | Final revision: 31-03-2023 | Online publication: 31-03-2023 Ahlida Nikmatul H. Didih Rizki C. Christian S. Aditya Journal of Systems Engineering and Information Technology (JOSEIT) Vol. 2 No. Figure 1. Research Design 1 Data Collection In the data collection process, it is done manually with a time frame of 1 week by watching live broadcasts of online game YouTube streamers and then sorting out some bullying and non-bullying comments in the commentAos column. Data labeling is done manually. The data obtained amounted to 1000 with 500 negative comments and 500 positive comments. The data sources obtained are some of the Mobile Legends YouTube channels: Bang Bang Official. Pascol Kintil. XIn and several existing online game sites. In the process of retrieving comment data, 1000 comment data is obtained, data labeling is carried out using the Lexicon Based method on negative 500 comment data and positive 500 comments. The data obtained will be stored in the form of an excel file and converted into a CSV file. 2 Preprocessing Preprocessing is the initial stage that prepares data before use with the aim of obtaining structured and clear data processes so as to produce information of good quality and ready to use. Case Folding = At this stage, make changes to uppercase words equalized to lowercase letters. Tokenizing = At this stage, remove punctuation marks and symbols so that weighting can be done. example of tokenizing changes below. Stopword Removal = At this stage, stopword removal is responsible for removing words that are not important in the document, such as conjunctions, pronouns and so on. Steamming = At this stage, the process of converting affixed words into basic words is carried out. 3 TF-IDF After doing the preprocessing stage, we can continue to do the TF-IDF stage to get the weight value for each document . The following is the flow of explanation of the TF-IDF stage: Prepare the data results that have been processed at the preprocessing stage. TF (Term Frequenc. process is carried out on each word contained in the document. Performing the IDF (Inverse Document Frequenc. stage to calculate the availability of terms in the Then perform the calculation of the TF-IDF value. Output data from the TF-IDF calculation. The results of the TF-IDF stage process get data that already has a weight value for each word contained in the document. After doing the TF-IDF stage, the next process is the gain ratio. 4 Gain Ratio After the preprocessing stage is carried out, then the Gain Ratio feature selection is carried out. Gain Ratio is an attribute weighting technique that is generally used in the Decision Trees method. This feature selection has a big effect on the prediction process and this feature also selects based on the Gain Ratio value ranking. So, the greater the value of the gain ratio can be a big influence on the prediction process. The following is the flow of Gain Ratio weighting: DOI: https://doi. org/10. 29207/joseit. Ahlida Nikmatul H. Didih Rizki C. Christian S. Aditya Journal of Systems Engineering and Information Technology (JOSEIT) Vol. 2 No. Calculate the Entropy value of each feature contained in each document. Calculating the Information Gain value for each feature contained in each document. Calculating the Split Information value of each feature contained in each document. Calculating the Gain Ratio value of each feature contained in each document. Sort the position of the value contained in the Gain Ratio and collect features that have an influence on the prediction results. 5 Nayve Bayes After performing the preprocessing stage by weighting the Gain Ratio. Then the classification is carried out using the Nayve Bayes method . The following is the flow of Nayve Bayes classification: After the preprocessing stage process is carried out using the Gain Ratio weighting stage. Calculate the probability value contained in the training data. After calculating the Nayve Bayes probability, it is stored for testing on test data. Next, calculate the probability value of the sentiment data to be tested. Result and Discussion This discussion explains the results of the application of the design that has been obtained in the previous chapter and the testing of the research that has been made using the method and phase according to the discussion in the previous chapter. In this test evaluation, we compare by splitting the data 3 times, namely 90% - 10%, 80% 20% and 70% - 30%. From these 3 tests, we can find out which test is the best for classification. Based on the test data, we get the results of precision, recall. F1-score and accuracy of the Nayve Bayes classification method. In the first test using 90% - 10% split data, the confusion matrix obtained positive precision results of 82% and negative precision of 78%, positive recall of 77% and negative recall of 83%, positive F1-score of 79% and negative F1-score of 81%, and accuracy of 80%. In the second test using split data 80% - 20%, the confusion matrix obtained positive precision results of 81% and negative precision of 77%, positive recall of 76% and negative recall of 82%, positive F1-score of 78% and negative F1-score of 80%, and accuracy of 79%. In the third test using split data 70% - 30%, the confusion matrix obtained positive precision results of 77% and negative precision of 74%, positive recall of 72% and negative recall of 78%, positive F1-score of 74% and negative F1-score of 76%, and accuracy of 75%. Table 1. Nayve Bayes Test Results Precision% Recall % FI-score % Ratio Accuracy % Positive Negative Positive Negative Positive Negative Nayve 90%-10% Bayes 80%-20% 70%-30% Based on the test data, the results of precision, recall. F1-score and accuracy of the Nayve Bayes classification method are obtained. In the first test using 90% - 10% split data, the confusion matrix obtained positive precision results of 86% and negative precision of 82%, positive recall of 81% and negative recall of 87%, positive F1-score of 83% and negative F1-score of 84%, and accuracy of 84%. In the second test using 80% - 20% split data, the confusion matrix obtained positive precision results of 83% and negative precision of 81%, positive recall of 80% and negative recall of 86%, positive F1-score of 82% and negative F1-score of 84%, and accuracy of 83%. In the third test using split data 70% - 30%, the confusion matrix obtained positive precision results of 79% and negative precision of 76%, positive recall of 74% and negative recall of 80%, positive F1-score of 76% and negative F1-score of 78%, and accuracy of 77%. Table 2. Nayve Bayes Weighting Gain Ratio Test Results Precision % Positive Negative Recall % Positive Negative FI-score % Positive Negative 90%-10% 80%-20% 70%-30% Ratio Nayve Bayes Weighting Gain Ratio Accuracy % From the test analysis above, it can be concluded that from the distribution of test data, 90% - 10% have results that are superior to other test results with a 4% increase in the Nayve Bayes weighting Gain Ratio method. The existence of increased accuracy results is due to a randomized data processing process. DOI: https://doi. org/10. 29207/joseit. Ahlida Nikmatul H. Didih Rizki C. Christian S. Aditya Journal of Systems Engineering and Information Technology (JOSEIT) Vol. 2 No. Conclusion In this study, which discusses the occurrence of bullying in the YouTube streamer column using the Nayve Bayes method with Gain Ratio weighting has tested 3 times. From these tests, using the Nayve Bayes method obtained an accuracy result of 80%, then the Nayve Bayes method with Gain Ratio weighting obtained a result of 84%, there was an increase in accuracy of 4%. With this research that Gain Ratio weighting is an effective method to be able to optimize accuracy results with a combination of the Nayve Bayes method. References