Page cover

Chatbot based stress detector

This section will discuss about chatbot. Here all use case will be discussed.

Mental Stress Indicator chatbot is developed using Dialogflow. Bot is further divided into several sections. First section is "Stress Detection" and Second is "Stress Related Query". Following is how bot will work.

After receiving user on board, bot will ask user like whether to ask questions related to stress or to go for stress detection.

  • Generalized QnA: When user will ask any question bot will analyze the question. After analysis, bot will check it's Knowledge base and revert back with the answer. With this if, user want to change mode to "stress detection question" bot will re-direct user detection mode.

  • Detection: In Detection feature, user will be asked four question and based user's response bot will count the stress level. Based on 'Yes' or 'No' from user's response bot will count the stress percentage. Following table is demonstrating the stress percent based on user's response.

Here are four question which will be asked to the user.

  1. Are you happy right now?

  2. Do you like to spend sometime alone?

  3. Do you feel that you live in stressful environment?

  4. Do you really overthink on certain things?

Y=Yes | N=No

User Response
Percent
Stress Status

yyyy

50

Certain

nnnn

50

Certain

yyyn

25

Early stage

yyny

25

Early stage

ynyy

75

Stressed

nyyy

75

Stressed

yynn

0

Not Stressed

ynny

50

Certain

ynyn

50

Certain

nnyy

100

Too much Stressed

nyny

50

Certain

nyyn

50

Certain

ynnn

25

Early stage

nynn

25

Early stage

nnyn

75

Stressed

nnny

75

Stressed

Based on user's response bot will predict stress level from table give above. If user's reply combination is "NNYY" it is possible that user might be suffering from extremely stressful situation. On other side, if user's response is "YYNN" there is no symptoms of stress found in user.

Following is a sample sheet for FAQ chat responses.

Chatbot System Design

Dialogflow
Knowledge base

StressPT ZIP File

Last updated