MoodSense AI is a sophisticated application that analyzes emotional states from text and offers personalized content suggestions. Leveraging advanced NLP techniques, it classifies text into 8 moods and recommends music, activities, films, and quotes, ensuring an immersive user experience.
MoodSense AI is an advanced, AI-based application designed to detect emotional states through natural language processing (NLP) and offer personalized content recommendations. By leveraging cutting-edge techniques, including TF-IDF, sentence embeddings, and ensemble machine learning models, this application effectively classifies user input into one of eight distinct moods: happy, sad, angry, anxious, neutral, excited, bored, or confused. It not only identifies emotions but also suggests relevant music, activities, movies, and quotes tailored to the user's mood.
MoodSense AI is built using a robust stack of technologies, including:
MoodSense AI offers distinct advantages over traditional sentiment analysis tools by:
The application seamlessly handles requests to analyze text and provide mood predictions along with tailored recommendations. Example usage includes sending a text for analysis, as demonstrated below:
curl -X POST "http://localhost:8000/predict" \
-H "Content-Type: application/json" \
-d '{"text": "I feel sad today", "include_recommendations": true, "include_explanation": true}'
The API returns detailed information about the mood detected, the confidence level, and personalized recommendations:
{
"text": "I feel sad today",
"mood": "sad",
"confidence": 0.89,
"all_probabilities": {
"sad": 0.89,
"anxious": 0.06,
"neutral": 0.03,
"happy": 0.01,
"angry": 0.01,
"bored": 0.00,
"confused": 0.00,
"excited": 0.00
},
"recommendations": {
"recommendations": [
{
"type": "music",
"title": "Fix You - Coldplay",
"url": "https://open.spotify.com/track/..."
},
{
"type": "activity",
"title": "Practice self-compassion",
"description": "Take a warm bath and be kind to yourself"
}
],
"strategy": "hybrid"
},
"explanation": "Based on your message, I detected a need for comfort and self-care."
}
MoodSense AI is poised for continuous improvement, with potential upgrades including:
For more information, a live demo, and further details, visit the MoodSense AI repository. This project exemplifies the intersection of technology and emotional intelligence, facilitating personal growth and well-being through its intelligent recommendations.
No comments yet.
Sign in to be the first to comment.