T-HumorAGSA: A Gated Anchor-Guided Self-Attention Model for Classroom Teacher Humor Language Detection

Classroom humor is an important instructional strategy that enhances teaching effectiveness and improves student engagement. However, its automatic detection remains challenging due to the strong contextual dependency and implicit semantic shifts that characterize humorous expressions in teaching discourse. Conventional pretrained language models capture global semantics but often fail to focus on the subtle humor anchors that trigger incongruity. To address this issue, we propose T-HumorAGSA, a cognitive-inspired classroom teacher humor language detection model. The model employs BERT for contextualized semantic encoding, followed by a Gated Anchor-Guided Self-Attention (AGSA) mechanism that adaptively amplifies anchor-related features responsible for humor generation. A bidirectional gated recurrent unit (BiGRU) layer is further integrated to model long-range temporal dependencies within teaching utterances. T-HumorAGSA is evaluated on five datasets, including SemEval 2021 Task 7-1a, ColBERT, CCL2018, CCL2019 and the self-constructed teacher humor language dataset (T-Humor), demonstrating consistently strong performance. For instance, it achieves 0.9874 F1 on ColBERT and 0.9508 F1 on SemEval 2021 Task 7-1a, both outperforming the best baseline models. On the T-Humor dataset, the model attains a high F1 score of 0.9895, validating its capacity to detect subtle humorous cues in instructional discourse. The results demonstrate that the proposed model delivers excellent performance in classroom humor detection.

Authors

Institutions

Publication Details

Journal
Information
Published
2026-03-26
DOI
https://doi.org/10.3390/info17040323
Primary Topic
Humor Studies and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

T-HumorAGSA: A Gated Anchor-Guided Self-Attention Model for Classroom Teacher Humor Language Detection

Junkuo Cao, Gang Chen, Yuxin Wu
Information
Humor Studies and Applications
article

T-HumorAGSA: A Gated Anchor-Guided Self-Attention Model for Classroom Teacher Humor Language Detection

Junkuo Cao, Gang Chen, Yuxin Wu
article en

Abstract

Classroom humor is an important instructional strategy that enhances teaching effectiveness and improves student engagement. However, its automatic detection remains challenging due to the strong contextual dependency and implicit semantic shifts that characterize humorous expressions in teaching discourse. Conventional pretrained language models capture global semantics but often fail to focus on the subtle humor anchors that trigger incongruity. To address this issue, we propose T-HumorAGSA, a cognitive-inspired classroom teacher humor language detection model. The model employs BERT for contextualized semantic encoding, followed by a Gated Anchor-Guided Self-Attention (AGSA) mechanism that adaptively amplifies anchor-related features responsible for humor generation. A bidirectional gated recurrent unit (BiGRU) layer is further integrated to model long-range temporal dependencies within teaching utterances. T-HumorAGSA is evaluated on five datasets, including SemEval 2021 Task 7-1a, ColBERT, CCL2018, CCL2019 and the self-constructed teacher humor language dataset (T-Humor), demonstrating consistently strong performance. For instance, it achieves 0.9874 F1 on ColBERT and 0.9508 F1 on SemEval 2021 Task 7-1a, both outperforming the best baseline models. On the T-Humor dataset, the model attains a high F1 score of 0.9895, validating its capacity to detect subtle humorous cues in instructional discourse. The results demonstrate that the proposed model delivers excellent performance in classroom humor detection.

InformationVol. 17(4)
Ministry of Education of the People's Republic of China (CN), Hainan Normal University (CN)
Quality Education
Openalex Percentile: Top 13%
Humor Studies and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.