Sentiment analysis and prediction on twitter data using machine learning methods
2025
0 views
0 downloads
Advisor: Doç. Dr. Atınç Yılmaz
Abstract (EN)
In this study, an application capable of performing sentiment analysis on text-based data and making predictions using machine learning algorithms was developed. The application was implemented using the Python programming language. A randomly but homogeneously selected subset of 10,000 data points was used from a large dataset of English tweets obtained from the Kaggle platform. Of these data, 70% were allocated for training and 30% for testing, including only examples labeled with positive and negative sentiments. During the data preprocessing stage, URLs, special characters, emojis, and unnecessary words were removed, and words were reduced to their root forms. The cleaned data were converted into numerical vectors using the TF-IDF method and structured with n-gram techniques. The algorithms SVM, Random Forest, and Naive Bayes were applied individually, and hybrid models were also developed using methods such as PCA, Kmeans, and Chi-Squared. By utilizing the GridSearchCV method, the optimal parameters were determined, resulting in the creation of a total of nine different models. When the model performances were compared, it was observed that the hybrid models achieved higher accuracy rates compared to the individual models. The results demonstrated the effectiveness of machine learning algorithms in text mining and sentiment analysis. This study aims to contribute to future research by presenting various modeling strategies.
Author
Dr. Ali Kağan Çiftdemir
Institution
How to Cite
Ali Kağan Çiftdemir (Master Thesis). Sentiment analysis and prediction on twitter data using machine learning methods, 2025, İstanbul Beykent University.
Keywords
License
Tüm Hakları Saklıdır
This work is shared under the specified license terms.
More theses from İstanbul Beykent University
- Analysis of design process of Galataport: An entrance gate to Istanbul(2018)
- The relationship of living place perception and nature relatedness with psychological resiliency levels of adults(2020)
- Merging of income and monthly in the Turkish Social Security Law(2020)
- Investigation of the relationship between indecisiveness, resistance to change, and emotional self-efficiency in individuals aged 18-40(2022)
- The relationship between romantic relationships and depression in adulthood(2016)
- The effect of organizational cynicism and job satisfaction on organizational: A case study on banks employees(2017)
