Skip to content

Latest commit

History

History
82 lines (58 loc) 路 2.79 KB

File metadata and controls

82 lines (58 loc) 路 2.79 KB

Emotion Detection from Text

Project Overview

Moodify: Emotion Analysis through Deep Learning

This innovative project uses the latest machine learning techniques to detect and classify emotions from text data. By leveraging neural network architectures such as LSTM and BiLSTM, we have developed a robust solution for understanding emotions in text.

Key Objectives

  • Develop an intelligent emotion classification system
  • Analyze text data using state-of-the-art deep learning models
  • Provide insights into emotional context of text

Dataset Composition

Our dataset comprises Twitter messages meticulously labeled with five primary emotional categories:

Emotion Description
馃槩 Sadness Expressions of grief, sorrow, or melancholy
馃槃 Happiness Texts conveying joy, pleasure, or excitement
馃槧 Anger Messages expressing frustration or irritation
馃槹 Worry Texts indicating anxiety or concern
馃帀 Enthusiasm Energetic and passionate communications

Dataset Source: Emotion Classification Dataset

Key Features

  • Advanced emotion classification using deep learning
  • Comprehensive text preprocessing and cleaning
  • Balanced dataset through intelligent downsampling
  • Detailed visualizations of word frequencies
  • Flexible and trainable neural network models

Technology Stack

TensorFlow Python Keras

Required Libraries

  • TensorFlow
  • Matplotlib
  • NumPy
  • Seaborn
  • NLTK
  • WordCloud
  • Scikit-learn

Model Architectures

1. LSTM Model

  • Embedding Layer: Transforms text into dense vector representations
  • Dropout Layer: Prevents overfitting
  • LSTM Layer: Captures sequential dependencies
  • Dense Layer: Emotion classification with softmax activation

2. BiLSTM Model

  • Embedding Layer: Text vectorization
  • Spatial Dropout: Advanced regularization
  • Bi-directional LSTM: Captures context from both directions
  • Dense Layer: Multi-class emotion prediction

Performance Metrics

Model Training Accuracy Validation Accuracy
LSTM 92.12% 89.99%
BiLSTM 93.67% 90.68%

Model Visualizations

Future Improvements

  • Expand emotion categories
  • Implement transfer learning