Skip to main content
QUICK REVIEW

[Paper Review] Using ChatGPT for Thematic Analysis

Aleksei Turobov, Diane Coyle|arXiv (Cornell University)|May 13, 2024
Topic ModelingComputer Science28 citations
TL;DR

The paper demonstrates a custom GPT model used for initial coding in thematic analysis of UN policy documents, validating with topic modeling and discussing limitations and risk mitigation.

ABSTRACT

The utilisation of AI-driven tools, notably ChatGPT, within academic research is increasingly debated from several perspectives including ease of implementation, and potential enhancements in research efficiency, as against ethical concerns and risks such as biases and unexplained AI operations. This paper explores the use of the GPT model for initial coding in qualitative thematic analysis using a sample of UN policy documents. The primary aim of this study is to contribute to the methodological discussion regarding the integration of AI tools, offering a practical guide to validation for using GPT as a collaborative research assistant. The paper outlines the advantages and limitations of this methodology and suggests strategies to mitigate risks. Emphasising the importance of transparency and reliability in employing GPT within research methodologies, this paper argues for a balanced use of AI in supported thematic analysis, highlighting its potential to elevate research efficacy and outcomes.

Motivation & Objective

  • Investigate feasibility of using a GPT model as a collaborative tool for initial coding in thematic analysis.
  • Develop and test a custom GPT model (Supported Thematic Analysis. AIxGEO) tailored for qualitative coding.
  • Evaluate GPT-generated codes against manual methods and topic modeling (LDA).
  • Identify advantages, limitations, and risk-mitigation strategies for AI-assisted thematic analysis.
  • Provide practical guidance on prompts, validation, and maintaining research integrity.

Proposed method

  • Develop a custom GPT model aligned with a structured thematic analysis workflow.
  • Employ Few-Shot Learning, Chain-of-Thought, and Role-Playing prompts to improve analytical outputs.
  • Create a knowledge base and step-by-step instruction script to guide the GPT model through familiarisation, coding, clustering, and theme development.
  • Pilot-test the model on UN policy documents and press releases (63 documents from 2017–2024).
  • Validate GPT outputs by comparing with Latent Dirichlet Allocation (LDA) topic modeling results.
  • Document limitations and propose verification and transparency strategies.

Experimental results

Research questions

  • RQ1Can a GPT model perform initial coding in thematic analysis while allowing researchers to verify and refine outputs?
  • RQ2How does GPT-generated coding compare with traditional manual coding and with topic modeling (LDA) in UN policy documents?
  • RQ3What prompts and knowledge-base design improve GPT performance for thematic analysis?
  • RQ4What are the limitations and ethical considerations of AI-assisted thematic analysis, and how can they be mitigated?

Key findings

  • The custom GPT model generated over 700 distinct codes from 63 UN policy documents and press releases (2017–March 2024).
  • GPT coding captures a wide range of AI-related themes, from ethics and governance to security, and reflects shifts in UN discourse.
  • GPT outputs were generally descriptive rather than interpretive and contained occasional quotation and code-naming errors, requiring manual review.
  • Topic modeling (LDA) provided a broader abstract validation layer, showing complementary insights to GPT coding.
  • OpenAI policy changes in 2024 restricted direct quotations, necessitating reliance on paraphrase with manual quotation verification.
  • A balanced, hybrid AI-human workflow with prompt engineering and verification can enhance efficiency while maintaining rigor.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.