Close
0%
0%

EMOJO Mental Health Chatbot

A Visual Chatbot for your Mental Health ,made using Raspberry Pi and F.R.I.E.N.D.S Corpus

Public Chat
Similar projects worth following
Nearly 1 out of 5 people are suffering from some kind of Mental Health Issues, these numbers have drastically increased since the start of pandemic. According to researchers watching a movie/series helps for Mental Health. It has huge impact on our brain function, social connections, productivity and creativity. And having your close people near you to understand your problems you is difficult during this pandemic.
To solve this issue we have created a Visual Chatbot which responds with Voice and Emotions. This chatbot will help Users as a Virtual Friend which will chat with him/her and also show his emotions with help of Emojis. Currently there is no such device which helps user in this way. To have a similar language as Movie/Series we have used dialouges from F.R.I.E.N.D.S TV Series for our Chatbot ,which will help user for more easy and amusing conversation. Also with this we have also analysed Emotions from Text and displayed respective emojis on Screen for better visual conv.

# Technology Stack
* We have used Raspberry Pi and TFT Display to make the project.
* For Chatbot we have used Python, NLTK and for Dataset we have used F.R.I.E.N.D.S Corpus which contained all dialouges.
* For Emotions we scraped Emoji Images from Google Search and the emojis were predicted using Text Classification Model.
* For the TFT Display we have use Adafruit_ILI9341 Library to create the GUI.
* For Voice Recognition , we used Bluetooth Headset to take the Input Voice from User and use Google Cloud Speech API of speech_recognition package for Speech to Text.
* And for Text to Speech  from Chatbot we used pyttsx package.

# Connections
For Display ( 2.8" TFT Display ILI9341)
1. Raspberry Pi 3.3V power to TFT Vin.
2. Raspberry Pi ground to TFT GND.
3. Raspberry Pi SCLK to TFT CLK.
4. Raspberry Pi MOSI to TFT MOSI.
5. Raspberry Pi CE0 to TFT CS.
6. Raspberry Pi GPIO 18 to TFT D/C.
7. Raspberry Pi GPIO 23 to TFT RST.

And for Bluetooth Connection:
* Connect the device : `bluetoothctl connect 9F:3A:66:06:7C:EA` the id is id of your headset , you can find it when scanning on your phone.

For Speaker:
* Connect the Aux Cable Directly to Raspberry Pi 

# To Run the Bot:
1. Install the Adafruit Display Library on RPi:
```
cd ~
git clone https://github.com/adafruit/Adafruit_Python_ILI9341.git
cd Adafruit_Python_ILI9341
sudo python setup.py install
```
2. Install the Python Packages:
```
pip3 install pyttsx Adafruit_GPIO Pillow nltk sklearn speech_recognition
```
3. Make the Connections and Connect the Bluetooth Headset
4. Then Run the Bot
```
git clone https://github.com/aniketdhole07/emojo_chatbot
cd emojo_chatbot
python3 main.py
```

  • 1 × Raspberry Pi 4
  • 1 × Adafruit 2.8" TFT Display (SPI)
  • 1 × Jumper Cables
  • 1 × Bluetooth Headphone
  • 1 × Speaker (Optional)

  • 1
    Step 1

    # Connections
    For Display ( 2.8" TFT Display ILI9341)
    1. Raspberry Pi 3.3V power to TFT Vin.
    2. Raspberry Pi ground to TFT GND.
    3. Raspberry Pi SCLK to TFT CLK.
    4. Raspberry Pi MOSI to TFT MOSI.
    5. Raspberry Pi CE0 to TFT CS.
    6. Raspberry Pi GPIO 18 to TFT D/C.
    7. Raspberry Pi GPIO 23 to TFT RST.

    And for Bluetooth Connection:
    * Connect the device : `bluetoothctl connect 9F:3A:66:06:7C:EA` the id is id of your headset , you can find it when scanning on your phone.

    For Speaker:
    * Connect the Aux Cable Directly to Raspberry Pi 

    # To Run the Bot:
    1. Install the Adafruit Display Library on RPi:
    ```
    cd ~
    git clone https://github.com/adafruit/Adafruit_Python_ILI9341.git
    cd Adafruit_Python_ILI9341
    sudo python setup.py install
    ```
    2. Install the Python Packages:
    ```
    pip3 install pyttsx Adafruit_GPIO Pillow nltk sklearn speech_recognition
    ```
    3. Make the Connections and Connect the Bluetooth Headset
    4. Then Run the Bot
    ```
    git clone https://github.com/aniketdhole07/emojo_chatbot
    cd emojo_chatbot
    python3 main.py
    ```

View all instructions

Enjoy this project?

Share

Discussions

Gasinse wrote 02/05/2022 at 17:38 point

I became depressed as a result of a lot of stress. I was experiencing a loss of interest and pleasure, as well as low self-esteem, sleep difficulties, exhaustion, and inability to concentrate. All of this made it impossible for me to live normally, so I sought treatment from  Drmental , where I met a specialist who was eager to assist me. Because going to the doctor's office was uncomfortable for me, I sought treatment online and discovered that online therapy is just as helpful as personal counselling. I had more time to reflect during the text consultation, and I didn't have to memorise all that was spoken.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates