Automatic Deductive Coding in Discourse Analysis: An Application of Large Language Models in Learning Analytics

Deductive coding is a common discourse analysis method widely used by learning science and learning analytics researchers for understanding teaching and learning interactions. It often requires researchers to manually label all discourses to be analyzed according to a theoretically guided coding scheme, which is time-consuming and labor-intensive. The emergence of large language models such as GPT has opened a new avenue for automatic deductive coding to overcome the limitations of traditional deductive coding. To evaluate the usefulness of large language models in automatic deductive coding, we employed three different classification methods driven by different artificial intelligence technologies, including the traditional text classification method with text feature engineering, BERT-like pretrained language model and GPT-like pretrained large language model (LLM). We applied these methods to two different datasets, the annotation dataset and the discussion dataset, and explored the potential of GPT and prompt engineering in automatic deductive coding. By analyzing and comparing the accuracy and Kappa values of these three classification methods, we found that GPT with prompt engineering outperformed the other two methods on both datasets with a limited number of training samples. By providing detailed prompt structures, the reported work demonstrated how large language models can be used in the implementation of automatic deductive coding.

Authors

Institutions

Publication Details

Journal
SAGE Open
Published
2025-10-01
DOI
https://doi.org/10.1177/21582440251390054
Citations
3
Primary Topic
Online Learning and Analytics
Type
article
Field-Weighted Citation Impact
5.08
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automatic Deductive Coding in Discourse Analysis: An Application of Large Language Models in Learning Analytics

Tengfei Duan, Han Wu, Lishan Zhang, Hanxiang Du
3 citations
SAGE Open
Online Learning and Analytics
5.08
article

Automatic Deductive Coding in Discourse Analysis: An Application of Large Language Models in Learning Analytics

Tengfei Duan, Han Wu, Lishan Zhang, Hanxiang Du
article en
3 citations

Abstract

Deductive coding is a common discourse analysis method widely used by learning science and learning analytics researchers for understanding teaching and learning interactions. It often requires researchers to manually label all discourses to be analyzed according to a theoretically guided coding scheme, which is time-consuming and labor-intensive. The emergence of large language models such as GPT has opened a new avenue for automatic deductive coding to overcome the limitations of traditional deductive coding. To evaluate the usefulness of large language models in automatic deductive coding, we employed three different classification methods driven by different artificial intelligence technologies, including the traditional text classification method with text feature engineering, BERT-like pretrained language model and GPT-like pretrained large language model (LLM). We applied these methods to two different datasets, the annotation dataset and the discussion dataset, and explored the potential of GPT and prompt engineering in automatic deductive coding. By analyzing and comparing the accuracy and Kappa values of these three classification methods, we found that GPT with prompt engineering outperformed the other two methods on both datasets with a limited number of training samples. By providing detailed prompt structures, the reported work demonstrated how large language models can be used in the implementation of automatic deductive coding.

SAGE OpenVol. 15(4)
Beijing Institute of Technology (CN), Central China Normal University (CN), Western Washington University (US)
Openalex Percentile: Top 4%
Online Learning and Analytics
5.08
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.

Automatic Deductive Coding in Discourse Analysis: An Application of Large Language Models in Learning Analytics — Tengfei Duan, Han Wu, et al. · SAGE Open (2025) | TGRS Research Map | TGRS