Abstract
The research focus on teacher questions is justified by previous research emphasizing the essential role of questions in facilitating meaningful learning in science. Analysis of teacher questions has traditionally been based mainly on manual coding, which is extremely labour intensive. In this study we explore how both machine learning and large language models can be used for this purpose. Whereas machine learning approaches involve supervised training with extensive data, pre-trained large language models operate through prompt engineering. The automatic speech recognition text outputs of 23 physics lessons on the same topic from 23 science teachers were analysed with variety of techniques. The results revealed that the large language model approaches improved with few-shot approaches compared to zero-shot ones. Furthermore, few shot approaches outperformed the supervised machine learning approaches, yet human- and hand-crafted approaches continue to demonstrate their relevance. Implications for science teaching and learning are discussed.
Introduction
In science education, the quality of teacher questioning is a primary driver of student engagement and critical thinking. By following patterns such as Initiation-Response-Feedback (IRF), teachers guide students through complex scientific concepts. However, analyzing these interactions at scale is hindered by the "bottleneck" of manual coding. Researchers typically spend hours transcribing and annotating classroom video or audio, a process that is neither scalable nor sustainable for providing timely feedback to educators.
This study investigates the potential of automating this analysis using modern computational tools. The challenge is compounded by the nature of the data: authentic classroom speech captured via Automatic Speech Recognition (ASR). Unlike clean, written text, ASR outputs are often fragmented and lack punctuation—specifically question marks—which are the primary indicators of questions in written language. This research evaluates whether traditional Machine Learning (ML) models or Large Language Models (LLMs) can effectively identify teacher questions within these messy, unpunctuated transcripts.
Methodology
The researchers approached the problem as a binary classification task, aiming to distinguish "Question" from "Non-Question" segments in a dataset of 23 Finnish physics lessons. Each 90-minute lesson, focused on electricity and electrical energy, was recorded using teacher microphones and processed into 5-second ASR text intervals. A ground truth dataset was established through manual annotation of 1,480 content-related questions.
Three distinct methodologies were tested:
- Machine Learning (ML): Supervised models including Bag of Words (BoW) and a Finnish-specific BERT model were paired with Logistic Regression and Gradient-Boosted Trees.
- Hand-Crafted Rules (HCR): A domain expert developed a set of linguistic rules based on Finnish interrogative structures (e.g., "mitä on" / "what is"). These were evaluated both as a standalone classifier and as features integrated into the ML models.
- Large Language Models (LLMs): GPT-3.5 Turbo was utilized through various prompt engineering strategies, including zero-shot "Vanilla" prompts, Chain of Thought (CoT) reasoning, and Few-Shot learning (providing five annotated examples).
Results and Discussion
The experimental results highlight a significant performance gap between zero-shot and few-shot LLM configurations. While basic prompting struggled with the nuances of spoken educational discourse, the addition of just five examples (5-shot CoT) allowed the LLM to achieve an F1 score of 0.4302 and a Balanced Accuracy (BA) of 0.8428. This suggests that in-context learning is essential for adapting general-purpose models to specialized classroom data.
Interestingly, traditional methods remained highly competitive. The hybrid approach combining Bag of Words with Hand-Crafted Rules (BoW + HCR) achieved an F1 score of 0.431, nearly identical to the best LLM performance. The standalone HCR approach also performed remarkably well (F1: 0.436), demonstrating that human expertise in linguistic patterns still provides a robust baseline that AI models are only beginning to match.
Preliminary tests with GPT-4 indicated a substantial leap in performance (F1: 0.5797 on a sample lesson), suggesting that as model capabilities advance and costs decrease, LLMs will likely become the dominant tool for this task.
Conclusion
This research demonstrates that automated analysis of teacher questions in unpunctuated ASR transcripts is feasible, with few-shot LLMs and hybrid ML-human rule models showing the most promise. However, limitations remain. Current models rely solely on text, ignoring acoustic-prosodic cues like pitch and rhythm that often signal questions in speech. Furthermore, binary classification is only a first step; future work must focus on classifying the pedagogical quality and type of questions (e.g., open vs. closed).
Ultimately, these automated pipelines could enable scalable, real-time feedback systems for teachers, transforming how professional development is delivered and fostering more interactive, dialogic science classrooms.
Summary updated