The Wayback Machine - https://web.archive.org/web/20240910091556/https://www.geeksforgeeks.org/project-idea-ai-therapist/
Open In App

Project Idea | AI Therapist

Last Updated : 23 Nov, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Project Title : AI therapist

Introduction: Input is user provided description about how his day went in two-three lines. Using natural language processing, our program detects how user is feeling. He may be feeling depressed, feared, angry etc. Then a recommender system is used to show him content based on his current emotions. For example if user is feeling depressed, program will show him motivational thoughts, blogs etc.

Conceptual framework:
The project will be a combination of natural language processing and recommender system. The pipeline model built through NLP will put user input in any one of the classes ‘A’, ’B’, ’C’, ’D’ .
Class A: Anger
Class B: Minor Depression
Class C: Serious Depression
Class D: Fear
After this the recommender system will recommend quotes and speeches pertaining to a particular class in order to assist user.

Code:




import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
import string
from nltk.corpus import stopwords
  
#data is our input dataset containing user input lines and it has a column of emotional class. 
#The code will not work in IDE as no dataset has been provided
  
  
#function to remove punctuations and stopwords
def function_preprocess (mess):
    nopunc = []
    for char in mess :
        if char not in string.punctuation:
            nopunc.append(char)
    nopunc=''.join(nopunc)
    clean = []
    for word in nopunc.split():
        word = word.lower()
        if word not in stopwords.words('english'):
            clean.append(word)
    return clean
  
from sklearn.pipeline import Pipeline 
from sklearn.naive_bayes import MultinomialNB
from sklearn.feature_extraction.text import CountVectorizer as cv
from sklearn.feature_extraction.text import TfidfTransformer
  
#building our NLP model using naive bayes as classifier
pipeline = Pipeline([('bow', cv(analyzer=function_preprocess)),
                    ('tfidf', TfidfTransformer()),
                    ('classifier', MultinomialNB()),
                    ])
pipeline.fit(data, emotional_class)


Recommender system will be created using neighbour based collaborative filtering techniques as it would suggest the things which were helpful for similar users.

Tools Used:
1. Language used: Python
2. Algorithms : Collaborative filtering, Naive bayes, Natural Language Processing

Application:
1. Can be used to identify people suffering from depression, anxiety etc and at the same time help them too.
2. If user is suffering from depression, program will recommend him to visit a doctor and also inform his relatives about the same.
3. If user is often angry, program will suggest him tips for anger management.
4. This model will be helpful to psychiatrists and therapists for curing their clients.

Team members:
1. Abhay Gupta
2. Abhinav Tripathi



Similar Reads

