Predicting in-class engagement from biosignals via fine-tuned small language models
Monitoring student engagement in the classroom is essential for understanding learning behaviors and supporting effective instruction. In this study, we propose a method for predicting in-class engagement from biosignals using a fine-tuned small language model (SLM). Specifically, physiological sensor time-series data collected from wearable devices are transformed into textual prompts and used to fine-tune the SLM for classification. Unlike conventional machine learning and deep learning models that directly process numerical features, our approach utilizes prompt-based representations of temporal features (per-minute medians over a 10-minute window) and statistical summaries (mean, standard deviation, maximum, and minimum). Through experiments on real-world classroom data, we find that fine-tuned SLMs achieve performance comparable to traditional machine learning and BERT-based approaches. Among the evaluated models, the fine-tuned Phi-3.5 model with temporal features shows the strongest overall performance. While differences across models are relatively small in terms of overall accuracy, variations are observed in class-wise behavior, particularly across engagement-related classes. To obtain insights into model predictions, we trained a proxy model and applied SHAP analysis, suggesting that physiological features such as acceleration, heart rate, and skin temperature are associated with engagement-related predictions. These results suggest that prompt-based SLMs have potential as a framework for combining predictive modeling and interpretability in educational data analysis.
Authors
- Yusuke Fukazawa (ORCID: https://orcid.org/0000-0001-9834-9339)
- Rika Tanaka (ORCID: https://orcid.org/0009-0002-4031-1818)
Institutions
- Sophia University (JP)
Publication Details
- Journal
- Journal of Ambient Intelligence and Humanized Computing
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1007/s12652-026-05142-y
- Primary Topic
- Online Learning and Analytics
- Type
- article
- Field-Weighted Citation Impact
- 0.00