This project is designed to analyze and interpret dreams using pre-trained sentiment models and NLP techniques. It helps users gain insights into their dream patterns, emotions, and themes by analyzing the textual descriptions of their dreams. Historical data is also leveraged to provide a comprehensive understanding of an individual's dream tendencies.
- Dream Sentiment Analysis: Uses VADER for sentiment classification (
Positive,Neutral,Negative) and TextBlob for polarity and subjectivity analysis. - Dynamic Analysis: Updates historical data with new entries and integrates the analysis into insights.
- Data Visualization:
- Word Cloud: Highlights common words in dreams.
- Polarity Distribution: Displays the polarity of dreams on a scale.
- Subjectivity Distribution: Shows how subjective or objective the dreams are.
- Insights from Historical Data: Summarizes key dream patterns, such as average polarity, subjectivity, and most common themes.
All the dream descriptions used in this project were generated using Meta AI. These dream-like scenarios were synthetically created for the purpose of analysis and testing.
Acknowledgment: Special thanks to Meta AI for providing the technology to generate high-quality, dream-inspired descriptions.
- Clone the repository:
git clone https://github.com/hemangsharma/Dream-Analysis-Project
- Install required libraries:
pip install pandas nltk matplotlib seaborn textblob wordcloud
- Download necessary NLTK data:
import nltk nltk.download('punkt') nltk.download('stopwords') nltk.download('vader_lexicon')
- Run the notebook
main.ipynb. - Follow the prompts to enter new dream descriptions.
- View the analysis, including:
- Sentiment classification (
Positive,Neutral,Negative). - Polarity and subjectivity scores.
- Word Cloud for dream themes.
- Graphs showing polarity and subjectivity distributions.
- Sentiment classification (
- Review insights from historical data if available.
Below are examples of visualizations generated by the project:
A visualization of the most common words across all dreams:

The polarity distribution of dreams, showing whether dreams are generally positive, neutral, or negative:

The subjectivity distribution of dreams, indicating whether dreams are subjective (personal feelings) or objective:

Summarized insights derived from the historical dream data, such as:
- Average Polarity: Measures positivity/negativity.
- Average Subjectivity: Measures objectivity/subjectivity.
- Top Dream Themes: Highlights the most common words.

dream-analysis/
├── main.ipynb # Jupyter notebook for dream analysis
├── dream_records.csv # CSV file storing dream data
├── README.md # Project documentation
└── requirements.txt # List of required Python libraries
- Add clustering for grouping dreams into themes using advanced NLP techniques.
- Incorporate user profiling for personalized insights.
- Support for multilingual dream descriptions.
This project is licensed under the MIT License. See the LICENSE file for details.