Automatic Deductive Coding in Discourse Analysis: An Application of Large Language Models in Learning Analytics
Lishan Zhang, Han Wu, Tengfei Duan, Hanxiang Du
Beijing Institute of Technology · Central China Normal University
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Large Language Model-Assisted Thematic Coding in Medical Education Research: Comparative Methodological Study.JMIR formative research · 2026
- Comparison of Qualitative Analyses Conducted by Artificial Intelligence Versus Traditional MethodsAmerican Journal of Pharmaceutical Education · 2025
- When AI simulates teaching personas: Linguistic dimensions of LLM-generated classroom discourse.PloS one · 2026
- Large language models for thematic analysis in healthcare research: A blinded mixed-methods comparison with human analystsPLOS Digital Health · 2026
- Scaling Qualitative Analysis with Large Language Models: Development and Validation of the Smart Coder Framework for Human-LLM Collaborative CodingarXiv · 2026
- Analyzing Nurse Sentiment in a Dutch Regional Newspaper During the COVID-19 Pandemic: Comparative Content Analysis of GPT-5, Gemini 2.5 Pro, and Human Coding.Journal of medical Internet research · 2026