[Paper Review] A Study of Feature Extraction techniques for Sentiment Analysis
This study evaluates TF-IDF and Doc2Vec for sentiment analysis across five benchmark datasets using multiple classifiers. Doc2Vec outperformed TF-IDF on most datasets, especially in smaller, domain-specific reviews, with Logistic Regression and SVM-RBF showing the highest accuracy, demonstrating that distributed sentence representations enhance sentiment classification over traditional term-frequency methods.
Sentiment Analysis refers to the study of systematically extracting the meaning of subjective text . When analysing sentiments from the subjective text using Machine Learning techniques,feature extraction becomes a significant part. We perform a study on the performance of feature extraction techniques TF-IDF(Term Frequency-Inverse Document Frequency) and Doc2vec (Document to Vector) using Cornell movie review datasets, UCI sentiment labeled datasets, stanford movie review datasets,effectively classifying the text into positive and negative polarities by using various pre-processing methods like eliminating StopWords and Tokenization which increases the performance of sentiment analysis in terms of accuracy and time taken by the classifier.The features obtained after applying feature extraction techniques on the text sentences are trained and tested using the classifiers Logistic Regression,Support Vector Machines,K-Nearest Neighbours , Decision Tree and Bernoulli Nave Bayes
Motivation & Objective
- To evaluate the effectiveness of TF-IDF and Doc2Vec as feature extraction techniques in sentiment analysis.
- To assess how preprocessing steps like stopword removal and tokenization impact classification accuracy.
- To compare the performance of multiple classifiers—Logistic Regression, SVM, KNN, Decision Tree, and Bernoulli Naïve Bayes—when paired with each feature extraction method.
- To determine which feature extraction technique yields higher accuracy across diverse sentiment datasets of varying sizes.
- To provide empirical insights into the suitability of TF-IDF and Doc2Vec for real-world sentiment classification tasks.
Proposed method
- Applied TF-IDF with hyperparameters: max_df, use_idf, sublinear_tf, and stopword filtering.
- Used Doc2Vec with tuned hyperparameters: min_count, window size, vector size, negative sampling, workers, dm (0 for CBOW, 1 for Skip-gram), and epochs.
- Preprocessed text via tokenization and stopword removal before feature extraction.
- Trained and tested classifiers on five benchmark datasets: Cornell movie reviews, UCI sentiment-labeled, Stanford movie reviews, and larger datasets from Stanford and Cornell.
- Evaluated performance using accuracy as the primary metric, computed from a 2x2 contingency table of true positives, false positives, etc.
- Conducted comparative analysis across datasets of varying sizes to assess scalability and robustness of each method.
Experimental results
Research questions
- RQ1How do TF-IDF and Doc2Vec compare in terms of classification accuracy across diverse sentiment datasets?
- RQ2Which combination of preprocessing and feature extraction yields the highest sentiment classification accuracy?
- RQ3Which classifier performs best when used with TF-IDF versus Doc2Vec across different dataset sizes?
- RQ4Does Doc2Vec consistently outperform TF-IDF, especially in low-resource or domain-specific settings?
- RQ5How do hyperparameter settings in TF-IDF and Doc2Vec affect the final sentiment prediction performance?
Key findings
- Doc2Vec achieved higher accuracy than TF-IDF on four out of five datasets, particularly excelling on smaller, domain-specific datasets like Dataset-4 (99.98% accuracy with Logistic Regression).
- For Dataset-1 (1,500 reviews), Doc2Vec outperformed TF-IDF across all classifiers, with SVM-RBF achieving 86.86% accuracy compared to TF-IDF’s 75.14%.
- On Dataset-5 (large movie review dataset), TF-IDF slightly outperformed Doc2Vec, with Logistic Regression reaching 88.46% accuracy versus Doc2Vec’s 86.49%.
- Logistic Regression and SVM with RBF and linear kernels consistently achieved the highest accuracy across both feature extraction techniques, indicating their robustness for sentiment classification.
- In Dataset-2 (2,000 reviews), TF-IDF outperformed Doc2Vec, with SVM-RBF reaching 82.35% accuracy, while Doc2Vec achieved only 77.40%.
- The performance gap between methods varied by dataset size and domain, suggesting that Doc2Vec is more effective for fine-grained or context-sensitive sentiment analysis, while TF-IDF remains competitive on larger, general-purpose datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.