Inspiration

The main inspiration for the bot were our own mental health issues plus the mental health issues of our fellow students. 11.7 percent of college students suffer from anxiety disorder and 6.7 percent of college students commit suicide every year. This bot is used to try to help those suffering with such mental health disorders by providing a caring chatbot to discuss their problems with.

What it does

DoctorBot is a discord bot that will listen in its respective discord server and whenever it is mentioned it will direct message the user and then prompt the user for what is ailing them. The bot provides individual anonymity as well as a feature to refer it to others that may need mental health counselling but are hesitant to finding a mental health professional.

How we built it

We used the OpenAI model named Davinci for its ability of complex intent analysis and creative text generation to be able to provide sincere responses. We then fed it information in the form of a string prompt telling the model that it is a chatbot therapist, listen to the users concerns, and refer them the right resources if needed.

Challenges we ran into

The biggest challenge we ran into was training the bot to provide the correct responses based on user input. At first, the bot would repeat itself and sound like a broken record even when the user tries to change the topic. The fix for this was to change the temperature, frequency penalties and presence penalties which change how stubborn the bot is to changing topics and text.

Accomplishments that we're proud of

We actually got a bot that will respond to the mental health needs of the user. When prompted with a suicidal user, the bot will comfort the user and then recommend local and national suicide hotline phone numbers. When prompted with a user that is wary about transitioning genders, the bot refers links to resources about transitioning and living as a transgender individual after transition. We are proud that we taught the bot to provide proper and seamless responses, it stays on topic very well and does not participate in controversial or over-sensitive topics.

What we learned

The main thing our team learned about is the manipulation and fine tuning of AI models. This was the most difficult learning process as the model we were using is highly complex. The debugging process was trying to converse with the bot and lead it in a certain direction and if we couldn't achieve the proper response we went back and changed the material it was fed. We also learned more about the full extent of the Discord.py API and its capabilities in the world of automation and innovation.

What's next for DoctorBot

We would like to scale it up and be able to publish it on discord bot websites as well as create databases to personalize the experience for every user. We would also like to utilize the GPT-3 AI model to further research mental health articles/resources to be able to accurately handle more intense mental health situations.

Built With

Share this project:

Updates