Decoding Dreams and Thoughts using AI Sentiment Analysis
Mahdi Hasanzadeh
Decoding Dreams and Thoughts using AI Sentiment Analysis.
Rel. Valeria Chiado' Piat, Vito De Feo. Politecnico di Torino, Master of science program in Data Science And Engineering, 2025
|
Preview |
PDF (Tesi_di_laurea)
- Thesis
Licence: Creative Commons Attribution Non-commercial No Derivatives. Download (5MB) | Preview |
Abstract
Understanding and classifying the emotional content of dream descriptions is a unique challenge that sits between psychology and natural language processing. This thesis tackles this issue by creating a machine learning pipeline that can automatically predict sentiment labels from free-text dream narratives. The main method uses handcrafted lexical-semantic features for sentiment classification. Specifically, Term Frequency–Inverse Document Frequency (TF-IDF) extracts lexical patterns, while Empath, a psychologically grounded lexicon, provides high-level semantic signals. To address extreme class imbalance in the labeled data, a targeted resampling strategy based on SMOTE is used to ensure balanced representation across all sentiment categories. A Multi-Layer Perceptron (MLP) classifier is trained on the engineered features and evaluated using both 5-fold stratified cross-validation and Leave-One-Out Cross-Validation (LOOCV).
The model achieves a high accuracy of 86\% and strong macro F1-scores across folds and samples
Publication type
URI
![]() |
Modify record (reserved for operators) |
