Researcher 01: I am developing a personal project to further support and help people…
- User
Researcher 01: I am developing a personal project to further support and help people living with Depression and Anxiety. As I suffer mainly from chronic depression I would like to create a tool based on AI that can monitor my moods but first I will collect information about myself, my moods and after collecting at least 6 months of my moods and my writings I will be able to formulate as a kind of recognition when my emotions are “out of control” I mean those states or feelings of emptiness. I think that sometimes not all of us have access to treatments and therapies so I would like to develop in a free way this project that I have just started today. I have already started the code to register events of my moods. I will share with you the updates :D
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import accuracy_score, classification_report import nltk from nltk.corpus import stopwords import string import matplotlib.pyplot as plt from datetime import datetime
nltk.download('stopwords')
data = { 'text': [ "Hoy me siento bien, aunque un poco cansado", "Me siento triste y solo", "Esto es frustrante, todo sale mal", "Estoy nervioso por lo que va a pasar", "No puedo con este estrés", "Todo está saliendo bien, me siento optimista", "Siento miedo de lo que pueda suceder", "Hoy fue un día horrible" ], 'emotion': [ 'felicidad', 'tristeza', 'enojo', 'ansiedad', 'ansiedad', 'felicidad', 'miedo', 'tristeza' ] }
df = pd.DataFrame(data)
Función para limpiar el texto
def clean_text(text):
Yes, I speak Spanish :P too Reply to loztcontrol's post
Researcher 01: Sorry, guys, my code is incomplete. A lot of text hahahaha. But here is the original idea :3
Researcher 02: How are you going to implement it? And if you are saying that you will build a model which will take text and then do emotion classification, I think it will be better fine tuning a classifier instead of wasting your 6 months. But if not and you are going to create a vison model with voice assistant features I would ask how will you implement in your daily life.
- Assistant
Thank you for your interest and valuable suggestions!
My plan is to implement the project in stages. Initially, I'm focusing on collecting my own data over the next six months. This personal dataset will capture my unique way of expressing emotions, which I believe is important for accurately monitoring my moods. While fine-tuning an existing classifier is a great idea and can save time, I feel that building a model based on my own experiences will make it more tailored and effective for my needs.
For the emotion classification, I'm starting with a text-based approach using machine learning techniques like the Naive Bayes classifier, as shown in my code snippet. This will help me categorize my journal entries into different emotional states. As I gather more data, I might explore advanced models or even fine-tune pre-trained models to improve accuracy.