DASKT: A Dynamic Affect Simulation Method for Knowledge Tracing

Xinjie Sun, Kai Zhang, Qi Liu, Shuanghong Shen, Fei Wang, Yuxiang Guo, Enhong Chen · DOI

Abstract

Knowledge Tracing (KT) is essential for intelligent tutoring systems to predict student performance. However, traditional models often ignore the student's emotional state, which significantly impacts learning. This paper presents DASKT (Dynamic Affect Simulation Knowledge Tracing), a novel framework that simulates affective states—such as frustration, concentration, boredom, and confusion—using only standard behavioral data like response times and attempt counts. By incorporating these simulated emotional trajectories into a deep learning architecture, DASKT improves both the accuracy and interpretability of knowledge mastery predictions.

Introduction

Traditional Knowledge Tracing models typically treat students as logical processors, focusing solely on the correctness of past responses. This "mechanistic" approach fails to account for the human element: a frustrated student interacts with material differently than one who is highly focused. While previous attempts to include "affect" (emotional states) relied on intrusive hardware like webcams or heart rate monitors, such methods are not scalable for large-scale online learning.

Figure 1: Comparison of two students (S1 and S2) with different affective states and their impact on knowledge state transitions over time.

DASKT addresses this gap by extracting emotional insights from "boring" log data—clicks, timing, and scores—already collected by learning platforms. As shown in Figure 1, students with similar initial knowledge can diverge significantly based on their affective journey.

The DASKT Framework

The DASKT pipeline consists of four primary modules designed to bridge the gap between raw behavioral logs and emotional intelligence:

  1. Mining Affective Factors (MAF): This module moves beyond binary "correct/incorrect" data to extract three behavioral dimensions: Confidence (accuracy relative to response time), Interest (engagement frequency), and Effort (number of attempts and inter-question intervals).
  2. Interval Computation of Affect (ICA): Recognizing that emotions persist over time, DASKT segments learning sessions into intervals. It uses K-means clustering to map affective factors into four discrete states: Frustration, Concentration, Boredom, and Confusion.
  3. Dynamic Affect Simulation Effect (DASE): This core innovation utilizes a Graph Attention Network (AT-GAT) to model emotional "momentum." It treats affect as a continuous trajectory where current mood is linked to both preceding and succeeding moments.
  4. ASE-LSTM: Finally, these simulated emotional states are fused with problem-specific data and processed through a Long Short-Term Memory (LSTM) network to predict actual knowledge mastery.
Figure 2: The DASKT architecture, illustrating the flow from Mining Affective Factors (MAF) to Interval Computation (ICA) and Dynamic Affect Simulation (DASE).

Experimental Evaluation

The model was evaluated on two prominent real-world datasets:

  • ASSIST2012: A large-scale dataset from the ASSISTments platform containing specialized affect labels used for validation.
  • ASSISTchall: A longitudinal dataset (2004–2007) featuring long student learning trajectories, serving as a rigorous test for sequence modeling.

Key Results

DASKT outperformed 12 state-of-the-art baseline models, including DKT, GKT, and DIMKT. On the ASSISTchall dataset, DASKT achieved an AUC of 0.8529, a substantial leap over the previous best-in-class model (DIMKT at 0.8074).

The simulation proved particularly reliable at identifying Boredom, with over 80% consistency. Furthermore, the inclusion of emotional "momentum" via GATs was critical; removing this component led to a significant drop in performance, confirming that emotions are trajectories rather than isolated snapshots.

Conclusion and Future Work

DASKT demonstrates that behavioral proxies are a viable and scalable substitute for expensive emotional sensors in educational technology. By providing a "knowledge state journey," the model offers teachers interpretable insights into when and why a student’s mastery might be dipping due to emotional factors.

Future research will focus on applying this affect-aware approach to Cognitive Diagnosis and addressing the challenge of "internal" emotional shifts that do not manifest in overt clicking behavior. While DASKT requires metadata like response times, its success suggests that emotional intelligence is a vital component for the next generation of intelligent tutoring systems.

Summary updated

BibTeX
@article{sun2025daskt,
  author = {Xinjie Sun and Kai Zhang and Qi Liu and Shuanghong Shen and Fei Wang and Yuxiang Guo and Enhong Chen},
  title = {{DASKT: A Dynamic Affect Simulation Method for Knowledge Tracing}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2025},
  doi = {10.1109/tkde.2025.3526584},
}
Figure