With the rapid development of generative artificial intelligence (GenAI) technologies, their application in the field of education has gradually become a focal topic of interest for both academia and the public. However, research on emotional responses and social cognition regarding the educational applications of GenAI based on social media data analysis remains limited. Based on public Weibo posts and comments related to ChatGPT and DeepSeek, this study combines BERT-based sentiment classification, BERTopic topic modeling, dynamic topic analysis, and representative-text validation to examine sentiment patterns and negative discourse themes in education-related discussions. Social cognitive theory is used as a discourse-oriented interpretive framework to organize negative topics into perceived competence, perceived risk, and value-related concerns. The results show that ChatGPT-related negative discourse was mainly associated with uncertainty about AI use and human competence, academic integrity, teacher substitution, reduced independent thinking, and classroom effectiveness. DeepSeek-related negative discourse was more closely related to children’s learning dependence, output reliability, employment pressure, humanities learning, traditional cultural education, and teacher roles. Overall, public responses to GenAI in education vary across model-specific, temporal, and sociocultural contexts. The study contributes context-specific evidence on GenAI-related public discourse in China and suggests that GenAI literacy, output verification, academic integrity, teacher professional development, and value-sensitive implementation should receive greater attention in future empirical research and educational practice.



