Comparing emotions in ChatGPT answers and human answers to the coding questions on Stack Overflow

被引:0
作者
Fatahi, Somayeh [1 ]
Vassileva, Julita [1 ]
Roy, Chanchal K. [1 ]
机构
[1] Univ Saskatchewan, Dept Comp Sci, Saskatoon, SK, Canada
来源
FRONTIERS IN ARTIFICIAL INTELLIGENCE | 2024年 / 7卷
基金
加拿大自然科学与工程研究理事会; 芬兰科学院;
关键词
generative AI; large language models; natural language processing; emotion analysis; Stack Overflow; ChatGPT; programming assistance;
D O I
10.3389/frai.2024.1393903
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Introduction Recent advances in generative Artificial Intelligence (AI) and Natural Language Processing (NLP) have led to the development of Large Language Models (LLMs) and AI-powered chatbots like ChatGPT, which have numerous practical applications. Notably, these models assist programmers with coding queries, debugging, solution suggestions, and providing guidance on software development tasks. Despite known issues with the accuracy of ChatGPT's responses, its comprehensive and articulate language continues to attract frequent use. This indicates potential for ChatGPT to support educators and serve as a virtual tutor for students.Methods To explore this potential, we conducted a comprehensive analysis comparing the emotional content in responses from ChatGPT and human answers to 2000 questions sourced from Stack Overflow (SO). The emotional aspects of the answers were examined to understand how the emotional tone of AI responses compares to that of human responses.Results Our analysis revealed that ChatGPT's answers are generally more positive compared to human responses. In contrast, human answers often exhibit emotions such as anger and disgust. Significant differences were observed in emotional expressions between ChatGPT and human responses, particularly in the emotions of anger, disgust, and joy. Human responses displayed a broader emotional spectrum compared to ChatGPT, suggesting greater emotional variability among humans.Discussion The findings highlight a distinct emotional divergence between ChatGPT and human responses, with ChatGPT exhibiting a more uniformly positive tone and humans displaying a wider range of emotions. This variance underscores the need for further research into the role of emotional content in AI and human interactions, particularly in educational contexts where emotional nuances can impact learning and communication.
引用
收藏
页数:11
相关论文
共 48 条
[1]  
Adam M, 2021, ELECTRON MARK, V31, P427, DOI [10.14218/erhm.2019.00020, 10.1007/s12525-020-00414-7]
[2]  
Adamopoulou E., 2020, IAICT, V584 IFIP, P373, DOI [DOI 10.1007/978-3-030-49186-4_31, 10.1007978-3-030-49186-431, 10.1007/978-3-030-49186-431]
[3]  
Alghamdi R, 2015, INT J ADV COMPUT SC, V6, P147
[4]  
Alshahrani A, 2023, International Journal of Data and Network Science, V7, P2029, DOI [10.5267/j.ijdns.2023.6.010, 10.5267/j.ijdns.2023.6.010, DOI 10.5267/J.IJDNS.2023.6.010]
[5]   Latent Dirichlet allocation [J].
Blei, DM ;
Ng, AY ;
Jordan, MI .
JOURNAL OF MACHINE LEARNING RESEARCH, 2003, 3 (4-5) :993-1022
[6]   Introduction to the Special Issue on Emotions in Reading, Learning, and Communication [J].
Bohn-Gettler, Catherine M. ;
Kaakinen, Johanna K. .
DISCOURSE PROCESSES, 2022, 59 (1-2) :1-12
[7]  
Borwankar S., 2023, Unraveling the impact: An empirical investigation of ChatGPT's exclusion from stack overflow
[8]  
Choi JH, 2022, J LEGAL EDUC, V71, P387
[9]   Evaluating Privacy Questions From Stack Overflow: Can ChatGPT Compete? [J].
Defile, Zack ;
Radel, Sean ;
Godinez, Joe ;
Engstrom, Garrett ;
Brucker, Theo ;
Young, Kenzie ;
Ghanavati, Scpideh .
2023 IEEE 31ST INTERNATIONAL REQUIREMENTS ENGINEERING CONFERENCE WORKSHOPS, REW, 2023, :239-244
[10]  
Devlin J, 2019, 2019 CONFERENCE OF THE NORTH AMERICAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: HUMAN LANGUAGE TECHNOLOGIES (NAACL HLT 2019), VOL. 1, P4171