Lyra AI – AI-Powered Companion for Mental Wellness
An AI-powered web application that analyzes user emotions, tracks mood history, and provides real-time sentiment insights using Natural Language Processing.
June 2026• Team: Personal Project• Role: AI & Full Stack Developer
Lyra AI is a web-based mental wellness platform that leverages Artificial Intelligence and Natural Language Processing to help users understand and monitor their emotional well-being. The application analyzes user input using TextBlob and NLTK to detect sentiment in real time, categorizing emotions as positive, neutral, or negative. Mood history is securely stored with timestamps, enabling users to visualize emotional trends while ensuring complete privacy through local data storage.
Tech Stack
Python
Flask
HTML
CSS
JavaScript
NLTK
TextBlob
Pandas
Tools Used
PyCharm
Git
CSV
Flask
Key Features
Core Features
▸Emotion Detection: Analyzes user text in real time to classify emotions as positive, negative, or neutral using Natural Language Processing.
▸Mood History Tracking: Stores emotional states with timestamps, allowing users to monitor mood trends and personal well-being over time.
▸Privacy-Focused Design: Keeps all user data stored locally, ensuring confidentiality without relying on external cloud services.
Architecture & Technology
▸AI-Powered Sentiment Analysis: Utilizes TextBlob and NLTK to process natural language and generate accurate sentiment predictions.
▸Flask Backend: Implements a lightweight backend for handling requests, processing user input, and managing mood history.
▸Interactive Web Interface: Built using HTML, CSS, and JavaScript to provide an intuitive and responsive user experience.
Learning Outcomes
▸Natural Language Processing: Gained practical experience with sentiment analysis, text preprocessing, and emotion classification.
▸Full-Stack Development: Integrated Flask backend with a responsive frontend to build a complete AI-powered web application.
▸Data Analytics: Learned to manage and analyze mood history using Pandas and structured CSV datasets.
Highlights
Sentiment Analysis
Mood Tracking
NLP
Mental Wellness
Installation
Clone the Repository
git clone <YOUR_GITHUB_REPOSITORY>
cd lyra-ai
Install Dependencies
pip install -r requirements.txt
Run the Flask Server
python app.py
Access the Application
Open http://localhost:5000 in your browser.
Challenges & Solutions
Challenge
Accurately identifying user emotions from free-form text.
Solution
Integrated TextBlob and NLTK to preprocess user input and perform sentiment analysis, enabling reliable classification of positive, negative, and neutral emotions.
Challenge
Maintaining a history of user emotions without compromising privacy.
Solution
Designed a lightweight local storage system using CSV files and timestamps, allowing users to review their emotional trends while keeping all data on their device.
Challenge
Combining AI processing with an interactive web application.
Solution
Developed a Flask backend to handle sentiment analysis while creating a responsive frontend using HTML, CSS, and JavaScript for seamless user interaction.
Challenge
Presenting emotional insights in a meaningful way.
Solution
Structured mood records chronologically and utilized Pandas for efficient data handling, making emotional patterns easier to analyze and interpret.