# A Test Platform for Managing School Stress Using a Virtual Reality Group Chatbot Counseling System
## 3 Methodology
### Module 2 Counseling Chatbot: A Knowledge-Based Chatbot  
The chatbot operation for module 2 is shown in Figure 3. The user can ask questions by speaking or typing, and the speech will be converted into text. Preprocessing is performed using Python software to simplify the question before putting it into the model. Simplified questions are categorized according to issue and sentiment to limit the search scope for frequently asked questions (FAQs). Using the cosine similarity, the most similar frequently asked questions can be selected, and the corresponding answer can be extracted. The answer will be presented to the user in the form of screen display and voice recitation. \begin{table}
\begin{tabular}{c p{142.3 pt}} \hline \hline
**Source of Stress** & **Suggestions** \\ \hline \multirow{3}{*}{Studies} & Focus on getting your education instead of getting certain grades. \\  & Get enough sleep. \\  & Work on time management skills. \\ \hline \multirow{3}{*}{Financial} & Always keep in mind why you want to pursue a degree in the first place, and remind yourself that it can lead to better job opportunities after you graduate. Experts and employers still believe that college is worth the investment. \\ \hline \multirow{3}{*}{Family} & Take time to do something that is meaningful, relaxing and fun to you and your family. \\  & Consider the emotional needs of your family members. \\  & Focus on your health and the health of others in your family. \\ \hline \multirow{3}{*}{Friends} & Make an effort to only befriend people whose company you enjoy. \\  & Spend time with people with whom you have a good relationship. \\ \hline \multirow{3}{*}{Work} & Establish some work-life boundaries for yourself. That might mean making a rule not to check email from home in the evening or not answering the phone during dinner. \\ \hline \multirow{3}{*}{Health} & If a particular illness is going around your campus or community, try your best to avoid contact with anyone who is contagious and wash your hands frequently. Everyone gets sick on occasion. Accept that you might get ill even though you try not to. If you do catch something, take care of yourself and rest as much as possible before resuming your normal activities. \\ \hline \multirow{3}{*}{Activity} & Pursue a new hobby. \\ \cline{1-1}  & \\ \end{tabular}
\end{table} 
Table 2: Suggestions for users with different sources of stress. If there is no similar frequently asked question, the question will be stored, and the professional therapist will provide the answer to the question and enter it into the database to improve the system. Figure 4 illustrates the method of matching FAQs in this study. Users' questions were classified twice according to different aspects. The method narrows the search scope to find a matching sample question. First, the question was analyzed to find the cause of the problem, including a total of seven issues, which are studies, family, friends, finance, work, health, and activity. Then it analyzes the sentiment of the user based on the user's words, finds a related question, and answers it using the corresponding sample question set. Figure 4: Matching user’s question to FAQs by issue classification and sentiment classification. Figure 3: VRGC chatbot methodology. FAQs are derived from the transcripts of different therapists' and psychologists' therapy sessions and also include data from various worldwide organizations for better coverage of the targeted treatment. The chatbot is an auxiliary tool for therapists to reduce their workload. Basic questions can be answered through this chatbot, and the real therapy session can be conducted in the second part of the system, which is group therapy using the VR interface. Beginning in May 2021, many people were suffering emotionally from the outbreak of COVID-19, so FAQs also include information related to pandemic stress.