Thematic Analysis with Open-Source Generative AI and Machine Learning: A New Method for Inductive Qualitative Codebook Development

Andrew Katz,Gabriella Coloyan Fleming,Joyce Main
2024-09-29
Abstract:This paper aims to answer one central question: to what extent can open-source generative text models be used in a workflow to approximate thematic analysis in social science research? To answer this question, we present the Generative AI-enabled Theme Organization and Structuring (GATOS) workflow, which uses open-source machine learning techniques, natural language processing tools, and generative text models to facilitate thematic analysis. To establish validity of the method, we present three case studies applying the GATOS workflow, leveraging these models and techniques to inductively create codebooks similar to traditional procedures using thematic analysis. Specifically, we investigate the extent to which a workflow comprising open-source models and tools can inductively produce codebooks that approach the known space of themes and sub-themes. To address the challenge of gleaning insights from these texts, we combine open-source generative text models, retrieval-augmented generation, and prompt engineering to identify codes and themes in large volumes of text, i.e., generate a qualitative codebook. The process mimics an inductive coding process that researchers might use in traditional thematic analysis by reading text one unit of analysis at a time, considering existing codes already in the codebook, and then deciding whether or not to generate a new code based on whether the extant codebook provides adequate thematic coverage. We demonstrate this workflow using three synthetic datasets from hypothetical organizational research settings: a study of teammate feedback in teamwork settings, a study of organizational cultures of ethical behavior, and a study of employee perspectives about returning to their offices after the pandemic. We show that the GATOS workflow is able to identify themes in the text that were used to generate the original synthetic datasets.
Computation and Language,Artificial Intelligence,Human-Computer Interaction
What problem does this paper attempt to address?
The paper attempts to address the issue of how to approximate thematic analysis in social science research using open-source generative text models and machine learning techniques. Specifically, a major challenge faced by researchers is that traditional manual coding methods are time-consuming, labor-intensive, and difficult to scale when dealing with large volumes of text data. For example, hundreds of hours of audio recordings, thousands of written documents, and responses to open-ended survey questions may contain important insights into phenomena, but the sheer volume of data makes manual analysis impractical. Therefore, this paper proposes a workflow named GATOS (Generative AI-enabled Theme Organization and Structuring), which aims to combine open-source machine learning technologies, natural language processing tools, and generative text models to generate qualitative codebooks in an automated or semi-automated manner. This approach effectively identifies themes and sub-themes from large volumes of text data, improving analysis efficiency while maintaining the quality and accuracy consistent with traditional thematic analysis methods.