Evidano home
Published in Discover EducationResponsible AIUniversity of Newcastle, Australia

When AI Joins the Coding Team: Testing LLMs Against Human Coders in Education Research

Evidano8 min read
Robertson Burgess, Lecturer in the School of Education at the University of Newcastle

Imagine opening a spreadsheet containing hundreds of short posts from science teachers. One teacher is asking for help with an assessment question. Another shares a syllabus resource. A third advertises a job. The language is informal, context is assumed, links and images may carry part of the meaning, and several categories can plausibly fit the same post. Before researchers can study patterns in this material, someone has to make consistent coding decisions across the whole dataset.

That practical problem sits behind “Using large language models to complement humans for the coding of social media interactions between science teachers,” a methodological study in Discover Education. Robertson Burgess and colleagues asked whether off-the-shelf large language models could be prompted to code qualitative text in ways that were comparable with experienced human coders, and whether a coding system developed in one teacher community would still work when transferred to related communities.

We spoke with Dr Robertson Burgess, Lecturer in the School of Education at the University of Newcastle, to learn more about how researchers can combine LLM coding with human judgement in education research.

About the article

Research question

Can general-purpose LLMs be prompted to reproduce human qualitative coding at useful levels of inter-coder reliability, and can the same prompt and coding scheme transfer to similar datasets? The study also examines how much performance depends on the model itself compared with the quality of the categories, contextual guidance, and iterative prompt refinement.

Key finding

The strongest result was not simply that newer models performed better. The larger gain came from improving the coding scheme and prompt: on a 150-post Biology sample, mean human–human Krippendorff’s alpha rose from 0.60 to 0.85 after the categories were revised, while GPT-4–human alpha rose from 0.67 to 0.85. GPT-4o later reached reliability within the human range across the multi-coder groups, but performance weakened when the Biology-designed scheme was transferred into somewhat different contexts.

Why this research matters

Qualitative coding is often described as a human interpretive task, but the routine work surrounding it can be substantial. Large datasets require researchers to define categories, apply them consistently, compare disagreements, and revisit ambiguous cases. This study is useful because it treats an LLM not as an autonomous analyst, but as another coder whose decisions can be tested against humans and whose recurring errors can expose weaknesses in the coding framework itself. That makes the paper relevant beyond science education, especially for researchers considering AI-assisted content analysis, deductive coding, or other structured qualitative workflows.

Asked what he sees as the most important implication of treating an LLM as a complementary coder rather than a replacement for researcher judgement, Burgess replied: “Treating the LLMs as complementary coders created essentially another voice in the room. In doing so, it offered new perspectives and highlighted assumptions and biases we were unconsciously making.” The paper’s evidence supports a cautious reading: human expertise remains central, but an LLM can add a scalable second perspective when its task is tightly specified and continuously checked.

Key findings from the article

Three contributions stand out because they show where reliability came from, where it broke down, and what the researchers learned by comparing people and models side by side.

  • Better categories mattered more than simply switching to a newer model. The first coding scheme produced substantial disagreement among humans as well as between humans and LLMs. The team reduced 22 possible code combinations to 14 by collapsing overlapping categories, most notably several forms of teaching knowledge and resources. On the 150-post development sample, mean human–human agreement increased from 67% to 89%, while GPT-4–human agreement rose from 73% to 89%. The discussion concludes that revising categories and prompts produced larger reliability gains than model upgrades alone.
  • Context-specific prompt engineering corrected systematic model errors. The LLMs initially confused student activities with professional development and could interpret small wording changes as changes in intent. Performance improved when the prompt included contextual signals such as “NESA-accredited” (NESA, the NSW Education Standards Authority, accredits teachers’ professional development), local shorthand such as “Mod 5” for a syllabus module, and explicit rules distinguishing an employer advertising a vacancy from a person seeking employment. These examples show that qualitative coding depends not only on text classification, but also on the tacit conventions a human researcher brings to the material.
  • Transfer worked, but reliability fell as the context moved away from the development dataset. The coding system was built on Biology posts, then applied without modification to Physics, broader Science, and Chemistry groups. GPT-4o achieved 93% agreement with the consensus code in Biology, compared with 85% in Physics, 83% in the broader Science group, and 88% in Chemistry. The authors caution that these groups were not equally comparable, and the Chemistry set had only one human coder, but the pattern still supports a practical warning: prompts should be rechecked on a sample whenever the context, conventions, or subject matter change.

Taken together, the results suggest that the most valuable role for an LLM may be as a disciplined source of comparison. Repeated disagreement can reveal ambiguous definitions, missing context, or inconsistent human decisions just as readily as it reveals model weakness. Asked whether any disagreement with the LLMs changed how the human team understood the coding scheme, Burgess recalled: “The interesting disagreement highlighted by the LLMs was our understanding of whether a post author was ‘seeking’ or ‘sharing’ information in the context of advertising employment opportunities. If a teacher phrases their post in the format ‘Does anyone know a Chemistry teacher interested in moving to…?’, this is grammatically seeking knowledge, but is essentially sharing knowledge of an opportunity. We had to agree to changes to our coding practice to address this. A regular mistake the LLMs would highlight was humans placing emphasis on the start of the post, whereas the LLM would correctly identify that the main intent was deeper into the post. This was particularly the case after a long coding session.”

