Abstract
The rapid expansion of online courses and social media has generated large volumes of unstructured learner-generated text. Understanding how learners construct knowledge in these spaces is crucial for analysing learning processes, informing content design, and providing feedback at scale. However, existing approaches typically rely on manual coding of well-structured discussion forums, which does not scale to the fragmented discourse found in online learning. This study proposes and validates a framework that combines a codebook inspired by the Interaction Analysis Model with an automated classifier to enable large-scale analysis of knowledge construction in unstructured online discourse. We adapt four comment-level categories of knowledge construction: Non-Knowledge Construction, Share, Explore, and Integrate. Three trained annotators coded a balanced sample of 20,000 comments from YouTube education channels. The codebook demonstrated strong reliability, with Cohen's kappa = 0.79 on the main dataset and 0.85--0.93 across four additional educational domains. For automated classification, bag-of-words baselines were compared with transformer-based language models using 10-fold cross-validation. A DeBERTa-v3-large model achieved the highest macro-averaged F1 score (0.841), outperforming all baselines and other transformer models. External validation on four domains yielded macro-F1 above 0.705, with stronger transfer in medicine and programming, where discourse was more structured and task-focused, and weaker transfer in language and music, where comments were more varied and context-dependent. Overall, the study shows that theory-driven, semi-automated analysis of knowledge construction at scale is feasible, enabling the integration of knowledge-construction indicators into learning analytics and the design of online learning environments.
Introduction
As online learning shifts from structured, moderated forums to "wild" social media environments like YouTube and TikTok, researchers face a significant data deluge. While these platforms host vibrant learner-generated discourse, the fragmented and non-linear nature of the text makes it difficult to assess whether actual knowledge construction is occurring. The Interaction Analysis Model (IAM) remains the gold standard for identifying phases of knowledge building, but its traditional application requires manual coding of threaded discussions—a process that does not scale to the noise and variety found in modern social media. This paper presents a framework for automatically classifying knowledge construction in unstructured discourse by adapting the IAM and training a high-performing DeBERTa-v3-large classifier.
Methodology
Codebook Adaptation
The authors adapted the traditional five-phase IAM into four "comment-level" categories better suited for independent messages: Non-Knowledge Construction (NonKC), Share, Explore, and Integrate. This adaptation allows for the classification of messages without requiring deep threading context, making it suitable for the fragmented discourse found in YouTube comments.
Model Architecture: DeBERTa-KC
To handle the inherent noise and class imbalance of online comments, the researchers developed DeBERTa-KC. This model utilizes a DeBERTa-v3-large backbone and integrates three specific components: Focal Loss to focus on "hard" examples (like the rarer Explore/Integrate phases), Label Smoothing to prevent overconfidence, and R-Drop regularization to ensure consistency by minimizing divergence between different dropout runs of the same input.
Results
The DeBERTa-v3-large model achieved a macro-averaged F1 score of 0.841, significantly outperforming traditional baselines like TF-IDF + Logistic Regression (~0.72). External validation across four distinct domains—Medicine, Language Learning, Music, and Programming—yielded macro-F1 scores above 0.705. Transfer was strongest in task-focused domains like Medicine and Programming, while more context-dependent areas like Music showed slightly weaker transfer due to linguistic variation in how information is shared.
Discussion and Conclusion
The study proves that deep educational theory can be successfully adapted into computationally tractable models. While the model currently treats comments as isolated units, it provides a reliable foundation for real-time learning analytics. Future work will explore sequence models to capture the temporal flow of entire threads and further refine the "Integrate" phase to better distinguish between the application and synthesis of knowledge. Ultimately, this research enables the integration of knowledge-construction indicators into the design of large-scale online learning environments.
Summary updated