Project Idea - Searching news from Old Newspaper using NLP
We know that the newspaper is an enriched source of knowledge. When a person needs some information about a particular topic or subject he searches online, but it is difficult to get all old news articles from regional local newspapers related to our search. As not every local newspaper provides an online search for people.In this article, we will
5 min read
Human Scream Detection and Analysis for Controlling Crime Rate - Project Idea
Project Title: Human Scream Detection and Analysis for Controlling Crime Rate using Machine Learning and Deep Learning Crime is the biggest social problem of our society which is spreading day by day. Thousands of crimes are committed every day, and still many are occurring right now also all over the world. A crime occurs in many faces, it can hap
6 min read
Project Idea | (Dynamic Hand Gesture Recognition using neural network)
Introduction Hand gesture recognition system is used for interfacing between computer and human using hand gesture. We wish to make a windows-based application for live motion gesture recognition using webcam input in C++. This project is a combination of live motion detection and gesture identification. This application uses the webcam to detect g
3 min read
Project Idea | Audio to Sign Language Translator
Overview Sign language is a visual language that is used by deaf people as their mother tongue. Unlike acoustically conveyed sound patterns, sign language uses body language and manual communication to fluidly convey the thoughts of a person. It is achieved by simultaneously combining hand shapes, orientation and movement of the hands, arms or body
4 min read
How to approach a Machine Learning project : A step-wise guidance
This article will provide a basic procedure on how should a beginner approach a Machine Learning project and describe the fundamental steps involved. In the problem, we will focus on the classification of iris flowers. You can learn about the dataset here. Many teachers and websites take up this problem to demonstrate the various nuances involved i
3 min read
Structure of Data Science Project
In this article, 5 phases of a data science project are mentioned - Questioning Phase: This is the most important phase in a data science project The questioning phase helps you to understand your data and decide on the type of analysis The results of some SQL queries would filter your data and answer your questions To extract data from bigger data
4 min read
Python - Eye blink detection project
In this tutorial you will learn about detecting a blink of human eye with the feature mappers knows as haar cascades. Here in the project, we will use the python language along with the OpenCV library for the algorithm execution and image processing respectively. The haar cascades we are going to use in the project are pretrained and stored along w
4 min read
Fundamental Steps For a Data Analytics Project Plan
It always seems hard to know where to start your data analytics project. At beginning of the projects, you always face some questions like What are the goals of the project? How to get familiar with the Data? What are the problems you’re trying to solve? What can be the possible solution? Which skills are required? How will you evaluate your model
5 min read
5 Deep Learning Project Ideas for Beginners
Well, irrespective of our age or domain or background knowledge some things succeed in fascinating us in a way such that we're so motivated to do something related to it. Artificial Intelligence is one such thing that needs nothing more than just a definition to attract anyone and everyone. To be precise, Artificial Intelligence is the godfather. I
6 min read
10 Best Artificial Intelligence Project Ideas To Kick-Start Your Career
It is quite known to everyone how Artificial Intelligence and Machine Learning are dominating the tech world in the present-day scenario. And you might be pretty much aware that both Artificial Intelligence and Machine Learning are interdependent in some way or the other. Though a lot of theoretical stuff is being written on the different aspects o
9 min read
How to Upload Project on GitHub from Google Colab?
If you want to create a machine learning model but say you don’t have a computer that can take the workload, Google Colab is an open-source platform for you. Even if you have a GPU or a good computer creating a local environment with anaconda and installing packages and resolving installation issues are a hassle.Colaboratory is a free Jupyter noteb
2 min read
Emotion Based Music Player - Python Project
In this article, we will be discussing how can we recommend music based on expressions or say dominant expressions on someone's face. This is a basic project in which we will be using OpenCV, Matplotlib, DeepFace, and Spotify API. Import Packages and ModulesOpenCV: OpenCV is a Python open-source package used for computer vision, machine learning, a
6 min read
10 NLP Project Ideas For Beginners
Machine Learning is a hastily growing area, and Natural Language Processing (NLP) is one of its most exciting and promising branches. NLP makes a specialty of permitting computer systems to recognize, interpret, and generate human language, and it performs an essential function in various programs like sentiment analysis, chatbots, language transla
7 min read
Project - How to build a Resume Parser using Python
A Resume Parser is a valuable tool for HR professionals and organizations looking to streamline their recruitment process. It automates the extraction of key information from resumes, making it easier to manage and analyze candidate data. These are helpful in shortlisting candidates based on certain criteria without the hectic task of going through
3 min read
Project | Scikit-learn - Whisky Clustering
Introduction | Scikit-learn Scikit-learn is a machine learning library for Python.It features various classification, regression and clustering algorithms including support vector machines, random forests, gradient boosting, k-means and DBSCAN, and is designed to interoperate with the Python numerical and scientific libraries NumPy and SciPy.Learn
4 min read
Project | kNN | Classifying IRIS Dataset
Introduction | kNN Algorithm Statistical learning refers to a collection of mathematical and computation tools to understand data.In what is often called supervised learning, the goal is to estimate or predict an output based on one or more inputs.The inputs have many names, like predictors, independent variables, features, and variables being call
8 min read
EcoSight : An Ecotech Geek-A-Thon project, One step towards sustainability
Introducing the EcoSight Analytics by our team for the GeeksforGeeks EcoTech Hackathon. Our project combines a carbon footprint calculator, emission reduction tips, satellite image classification, and air quality index analysis empowering users to make informed decisions for a sustainable future. With interactive visualizations and a technology sta
15+ min read
Top 10 Tableau Project Ideas For Data Science[2024]
If you are new to the field of Data Science, it can be exciting yet challenging. To make this more accessible for beginners, one of the powerful tools is Tableau. Tableau is easy to use and powerful and using this, you can create a beautiful dashboard and understand your data better. In this article, we are going to talk about 10 simple Tableau pro
9 min read
Top 10 Data Visualization Project Ideas in 2024
Nowadays excellent data visualization skills are high in demand in the IT industries. Data visualization refers to the graphical representation of information and data. It is the practice of translating information into a visual context such as a graph or map to make data easier for the human brain to understand and get the important information fr
8 min read
Top 10 Machine Learning Project Ideas That You Can Implement
Machine Learning is one of the most popular emerging technologies in current times! And the best way to learn this technology is by doing projects. Other options like online courses, reading books, etc. only help in understanding the basics of ML, but it is only possible to truly learn the subject by doing projects with real-world data. This articl
8 min read
How to Create a Data Science Project Plan?
Just as every adventurous journey requires a strategy to reach its destination, every data science project requires a strategic approach to achieve its objectives. In an adventurous journey, you need to plan your route, consider potential obstacles, and determine the best course of action to reach your destination safely and efficiently. Similarly,
9 min read
The Project Manager role in Data Science
Data science is often misunderstood even though it seems exciting at first. It can impact many industries in our daily lives. Organizations often struggle to implement effective project management practices in data science. That’s where the role of a data science project manager comes into play. A Project Manager in Data Science can help drive succ
12 min read
Django - Machine Learning Placement Prediction Project
In this article, we will create  Placement Prediction Project using the Django framework using Python. In this project, we are using logistic regression algorithm of Python machine learning to predict the Placement of students by observing the input values filled by students according to their study background. Placement Prediction Project in Djang
7 min read
Stock Price Prediction Project using TensorFlow
In this article, we shall build a Stock Price Prediction project using TensorFlow. Stock Market price analysis is a Timeseries approach and can be performed using a Recurrent Neural Network. To implement this we shall Tensorflow. Tensorflow is an open-source Python framework, famously known for its Deep Learning and Machine Learning functionalities
5 min read
Machine Learning Diabetes Prediction Project in Django
In this article, we will create Diabetes Prediction Project using the Django framework using Python. In this project, we are using a logistic regression algorithm of Python machine learning to predict Diabetes diseases in a person by observing the input values filled by the person according to their health. Diabetes Prediction Project in Django Bas
8 min read
Machine Learning Heart Disease Prediction Project in Django
Introduction-In this article, we will implement a Machine Learning Heart disease Prediction Project using the Django framework using Python. Here, we will convert the code of the heart diseases prediction into a web form with the help of the Django framework basically we will create a form by using the Django framework and add the dataset of heart
9 min read
How to structure a PyTorch Project
Structuring your PyTorch projects effectively is crucial for maintainability, scalability, and collaboration. Proper project structuring ensures that your code is organized, understandable, and easy to maintain. Deep learning and machine learning are commonly performed using the open-source PyTorch framework. To define, train and use neural network
10 min read
10 Data Analytics Project Ideas
With Data replacing everything, the art of analyzing, interpreting, and deriving use from the presented data has become a necessity in all spheres of business. The Exploration of Data Analytics Project Ideas helps as a practical avenue for applying analytical concepts, driving personal growth and organizational success in today's data-driven landsc
13 min read
Excel Project for Data Analysis: The Six Steps Approach
Excel is a powerful tool that Data Analysts use to transform raw data into actionable insights, aiding decision-making and business success. Analysts play a detective-like role, identifying patterns and interpreting trends to convey complex data in a straightforward manner. In this tutorial, we will develop a project aimed at analysing Indian Citie
9 min read
Multilingual Google Meet Summarizer - Python Project
At the start of 2020, we faced the largest crisis of the 21st century - The COVID-19 pandemic. Amidst the chaos, the generation eventually found a way to get the job done by introducing automation in every other aspect of life. After the hit of the pandemic, we have encountered a rise of 87% in video conferencing tools for daily communications. The
6 min read