Methods and research approach

The researchers began with 2,000 Facebook posts, 500 from each of four closed groups for Australian secondary science teachers. All groups had more than 2,000 members. The study used an approved opt-out process: the first author announced the research to each group, provided information and an opt-out form, waited two months, and then pseudonymised the extracted material. Posts with no usable text, routine welcome messages, or error messages were removed, leaving 457 posts in the Biology group used for the main prompt-development process.

The coding scheme was developed inductively from Biology posts. After roughly 50 posts, the authors created a two-level structure: first, whether a post was Sharing or Seeking information; second, what kind of information it concerned. A hand-picked sample of about 15 posts was used to engineer an initial prompt, followed by two rounds of refinement using a 150-post sample. Four human coders, GPT-3.5 and GPT-4 coded the material independently. The team focused on cases where humans strongly agreed but an LLM disagreed, then refined both the categories and the prompt. Reliability was measured with Krippendorff’s alpha.

The final prompt was then frozen and applied to the complete group datasets. GPT-4o was released only after the human coding and consensus decisions were complete, so when it was added later it had no influence on the reference codes. The design also exposes important limitations. Posts were short, often ambiguous, and stripped of images and linked content, which sometimes deprived both humans and models of context. The number of human coders also differed by group, making reliability comparisons less clean, and the authors explicitly caution against assuming that a scheme tuned to one dataset will transfer unchanged to another.

Broader implications

For researchers, the paper points toward a workflow in which AI support is evaluated rather than assumed. A model can code at scale, but its output becomes more trustworthy when researchers first define the analytic task clearly, test the prompt on representative material, measure agreement, inspect recurring errors, and retune the system when the context changes. In that sense, prompt engineering here is not a one-off technical trick. It is part of the methodological work of specifying what a code means and how evidence should be interpreted.

The study also complicates a common framing of human versus AI. Human coders disagreed substantially in the first round, and those disagreements helped improve the codebook. The LLMs did something similar by making systematic mistakes that forced the team to articulate assumptions that had previously been tacit. What the paper demonstrates is therefore narrower, and more useful, than a claim that AI can “do qualitative research”: in a structured coding task with human-developed categories, contextual instructions, and verification, an LLM can approach the reliability of a human coder and contribute to quality control.

What remains uncertain is how well this approach extends to richer qualitative material such as long interviews, multimodal posts, or open-ended interpretive analysis where meaning depends on narrative, reflexivity, and theory rather than a stable classification scheme. The authors propose future work on confidence scores, richer media, alternative reliability measures, and comparisons with fine-tuned or smaller models. Asked what single practice he would recommend to researchers adopting LLM-assisted coding now, Burgess said: “For me, the most important factors to ensure rigour are multiple stages of prompt engineering and reliability checks, and that the reliability check is performed on a large enough subsample.”

About Robertson Burgess

Robertson Burgess, Lecturer in the School of Education at the University of Newcastle

Dr Robertson Burgess is a Lecturer in the School of Education at the University of Newcastle, Australia, and Program Convenor for the Bachelor of Education (Secondary). He is affiliated with the university’s EdTech Research Network, whose work includes artificial intelligence and emerging technologies in teacher education. His recent research includes communities of secondary science teachers and the use of large language models in qualitative coding. He also teaches on emerging technologies, pedagogy, assessment, and the educational implications of generative AI.

About the authors

  • Robertson Burgess (School of Education, University of Newcastle, Australia)
  • Katie Waters (School of Education, University of Newcastle, Australia)
  • Erika Spray (School of Education, University of Newcastle, Australia)
  • Elena Prieto-Rodriguez (School of Education, University of Newcastle, Australia)

Read the article

Read the full research article, “Using large language models to complement humans for the coding of social media interactions between science teachers,” published in Discover Education in 2026.

Full citation

Burgess, R., Waters, K., Spray, E., & Prieto-Rodriguez, E. (2026). Using large language models to complement humans for the coding of social media interactions between science teachers. Discover Education, 5(1), 81. doi.org/10.1007/s44217-025-00868-x

View the publication

We are grateful to Dr Burgess for sharing his perspective on this study and for his contribution to the careful, transparent use of AI in qualitative research.

Research, accuracy and responsible AI

How Evidano's output has been evaluated, how its models were built, how your data is handled, and how to disclose or cite AI use in your own work.

  • Resource

    Human vs AI: validated accuracy benchmarks

    Four head-to-head comparisons against expert human analysis — 371 interview transcripts with Arizona State and Penn State, 298 evaluation reports, 224 open-ended survey responses with UT Austin and Wichita State, and a 160-response manual-coding review.

  • Resource

    How Evidano’s models were trained

    Model provenance for research-ethics review: a provenance-tiered curated corpus, and customer uploads, prompts and outputs excluded from training entirely.

  • Resource

    Data security for qualitative research

    Encryption in transit and at rest, customer-controlled deletion, regional storage, and SOC 2 Type 2, GDPR, HIPAA-ready and CCPA/CPRA compliance.

  • Resource

    How to cite and disclose Evidano

    Citation formats in APA, MLA, Chicago, Harvard and Vancouver, methods-section wording per workflow, and an AI-policy review of 41 journals across 8 disciplines.