1. Introduction
The field of AI utilising dialogue technology has witnessed significant growth, particularly in the domain of automatic chatbots and ticket support systems [
1]. This application of dialogue technology has emerged as a cutting-edge and increasingly popular approach in the realm of AI-powered support systems. With changing global dynamics, the severity of the ongoing pandemic, and an upsurge in psychological challenges faced by the public, the mental well-being of young individuals, in particular, is a cause for concern. The pressures of urbanisation and the internet have led to various psychological issues [
2], including depression, procrastination, anxiety, obsessive–compulsive disorder, and social phobia [
3], which have become prevalent ailments of our time.
Psychological counselling involves the utilisation of psychological methods to provide assistance to individuals experiencing difficulties in psychological adaptation and seeking solutions. The demand for psychological counselling has witnessed a significant surge in recent years [
4], while the availability of professional psychological consultants remains insufficient. The profession of psychological consulting imposes high standards and qualifications. For instance, registered psychologists within psychological associations require students to possess a Master’s degree in psychology-related disciplines, undergo a minimum of 150 h of direct counselling, and receive face-to-face supervision by registered supervisors for no less than 100 h [
5]. Additionally, the burnout rate among mental health professionals further exacerbates this shortage [
6].
In 2020, the global outbreak of COVID-19 exacerbated the need for timely and professional psychological counselling due to the tremendous stress it imposed on society [
7]. Consequently, online psychological counselling through the internet has progressively become the dominant mode of delivering counselling services [
8]. AI-based assistive psychological support not only addresses the severe supply–demand gap in the consulting industry, but also enhances the responsiveness of online psychological counselling services, thereby promoting the implementation of mental health strategies. Such an assistive tool serves to ease the shortage of mental health support when no human counsellors are available to help.
In light of these circumstances, our team is determined to develop an assistive mental health consulting framework to serve as a constant source of support. Creating an AI-powered framework can allow users to engage with it comfortably, given its non-human identity, thereby reducing feelings of shame among users [
9]. In particular, with the absence of available psychological support, our framework serves as the second-best approach to providing timely support to patients. Amid the challenges posed by the pandemic, online psychological counselling has proven instrumental and has gradually become the predominant form of counselling. However, the growing disparity between supply and demand within our society’s psychological consultation industry is a pressing concern. The application of AI technology to mental health and psychological counselling is an emerging and promising field. Conversation frameworks, chatbots, and virtual agents are computer programs that simulate human conversation [
10]. They can engage in natural and effective interactions with individuals, providing them with emotional experiences through the incorporation of emotional and human-like characteristics. In practical terms, dialogue frameworks hold significant potential for supporting the demand in online consultations and addressing supply–demand imbalances.
In this study, we propose an AI-based
Psychological Support with
Large
Language
Models (
Psy-LLM) framework designed for question answering, with the purpose of providing online consultation services to alleviate the demand for mental health professionals during pandemics and beyond. Psy-LLM is an online psychological consultation model pre-trained with large language models (LLMs) and further trained with questions-and-answers (Q&A) from professional psychologists and large-scale crawled psychological articles. The framework can provide professional answers to users’ requests for psychological support. In particular, Psy-LLM can provide mental health advice, both through recommendations for health professionals and as standalone tools for patients when no human counsellors are available due to time constraints or staff shortages. Our model is built upon large-scale pre-training corpus models, specifically PanGu [
11] and WenZhong [
12]. The PanGu model, developed by Huawei’s Pengcheng Laboratory, and the WenZhong model, developed by the Idea Research Institute, served as the basis for our work. For data acquisition, we collected a substantial number of Chinese psychological articles from public websites. Additionally, we obtained permission from the Artificial Intelligence Research Institute of Tsinghua University to utilise the PsyQA dataset, which comprises many question–answer pairs related to psychological counselling. Each answer in the dataset was reviewed and adjusted by professionals holding master’s degrees or above in psychological counselling to ensure its quality. We fine-tuned the model in downstream tasks using the acquired dataset and PsyQA [
13]. As part of the evaluation process, we established a dedicated website and deployed the fine-tuned model on a server, allowing users to provide timely ratings. Based on the scoring results, we iteratively refined and re-fine-tuned the model.
Our contribution includes proposing a framework for AI-based psychological consultation framework and an empirical study on its effectiveness. We successfully developed a mental health consulting model that effectively provides clear and professional responses to users’ psychological inquiries. Empirically, we tested deploying the model on a server, and the model responded to users within seconds. Our framework has the potential to offer a practical tool for professionals to efficiently screen and promptly respond to individuals in urgent need of mental support, thereby addressing and alleviating pressing demands within the healthcare industry.
2. Related Works
In recent years, there has been increasing interest in utilising AI for tackling difficult problems in traditional domains like adopting AI in the construction industry [
14], localisation in robotic applications [
15], assistance systems in the service sector [
16], financial forecasting [
17], improving workflow in the oil and gas industry [
18], planning and scheduling [
19], monitoring ocean contamination [
20], remote sensing for search and rescue [
21], and it has even been used in the life cycle of material discovery [
22]. The health care industry has adopted AI-based machine-learning techniques for classifying medical images [
23], guiding cancer diagnosis [
24], as screening tools for diabetes [
25], and ultimately to improve the clinical workflow in the practice of medicine [
26].
One area of research focuses on using conversational agents, also known as chatbots, for mental health support. Chatbots have the potential to provide accessible and cost-effective assistance to individuals in need. For example, Martinengo et al. (2022) [
27] qualitatively analysed user-conversational agents and found that these types of chatbots can offer anonymous, empathetic, and non-judgemental interactions that align with face-to-face psychotherapy. Chatbots can utilise NLP techniques to engage users in therapeutic conversations and provide personalised support. The results showed promising outcomes, indicating the potential effectiveness of chatbots in delivering mental health interventions [
28]. Pre-trained language models have also gained attention in the field of mental health counselling. These models, such as GPT-3 [
29], provide a foundation for generating human-like responses to user queries. Wang et al. (2023) [
30] explored the application of LLMs in providing mental health counselling. They found that LLMs demonstrated a certain level of understanding and empathy, providing responses that were perceived as helpful by users. However, limitations in controlling the model’s output and ensuring ethical guidelines were highlighted.
Furthermore, there is a growing body of research on using NLP techniques to analyse mental-health-related text data [
31]. Researchers have applied machine-learning algorithms to detect mental health conditions [
32], predict suicidal ideation [
33], and identify linguistic markers associated with psychological well-being [
34]. For instance, de Choudhury et al. (2013) [
35] analysed social media data to predict depression among individuals. By extracting linguistic features and using machine-learning classifiers, they achieved promising results in identifying individuals at risk of depression. Additionally, several studies have investigated the integration of modern technologies into existing mental health interventions. For instance, Lui et al. (2017) [
36] investigated the use of mobile applications to support the delivery of psychotherapy.
Shaikh and Mhetre (2022) [
37] developed a friendly AI-based chatbot using deep learning and artificial intelligence techniques. The chatbot aimed to help individuals with insomnia by addressing harmful feelings and increasing interactions with users as they experienced sadness and anxiety. In another line of research, chatbots have been extensively studied in the domain of customer service. Many companies have adopted chatbots to assist customers in making purchases and understanding products. These chatbots provide prompt replies, enhancing customer satisfaction [
38]. Furthermore, advancements in language models such as BERT and GPT have influenced the development of conversational chatbots. Researchers have leveraged BERT-based question-answering models to improve the accuracy and efficiency of chatbot responses [
39]. The GPT models, including GPT-2 and GPT-3, have introduced innovations such as zero-shot and few-shot learning, significantly expanding their capabilities in generating human-like text [
29]. However, limitations in generating coherent and contextual responses and the interpretability of the models have been identified. The model incorporated a 48-layer transformer stack and achieved a parameter count of 1.5 billion, resulting in enhanced generalisation abilities [
29].
In summary, previous work in AI and NLP for mental health support has demonstrated the potential of chatbots, pre-trained language models, and data analysis techniques. These approaches offer new avenues for delivering accessible and personalised mental health interventions. Nonetheless, further research is needed to address ethical, privacy, and reliability issues and to optimise integrating AI technologies into existing counselling practices.
4. Psy-LLM Framework
The Psy-LLM framework aims to be an assistive mental health tool to support the workflow of professional counsellors, particularly to support those who might be suffering from depression or anxiety.
8. Limitations and Future Works
While we have presented promising results with our Psy-LLM model for usage in assisting mental health workers, our study is exploratory in nature, and, hence, numerous limitations exist that we would like to raise, as follows.
Author Contributions
Conceptualization, T.L.; Methodology, T.L., Z.D., J.W., K.F., Y.D. and Z.W.; Software, Y.S. and Z.W.; Investigation, Y.S. and J.W.; Data curation, Y.S., Z.D., K.F. and Y.D.; Writing—original draft, Y.S., Z.D., J.W., K.F., Y.D. and Z.W.; Writing—review & editing, T.L.; Supervision, T.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Informed consent was obtained from all subjects involved in the study.
Data Availability Statement
Data available in a publicly accessible repository at [
13].
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Handoyo, E.; Arfan, M.; Soetrisno, Y.A.A.; Somantri, M.; Sofwan, A.; Sinuraya, E.W. Ticketing chatbot service using serverless NLP technology. In Proceedings of the 2018 5th International Conference on Information Technology, Computer, and Electrical Engineering (ICITACEE), Semarang, Indonesia, 27–28 September 2018; pp. 325–330. [Google Scholar]
- Trivedi, J.K.; Sareen, H.; Dhyani, M. Rapid urbanization-Its impact on mental health: A South Asian perspective. Indian J. Psychiatry 2008, 50, 161. [Google Scholar] [CrossRef] [PubMed]
- Tian, F.; Li, H.; Tian, S.; Yang, J.; Shao, J.; Tian, C. Psychological symptoms of ordinary Chinese citizens based on SCL-90 during the level I emergency response to COVID-19. Psychiatry Res. 2020, 288, 112992. [Google Scholar] [CrossRef]
- Chen, T.; Lucock, M. The mental health of university students during the COVID-19 pandemic: An online survey in the UK. PLoS ONE 2022, 17, e0262562. [Google Scholar] [CrossRef] [PubMed]
- Gay, J.L.; Swank, J.M. School counselor educators’ experiences navigating practicum and internship during COVID-19. Couns. Educ. Superv. 2021, 60, 291–305. [Google Scholar] [CrossRef]
- Joshi, G.; Sharma, G. Burnout: A risk factor amongst mental health professionals during COVID-19. Asian J. Psychiatry 2020, 54, 102300. [Google Scholar] [CrossRef]
- Kontoangelos, K.; Economou, M.; Papageorgiou, C. Mental health effects of COVID-19 pandemia: A review of clinical and psychological traits. Psychiatry Investig. 2020, 17, 491. [Google Scholar] [CrossRef] [PubMed]
- Yurayat, P.; Tuklang, S. University Student Counselees’ Attitudes and Experiences towards Online Counseling during the COVID-19 Pandemic: A Mixed Methods Study. J. High. Educ. Theory Pract. 2023, 23, 222–238. [Google Scholar]
- Prochaska, J.J.; Vogel, E.A.; Chieng, A.; Kendra, M.; Baiocchi, M.; Pajarito, S.; Robinson, A. A Therapeutic Relational Agent for Reducing Problematic Substance Use (Woebot): Development and Usability Study. J. Med. Internet Res. 2021, 23, e24850. [Google Scholar] [CrossRef]
- Deryugina, O. Chatterbots. Sci. Tech. Inf. Process. 2010, 37, 143–147. [Google Scholar] [CrossRef]
- Zeng, W.; Ren, X.; Su, T.; Wang, H.; Liao, Y.; Wang, Z.; Jiang, X.; Yang, Z.; Wang, K.; Zhang, X.; et al. PanGu-α: Large-scale Autoregressive Pretrained Chinese Language Models with Auto-parallel Computation. arXiv 2021, arXiv:2104.12369. [Google Scholar]
- Wang, J.; Zhang, Y.; Zhang, L.; Yang, P.; Gao, X.; Wu, Z.; Dong, X.; He, J.; Zhuo, J.; Yang, Q.; et al. Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence. arXiv 2022, arXiv:2209.02970. [Google Scholar]
- Sun, H.; Lin, Z.; Zheng, C.; Liu, S.; Huang, M. PsyQA: A Chinese Dataset for Generating Long Counseling Text for Mental Health Support. In Proceedings of the Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, Online Event, 1–6 August 2021; Association for Computational Linguistics: Toronto, ON, Canada, 2021; pp. 1489–1503. [Google Scholar] [CrossRef]
- Regona, M.; Yigitcanlar, T.; Xia, B.; Li, R.Y.M. Opportunities and adoption challenges of AI in the construction industry: A PRISMA review. J. Open Innov. Technol. Mark. Complex. 2022, 8, 45. [Google Scholar] [CrossRef]
- Lai, T. A Review on Visual-SLAM: Advancements from Geometric Modelling to Learning-Based Semantic Scene Understanding using Multi-Modal Sensor Fusion. Sensors 2022, 22, 7265. [Google Scholar] [CrossRef] [PubMed]
- Link, M.; Dukino, C.; Ganz, W.; Hamann, K.; Schnalzer, K. The Use of AI-Based Assistance Systems in the Service Sector: Opportunities, challenges and applications. In Advances in Human Factors and Systems Interaction, Proceedings of the AHFE 2020 Virtual Conference on Human Factors and Systems Interaction, San Diego, CA, USA, 16–20 July 2020; Springer: Cham, Switzerland, 2020; pp. 10–16. [Google Scholar]
- Wang, X.; Zhang, H.; Zhang, Y.; Wang, M.; Song, J.; Lai, T.; Khushi, M. Learning Non-Stationary Time-Series with Dynamic Pattern Extractions. IEEE Trans. Artif. Intell. 2022, 3, 778–787. [Google Scholar] [CrossRef]
- Koroteev, D.; Tekic, Z. Artificial intelligence in oil and gas upstream: Trends, challenges, and scenarios for the future. Energy AI 2021, 3, 100041. [Google Scholar] [CrossRef]
- Lai, T. Discover Life Skills for Planning as Bandits via Observing and Learning How the World Works. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Kyoto, Japan, 23–27 October 2022; pp. 11360–11365. [Google Scholar] [CrossRef]
- Xu, X.; Lai, T.; Jahan, S.; Farid, F.; Bello, A. A Machine Learning Predictive Model to Detect Water Quality and Pollution. Future Internet 2022, 14, 324. [Google Scholar] [CrossRef]
- Lai, T. Real-Time Aerial Detection and Reasoning on Embedded-UAVs in Rural Environments. IEEE Trans. Geosci. Remote Sens. 2023, 61, 1–7. [Google Scholar] [CrossRef]
- Li, J.; Lim, K.; Yang, H.; Ren, Z.; Raghavan, S.; Chen, P.Y.; Buonassisi, T.; Wang, X. AI applications through the whole life cycle of material discovery. Matter 2020, 3, 393–432. [Google Scholar] [CrossRef]
- Castiglioni, I.; Rundo, L.; Codari, M.; Di Leo, G.; Salvatore, C.; Interlenghi, M.; Gallivanone, F.; Cozzi, A.; D’Amico, N.C.; Sardanelli, F. AI applications to medical images: From machine learning to deep learning. Phys. Med. 2021, 83, 9–24. [Google Scholar] [CrossRef]
- Chugh, G.; Kumar, S.; Singh, N. Survey on machine learning and deep learning applications in breast cancer diagnosis. Cogn. Comput. 2021, 13, 1451–1470. [Google Scholar] [CrossRef]
- Hu, H.; Lai, T.; Farid, F. Feasibility Study of Constructing a Screening Tool for Adolescent Diabetes Detection Applying Machine Learning Methods. Sensors 2022, 22, 6155. [Google Scholar] [CrossRef] [PubMed]
- Brattain, L.J.; Telfer, B.A.; Dhyani, M.; Grajo, J.R.; Samir, A.E. Machine learning for medical ultrasound: Status, methods, and future opportunities. Abdom. Radiol. 2018, 43, 786–799. [Google Scholar] [CrossRef] [PubMed]
- Martinengo, L.; Lum, E.; Car, J. Evaluation of chatbot-delivered interventions for self-management of depression: Content analysis. J. Affect. Disord. 2022, 319, 598–607. [Google Scholar] [CrossRef] [PubMed]
- Denecke, K.; Abd-Alrazaq, A.; Househ, M. Artificial intelligence for chatbots in mental health: Opportunities and challenges. In Multiple Perspectives on Artificial Intelligence in Healthcare: Opportunities and Challenges; Springer: Cham, Switzerland, 2021; pp. 115–128. [Google Scholar]
- Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 2020, 33, 1877–1901. [Google Scholar]
- Wang, J.; Shi, E.; Yu, S.; Wu, Z.; Ma, C.; Dai, H.; Yang, Q.; Kang, Y.; Wu, J.; Hu, H.; et al. Prompt engineering for healthcare: Methodologies and applications. arXiv 2023, arXiv:2304.14670. [Google Scholar]
- Gonzalez-Hernandez, G.; Sarker, A.; O’Connor, K.; Savova, G. Capturing the patient’s perspective: A review of advances in natural language processing of health-related text. Yearb. Med. Inform. 2017, 26, 214–227. [Google Scholar] [CrossRef] [PubMed]
- Abd Rahman, R.; Omar, K.; Noah, S.A.M.; Danuri, M.S.N.M.; Al-Garadi, M.A. Application of machine learning methods in mental health detection: A systematic review. IEEE Access 2020, 8, 183952–183964. [Google Scholar] [CrossRef]
- Ji, S.; Pan, S.; Li, X.; Cambria, E.; Long, G.; Huang, Z. Suicidal ideation detection: A review of machine learning methods and applications. IEEE Trans. Comput. Soc. Syst. 2020, 8, 214–226. [Google Scholar] [CrossRef]
- Akstinaite, V.; Garrard, P.; Sadler-Smith, E. Identifying linguistic markers of CEO hubris: A machine learning approach. Br. J. Manag. 2022, 33, 1163–1178. [Google Scholar] [CrossRef]
- De Choudhury, M.; Gamon, M.; Counts, S.; Horvitz, E. Predicting depression via social media. In Proceedings of the International AAAI Conference on Web and Social Media, Cambridge, MA, USA, 8–11 July 2013; Volume 7, pp. 128–137. [Google Scholar]
- Lui, J.H.; Marcus, D.K.; Barry, C.T. Evidence-based apps? A review of mental health mobile applications in a psychotherapy context. Prof. Psychol. Res. Pract. 2017, 48, 199. [Google Scholar] [CrossRef]
- Shaikh, T.A.H.; Mhetre, M. Autonomous AI Chat Bot Therapy for Patient with Insomnia. In Proceedings of the 2022 IEEE 7th International conference for Convergence in Technology (I2CT), Mumbai, India, 7–9 April 2022; pp. 1–5. [Google Scholar]
- Tamrakar, M.K.; Badholia, A. Scientific Study of Technological Chatbot Adoption in Customer Service. In Proceedings of the 2022 3rd International Conference on Electronics and Sustainable Communication Systems (ICESC), Coimbatore, India, 17–19 August 2022; pp. 1117–1123. [Google Scholar] [CrossRef]
- Kanodia, N.; Ahmed, K.; Miao, Y. Question Answering Model Based Conversational Chatbot using BERT Model and Google Dialogflow. In Proceedings of the 2021 31st International Telecommunication Networks and Applications Conference (ITNAC), Sydney, Australia, 24–26 November 2021; pp. 19–22. [Google Scholar] [CrossRef]
- World Health Organization. Depression and Other Common Mental Disorders: Global Health Estimates; Technical Report; World Health Organization: Geneva, Switzerland, 2017.
- Gou, Y.; Wu, N.; Xia, J.; Liu, Y.; Yang, H.; Wang, H.; Yan, T.; Luo, D. Province-and individual-level influential factors of depression: Multilevel cross-provinces comparison in China. Front. Public Health 2022, 10, 893280. [Google Scholar] [CrossRef] [PubMed]
- Xiang, Y.T.; Ng, C.H.; Yu, X.; Wang, G. Rethinking progress and challenges of mental health care in China. World Psychiatry 2018, 17, 231. [Google Scholar] [CrossRef] [PubMed]
- Cataldo, F.; Chang, S.; Mendoza, A.; Buchanan, G. A Perspective on Client-Psychologist Relationships in Videoconferencing Psychotherapy: Literature Review. JMIR Ment. Health 2021, 8, e19004. [Google Scholar] [CrossRef] [PubMed]
- Sandhu, D.S. An examination of the psychological needs of the international students: Implications for counselling and psythotherapy. Int. J. Adv. Couns. 1994, 17, 229–239. [Google Scholar] [CrossRef]
- Novella, J.K.; Ng, K.M.; Samuolis, J. A comparison of online and in-person counseling outcomes using solution-focused brief therapy for college students with anxiety. J. Am. Coll. Health 2022, 70, 1161–1168. [Google Scholar] [CrossRef] [PubMed]
- Hom, M.A.; Stanley, I.H.; Joiner, T.E., Jr. Evaluating factors and interventions that influence help-seeking and mental health service utilization among suicidal individuals: A review of the literature. Clin. Psychol. Rev. 2015, 40, 28–39. [Google Scholar] [CrossRef] [PubMed]
- Xu, L.; Hu, H.; Zhang, X.; Li, L.; Cao, C.; Li, Y.; Xu, Y.; Sun, K.; Yu, D.; Yu, C.; et al. CLUE: A Chinese language understanding evaluation benchmark. arXiv 2020, arXiv:2004.05986. [Google Scholar]
- Thelwall, M.A. A web crawler design for data mining. J. Inf. Sci. 2001, 27, 319–325. [Google Scholar] [CrossRef]
- Li, Y.; Han, P.; Liu, C.; Fang, B. Automatically Crawling Dynamic Web Applications via Proxy-Based JavaScript Injection and Runtime Analysis. In Proceedings of the 2018 IEEE Third International Conference on Data Science in Cyberspace (DSC), Guangzhou, China, 18–21 June 2018; pp. 242–249. [Google Scholar]
- Zhang, Y.; Wang, D.; Feng, S.; Zhang, Y.; Leng, F. An Approach for Crawling Dynamic WebPages Based on Script Language Analysis. In Proceedings of the 2012 Ninth Web Information Systems and Applications Conference, Haikou, China, 16–18 November 2012; pp. 35–38. [Google Scholar]
- Chen, S.F.; Beeferman, D.; Rosenfeld, R. Evaluation Metrics For Language Models. 1998. Available online: https://www.cs.cmu.edu/~roni/papers/eval-metrics-bntuw-9802.pdf (accessed on 12 July 2023).
- Lin, C.Y. ROUGE: A Package for Automatic Evaluation of Summaries. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, Barcelona, Spain, 21–26 July 2004. [Google Scholar]
- Li, J.; Galley, M.; Brockett, C.; Gao, J.; Dolan, W.B. A Diversity-Promoting Objective Function for Neural Conversation Models. In Proceedings of the North American Chapter of the Association for Computational Linguistics, San Diego, CA, USA, 12–17 June 2016. [Google Scholar]
- Hill, C.E.; Siegelman, L.; Gronsky, B.R.; Sturniolo, F.; Fretz, B.R. Nonverbal communication and counseling outcome. J. Couns. Psychol. 1981, 28, 203. [Google Scholar] [CrossRef]
- Jaiswal, A.; Raju, A.K.; Deb, S. Facial emotion detection using deep learning. In Proceedings of the 2020 International Conference for Emerging Technology (INCET), Belgaum, India, 5–7 June 2020; pp. 1–5. [Google Scholar]
Figure 1.
The model layers and architecture of the PanGu model [
11].
Figure 2.
The query layer in the PanGu model.
Figure 3.
The number of characters in each sample.
Figure 4.
Word cloud of the frequent words within our dataset, containing words such as anxiety, appearances, looks, felings, scars, self-esteems, etc.
Figure 5.
Preparing the training corpus. The sample question is same for the 3 samples. Question: Experiencing confusion after completing the third year of high school and feeling anxious before the college entrance examination—do you have any guidance or advice to offer? The answers refers to concepts such as: Recognising your anxiety stemming from high school pressure, it’s crucial to foster a mindset of determination for the college entrance exam, emphasising the importance of a goal-oriented approach, structured planning, persistent practice, seeking guidance, and believing in your potential.
Figure 6.
A demonstration of the PanGu model’s Q&A capability. Translation: Question: How to deal with depression? Answer: Hello, to begin with, allow me to offer you a gentle embrace, hoping it provides some comfort. Individuals experiencing depression often face a lack of understanding from their families, which is disheartening when they feel misunderstood or criticised. I understand you’re currently feeling profoundly sad, and it’s causing you deep pain. Nevertheless, I want you to know that you’re amazing, you’re not at fault, and the journey towards any changes you desire begins with your own inner strength; you’re resilient and perceptive.
Figure 7.
A demonstration of the WenZhong model’s Q&A capability. Translation: Question: How to deal with depression? Answer: Our experiences often tell us that many times, if someone simply acts on their own emotions and feelings, there will be many unexpected consequences. For instance, in your studies, the time spent studying daily, the study environment, your attitude towards learning, learning capabilities, and so on—these aspects require careful consideration. It’s especially crucial to try to avoid certain things as much as possible. For example, if you don’t wish to engage in negative activities, then it’s better to refrain from them. Instead, focus on taking preventive measures against depression to prevent oneself from developing such an illness. In life, we also encounter individuals who have been deceived.
Figure 8.
Online web front-end architecture.
Figure 9.
Website initial status.
Figure 10.
Web front-end for the online psychological consultation. (a) Website loading status. (b) Website result status. The user is using the interface to answer the question of: What should be done when there’s a lack of conversation every time spent with the partner?
Table 1.
The parametric size of the various settings in the PanGu model.
Model | Parameters | Layers | Hidden Size | Head | Seq Length |
---|
PanGu 350 M | 350 M | 24 | 1024 | 16 | 1024 |
PanGu 2.6 B | 2.6 B | 32 | 2560 | 40 | 1024 |
PanGu 13 B | 13.1 B | 40 | 5120 | 40 | 1024 |
PanGu 13 B | 207.0 B | 64 | 16,384 | 128 | 1024 |
Table 2.
Dataset crawled from different platforms.
Platform | Data Size | Crawling Time |
---|
Tianya | 2 GB | 40 h+ |
Zhihu | 500 Mb | 20 h+ |
Yixinli | 200 Mb | 8 h+ |
Table 3.
Data distribution of the length of each sample.
Count | Mean | Std | Min | 25% | 50% | 70% | Max |
---|
371,434 | 5343 | 11,335 | 0 | 653 | 1835 | 6039 | 454,611 |
Table 4.
Hardware and software versions.
Hardware and Software | Version |
---|
Operating System | Windows 10 |
Numpy | 1.18.5 |
Pandas | 1.3.4 |
Torch | 1.11.0 |
Tokenizers | 0.13.1 |
tqdm | 4.64.1 |
Jupyter | 1.0.0 |
Transformers | 4.23.1 |
Table 5.
The result of the intrinsic evaluation between the two models.
Model | Perplexity | Rouge-L | Distinct1 | Distinct2 |
---|
WenZhong | 38.40 | 23.56 | 3.55 | 9.67 |
PanGu | 34.56 | 28.18 | 4.57 | 12.74 |
Table 6.
Average human ratings of Psy-LLM responses, with only the two AI-powered versions.
Metrics | WenZhong | PanGU |
---|
Helpfulness | 3.56 | 3.87 |
Fluency | 4.14 | 4.36 |
Relevance | 3.87 | 4.09 |
Logic | 3.63 | 3.83 |
Table 7.
Average human ratings of Psy-LLM responses, alongside ground truths from the datasets.
Rating Metrics | WenZhong | PanGU | Ground Truth |
---|
Helpfulness | 3.45 | 3.54 | 4.52 |
Fluency | 3.95 | 4.12 | 4.83 |
Relevance | 3.77 | 3.96 | 4.72 |
Logic | 3.61 | 3.75 | 4.56 |
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).