GET-Tok: A GenAI-Enriched Multimodal TikTok Dataset Documenting the 2022 Attempted Coup in Peru

Gabriela Pinto, Keith Burghardt, Kristina Lerman, Emilio FerraraarXiv 2024 · arXiv

TL;DR

GET-Tok is a novel pipeline that leverages Generative AI to transform raw TikTok data into a rich, multimodal dataset for social science research. By applying this framework to the 2022 attempted coup in Peru, the authors demonstrate how tools like Whisper and GPT-4 can bridge critical gaps in analyzing non-English social media content during political crises.

What Problem Does This Paper Address?

Social media is a primary battleground for political discourse, yet research remains heavily skewed toward Twitter (X) and English-speaking contexts. TikTok, despite its explosive growth, is notoriously difficult to study. Its Research API often lacks voice transcripts, and it provides no native support for Optical Character Recognition (OCR) or descriptive metadata for video content.

This "data poverty" makes it nearly impossible for researchers to perform nuanced, large-scale analysis of how political events—like the 2022 Peruvian constitutional crisis—unfold on the platform. The authors address this by creating a pipeline that "enriches" raw TikTok data with AI-generated text, allowing for deeper multimodal analysis of stance and sentiment in understudied regions.

Methods

The GET-Tok framework follows a multi-stage pipeline to augment raw social media data:

  1. Collection & Extraction: The team used the TikTok Research API to identify relevant videos via keywords and hashtags, then utilized the Pyktok module to download the MP4 files.
  2. Audio Enrichment: Using OpenAI’s Whisper (large-v3), the pipeline extracts and transcribes audio. This is a significant step up from TikTok’s native auto-captions, which are often missing or inaccurate.
  3. Visual Enrichment: The pipeline uses OpenCV to capture frames (1 out of every 300). These frames are fed into GPT-4 Vision (gpt-4-vision-preview) to generate objective descriptions of the action and perform OCR on any text appearing in the video.
  4. Multimodal Stance Detection: Finally, the transcript, video description, and keyframes are fed back into GPT-4 with a specific prompt to classify the video's stance (e.g., "support," "no support," or "neutral" regarding President Pedro Castillo).
Fig. 1. (a) Outline of the proposed GET-Tok framework and (b) its application to classify an actual TikTok video

Datasets

The authors introduced the GET-Tok-Peru dataset:

  • Total Videos: 43,697 videos collected between November 20, 2022, and March 1, 2023.
  • Enriched Subset: 2,345 videos featuring Whisper-generated transcripts and GPT-4-generated visual descriptions.
  • Evaluation Set: 182 videos used to compare the quality of TikTok’s native transcripts against Whisper’s output.

Key Insights and Ideas

  • The Transcript Gap: TikTok’s native API-provided transcripts are incredibly sparse, appearing in only 1.4% to 15.3% of the videos depending on the date. Without GenAI augmentation, the vast majority of the "linguistic richness" of the platform is lost to researchers.
  • Quality Matters: Whisper (large-v3) significantly outperformed TikTok’s native transcription. As shown in Figure 5, Whisper correctly handled capitalization, punctuation, and complex Spanish spellings (like "extirpados") where the native transcript failed.
  • Multimodality is Essential: Stance detection on TikTok cannot rely on text alone. A video might have a neutral caption but contain highly partisan audio or visual symbols (like protest banners). By combining audio transcripts and visual descriptions, the researchers achieved a more holistic understanding of the content.
  • Real-world Correlation: The volume of TikTok posts closely mirrored major offline political events, such as the "Great March for Peace" and the police raid on the National University of San Marcos.
Timeline of Peruvian political events vs. TikTok post volume.

Key Results

  • Transcription Similarity: When comparing Whisper to TikTok's native transcripts, the authors found a high Pearson correlation ($r = 0.9816$) in word count, suggesting the core content was captured. However, the BETO embedding (a Spanish-specific BERT model) cosine similarity was $0.927$, indicating that while the "gist" is similar, Whisper provides much-needed nuance and correctness.
  • Qualitative Stance Accuracy: The pipeline successfully categorized videos into 'Pro-Castillo', 'Neutral', and 'Anti-Castillo' buckets. For example, it correctly identified "Anti-Castillo" sentiment in videos where the visual description noted donkey ears (a local insult) and the transcript criticized the government's ability to rule.
Comparison of TikTok vs. Whisper transcripts, highlighting Whisper's superior punctuation and spelling.

Limitations and Future Work

  • Acoustic Interference: Whisper still struggles with heavy background noise, which is common in field-recorded protest videos.
  • Loss of Nuance: Whisper currently omits emojis, which are vital for sentiment analysis on social media.
  • Cost and Access: The reliance on proprietary models like GPT-4 introduces costs and potential biases from OpenAI’s undisclosed training data.
  • Future Directions: The authors plan to incorporate human annotation to quantify the agreement between AI stance detection and human judgment, and to further explore bias detection within the AI-generated descriptions.

Summary updated

Abstract

TikTok is one of the largest and fastest-growing social media sites in the world. TikTok features, however, such as voice transcripts, are often missing and other important features, such as OCR or video descriptions, do not exist. We introduce the Generative AI Enriched TikTok (GET-Tok) data, a pipeline for collecting TikTok videos and enriched data by augmenting the TikTok Research API with generative AI models. As a case study, we collect videos about the attempted coup in Peru initiated by its former President, Pedro Castillo, and its accompanying protests. The data includes information on 43,697 videos published from November 20, 2022 to March 1, 2023 (102 days). Generative AI augments the collected data via transcripts of TikTok videos, text descriptions of what is shown in the videos, what text is displayed within the video, and the stances expressed in the video. Overall, this pipeline will contribute to a better understanding of online discussion in a multimodal setting with applications of Generative AI, especially outlining the utility of this pipeline in non-English-language social media. Our code used to produce the pipeline is in a public Github repository: https://github.com/gabbypinto/GET-Tok-Peru.
BibTeX
@misc{pinto2024get,
  author = {Gabriela Pinto and Keith Burghardt and Kristina Lerman and Emilio Ferrara},
  title = {{GET-Tok: A GenAI-Enriched Multimodal TikTok Dataset Documenting the 2022 Attempted Coup in Peru}},
  year = {2024},
  eprint = {2402.05882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05882},
}

Loading related content...

Figure