Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

EmotionDetection_AI

EmotionDetection_AI is a simple AI-powered sentiment and emotion detection system built using Python and Natural Language Processing (NLP).

sentiment-analysis emotion-detection nlp python textblob artificial-intelligence machine-learning text-analysis natural-language-processing

image

The project analyzes user text input, detects emotional tone, and predicts emotions such as:

  • Very Happy
  • Happy
  • Neutral
  • Sad
  • Very Sad

using sentiment polarity analysis.


Features

  • Real-time emotion detection
  • Sentiment analysis using NLP
  • Confidence score calculation
  • Continuous user interaction loop
  • Lightweight and beginner-friendly AI project

Technologies Used

  • Python
  • TextBlob
  • Natural Language Processing (NLP)

Library Used

TextBlob

TextBlob is a Python NLP library used for:

  • sentiment analysis
  • text processing
  • polarity detection
  • language analysis

The library analyzes the emotional tone of text and returns a polarity score between:

-1  → Very Negative
 0  → Neutral
+1  → Very Positive

Project Structure

EmotionDetection_AI/
│
├── emotion_detectect.py
└── README.md

Installation

1. Clone Repository

git clone https://github.com/ayaan-2008/EmotionDetection_AI.git

2. Open Project Folder

cd EmotionDetection_AI

3. Install Required Library

pip install textblob

Run The Project

python emotion_detectect.py

Example Usage

=== Emotion Detection AI ===

Enter text (or type 'exit'): I am feeling amazing today!

Detected Emotion: Very Happy
Confidence Score: 80.0 %

How It Works

The system follows these steps:

  1. Takes user text input
  2. Processes text using TextBlob
  3. Calculates sentiment polarity
  4. Maps polarity to an emotion category
  5. Displays emotion with confidence score

Emotion Classification Logic

Polarity Score Emotion
> 0.5 Very Happy
> 0 Happy
= 0 Neutral
> -0.5 Sad
<= -0.5 Very Sad

AI Concepts Used

  • Sentiment Analysis
  • Natural Language Processing
  • Text Classification
  • Emotion Detection
  • Polarity Scoring

Future Improvements

  • GUI Interface
  • Voice-based emotion detection
  • Emoji prediction
  • Multi-language support
  • Deep Learning emotion analysis
  • Facial emotion recognition

Author

AYAAN Developed as a Python AI/NLP project for real-time emotion detection using sentiment analysis.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages