Qualitative Coding with GPT-4

This study explores the potential of the large language model GPT-4 as an automated tool for qualitative data analysis by educational researchers, exploring which techniques are most successful for different types of constructs. Specifically, we assess three different prompt engineering strategies — Zero-shot, Few-shot, and Few-shot with contextual information — as well as the use of embeddings. We do so in the context of qualitatively coding three distinct educational datasets: Algebra I semi-personalized tutoring session transcripts, student observations in a game-based learning environment, and debugging behaviours in an introductory programming course. We evaluated the performance of each approach based on its inter-rater agreement with human coders and explored how different methods vary in effectiveness depending on a construct’s degree of clarity, concreteness, objectivity, granularity, and specificity. Our findings suggest that while GPT-4 can code a broad range of constructs, no single method consistently outperforms the others, and the selection of a particular method should be tailored to the specific properties of the construct and context being analyzed. We also found that GPT-4 has the most difficulty with the same constructs than human coders find more difficult to reach inter-rater reliability on.

Authors

Institutions

Publication Details

Journal
Journal of Learning Analytics
Published
2025-03-17
DOI
https://doi.org/10.18608/jla.2025.8575
Citations
18
Primary Topic
Data Mining Algorithms and Applications
Type
article
Field-Weighted Citation Impact
58.43
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Qualitative Coding with GPT-4

Maciej Pankiewicz, Xiner Liu, Amanda Barany, Nidhi Nasiar et al.
18 citations
Journal of Learning Analytics
Data Mining Algorithms and Applications
58.43
article

Qualitative Coding with GPT-4

Maciej Pankiewicz, Xiner Liu, Amanda Barany, Nidhi Nasiar, Andres Felipe Zambrano, Jaclyn Ocumpaugh, Ryan S. Baker, Jiayi Zhang, Zhanlan Wei
article en
18 citations

Abstract

This study explores the potential of the large language model GPT-4 as an automated tool for qualitative data analysis by educational researchers, exploring which techniques are most successful for different types of constructs. Specifically, we assess three different prompt engineering strategies — Zero-shot, Few-shot, and Few-shot with contextual information — as well as the use of embeddings. We do so in the context of qualitatively coding three distinct educational datasets: Algebra I semi-personalized tutoring session transcripts, student observations in a game-based learning environment, and debugging behaviours in an introductory programming course. We evaluated the performance of each approach based on its inter-rater agreement with human coders and explored how different methods vary in effectiveness depending on a construct’s degree of clarity, concreteness, objectivity, granularity, and specificity. Our findings suggest that while GPT-4 can code a broad range of constructs, no single method consistently outperforms the others, and the selection of a particular method should be tailored to the specific properties of the construct and context being analyzed. We also found that GPT-4 has the most difficulty with the same constructs than human coders find more difficult to reach inter-rater reliability on.

Journal of Learning AnalyticsVol. 12(1)
California University of Pennsylvania (US)
Openalex Percentile: Top 0%
Data Mining Algorithms and Applications
58.43
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.

Qualitative Coding with GPT-4 — Maciej Pankiewicz, Xiner Liu, et al. · Journal of Learning Analytics (2025) | TGRS Research Map | TGRS