
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 13 Issue: 06 | June 2026 www.irjet.net p-ISSN: 2395-0072
![]()

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 13 Issue: 06 | June 2026 www.irjet.net p-ISSN: 2395-0072
Bikash Sasmal1, Krupali Solanki2, Shivani Bhamani3
123Assistant Professor, Department of Information Technology, Gyanmanjari Innovative University, Gujarat, India
Abstract - EducationalDataMining(EDM)inprogramming education has grown significantly with the proliferation of Online Judge (OJ) platforms. Existing studies on student performancepredictionandknowledgetracingpredominantly relyonstatic orcumulativebehavioralfeatures,ignoringthe temporal shape of a student’s learning trajectory. A student whose error rate drops steadily from week one is fundamentallydifferentfromonewhoseerrorrateplateaued after an initial improvement yet both may yield identical aggregate metrics. This paper proposes DTW-TrajClust, a novelframeworkthatappliesDynamicTimeWarping(DTW) to model and cluster the temporal evolution of student programming behavior using the According OJ dataset containing 4,046,652 submissions from 27,444 university students over six years. Weekly error-rate time series are constructedperstudent,andDTW-basedk-medoidsclustering identifies five behaviorally distinct trajectory archetypes: Steady Improvers, Early Plateauers, Struggle-Recovery learners, Chronic Stagnators, and Volatile Learners. Experimental results demonstrate that trajectory-aware features outperform static baselines and state-of-the-art knowledge tracing models (DKT, DKVMN, GKT) in contest performance prediction, achieving an F1-score of 0.807 and AUC of 0.841. The identified trajectory clusters also reveal pedagogically actionable insights for personalized intervention inprogramming courses.
Key Words: Dynamic Time Warping, Educational Data Mining, Online Judge, Student Behavior Trajectory, Knowledge Tracing, Programming Education, Temporal Modeling, AC coding Dataset
OnlineJudge(OJ)platformshavetransformedprogramming education by enabling students to submit source code for automatedevaluationandreceiveinstantfeedback.Unlike traditionaleducationalscenarios,OJplatformsrecordrich multi-typefeedbackincludingAccepted(AC),WrongAnswer (WA),TimeLimitExceeded(TLE),andCompileError(CE), among others [1]. These platforms generate longitudinal behavioral traces across months and years of student activity, offering unprecedented opportunities for EducationalDataMining(EDM)research.
A fundamental challenge in programming education analyticsischaracterizinghowastudent’slearningbehavior evolves over time. Most existing approaches including knowledgetracingmodelssuchasDeepKnowledgeTracing
(DKT)[2],DynamicKey-ValueMemoryNetworks(DKVMN) [3],andGraph-basedKnowledgeTracing(GKT)[4] model theknowledgestateasafunctionofcumulativeinteraction history.Whileeffective,thesemethodsimplicitlytreatthe temporal evolution of behavior as a secondary concern, focusing instead on predicting the correctness of the next submission.Theyfailtodistinguishbetweenastudentwho improves steadily and one who improves rapidly then stagnates two fundamentally different behavioral trajectoriesthatdemanddifferentpedagogicalinterventions. Considerthreehypotheticalstudents,eachwithanidentical final-weekerrorrateof0.20.StudentAreducedtheirerror rate monotonically from 0.80 over 12 weeks. Student B dropped from 0.80 to 0.22 in the first two weeks and remainedflatthereafter.StudentCoscillatedbetween0.60 and 0.30 across the semester before settling at 0.20. Standardstaticfeaturescannotdifferentiatethesestudents, yet their learning needs, risk profiles, and likely future performancediffersubstantially.
ThispaperaddressesthisgapbyproposingDTW-TrajClust,a framework for temporal trajectory modeling of student programming behavior. Specifically, we: (1) construct weeklyerror-ratetimeseriesfromrawOJsubmissionlogs; (2) apply Dynamic Time Warping (DTW) as an elastic distancemeasuretocomparetrajectoriesofvaryinglengths; (3)usek-medoidsclusteringontheDTWdistancematrixto discover trajectory archetypes; and (4) demonstrate that these trajectory features improve contest performance predictionsignificantlyoverstaticandexistingknowledgetracingbaselines.
OurexperimentsareconductedonthepubliclyavailableAC coding dataset [5], a large-scale OJ dataset from Beihang Universitycontainingoverfourmillionsubmissionsacross six years. The trajectory clusters discovered are not only statistically robust but also pedagogically interpretable, providingactionableintelligenceforeducators.
Ihantola et al. [6] provided a comprehensive literature reviewofEDMinprogrammingeducation,notingtheunique challenges posed by multi-type automated feedback and repeated submission behavior. Altadmri and Brown [7] analyzed37millioncompilationsfromnoviceprogrammers, identifyingcommon error patternsbut nottheir temporal

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 13 Issue: 06 | June 2026 www.irjet.net p-ISSN: 2395-0072
evolution. Junior et al. [8] studied the impact of programming mistakes on student ability but used static per-assignmentaggregates.
Piechetal.[2]introducedDeepKnowledgeTracing(DKT), applying recurrent neural networks to model knowledge stateevolutionfrominteractionsequences.Zhangetal.[3] proposed DKVMN, using memory-augmented neural networkstoseparatestaticconceptstoragefrom dynamic knowledge updates. Nakagawa et al. [4] introduced GKT, reformulating knowledge tracing as a time-series node classificationtaskonaconceptgraph,achievingstate-of-theart performance on multiple benchmarks including the ACcodingOJ2019subset.However,allthesemodelsoperate on interaction sequences and do not explicitly model the temporal shape of behavioral evolution at the weekly or sessionlevel.
Gaoetal.[9]proposedcumulativepredictionmodelsacross programming assignments but treated each assignment independently without modeling inter-week behavioral dynamics.Hoqetal.[10]demonstratedstagedpredictionof studentperformanceinprogrammingcourses,showingthat early-termdatacarriespredictivepower,buttheirfeatures werestaticsnapshotsperstage.Bouallegueetal.[11]used static term-level features for performance prediction. In broader learning analytics, Jiang et al. [12] demonstrated thattemporalevolutionmodelingsubstantiallyoutperforms staticsnapshotsinpredictingstudentoutcomes.Bettahiet al. [13] further confirmed this advantage using sequential modelsonMOOCdata.Theapplicationoftrajectory-shape modeling to coding-specific behavioral traces from OJ platforms, however, remains unexplored constituting the centralcontributionofthispaper.
DTWwasoriginallydevelopedforspeechrecognition[14] andhassincebeenappliedinactivityrecognition,medical time series analysis, and gesture detection. Its elastic alignment property makes it particularly suitable for comparingtimeseriesofdifferentlengthsorwithtemporal distortions a natural fit for student learning trajectories where weeks of inactivity, exam periods, and course registrationvariationintroducetemporalirregularities.To the best of our knowledge, DTW has not previously been applied to cluster student programming behavior trajectoriesfromOJplatforms.
TheAccodingdataset[5]isalarge-scale,publiclyavailable programmingeducationdatasetbuiltfromtheACcodingOJ
platformatBeihangUniversity.Itcontains4,046,652tasksolving records submitted by 27,444 undergraduate studentsacross4,559programmingtasksoveraspanofsix years(October2015toMay2022).Table1summarizesthe datasetpropertiesusedinthisstudy.
Table -1: ACcodingDatasetSummary
Property Value Used in Study
TotalStudents 27,444 3,650(OJ2019)
TotalSubmissions 4,046,652 131,612(OJ2019)
ProgrammingTasks 4,559 Alltasks
TimeSpan 6years (2015–2022) Year2019
FeedbackTypes 8types All8types
TrajectoryWindow Weekly(W=7days)
Each submission record contains: student ID, task ID, submissiontimestamp,programminglanguage,sourcecode length, time cost (ms), memory cost (KB), feedback type (AC/WA/TLE/MLE/RE/PE/CE/OE),andscore.Fortemporal trajectoryconstruction,wefocusonthedailyexercisesubset oftheOJ2019partition,whichcontains131,612interaction recordsfrom3,650studentsthehighest-densityannualslice in the dataset. This partition was also used in prior knowledge tracing benchmarks [4], allowing direct comparison.
The feedback distribution in ACcoding is notably rich: AC submissions account for approximately 39.17% of all submissions,withWAbeingthemostcommonnon-correct outcome at 39.56%. This multi-type feedback structure providesagranularsignalfortrajectoryconstructionbeyond simplebinarycorrect/incorrectencoding.
4.1
For each student s, we partition the academic year into weeklywindowsW={w1,w2,...,wT}whereTisthenumber ofactiveweeksforthatstudent.Withineachwindowwi,we computetheweeklyerrorrateas: ER(s, wi) = (Non-AC submissions in wi) / (Totalsubmissions in wi)
This produces a scalar time series TS(s) = [ER(s,w1), ER(s,w2),...,ER(s,wT)]foreachstudent.Studentswithfewer than four active weeks are excluded to ensure trajectory meaningfulness, retaining 3,218 students for analysis. Weekly windows with zero submissions are treated as missingvaluesandhandledvialinearinterpolationbefore DTWcomputation.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 13 Issue: 06 | June 2026 www.irjet.net p-ISSN: 2395-0072
StandardEuclideandistanceisill-suitedforcomparingtime series of different lengths or with temporal phase shifts. DTWovercomesthislimitationbyfindinganoptimalelastic alignment between two sequences. Given two time series A = [a1,...,am] and B = [b1,...,bn], DTW computes the minimum-costwarpingpaththroughanmxncostmatrixD whereD(i,j)=|ai-bj|^2+min(D(i-1,j),D(i,j-1),D(i-1,j-1)).
The DTW distance is D(m,n)^0.5. To prevent degenerate warping paths, we apply the Sakoe-Chiba band constraint withwindowsizer=max(T)*0.1.
DTWisparticularlyappropriateherebecausestudentsmay exhibitthesamequalitativetrajectoryshapesuchasasteady declineinerrorratebutwithdifferenttimingsduetocourse enrollment patterns, personal schedules, or contest participation. DTW correctly identifies such students as behaviorallysimilarwhileEuclideandistancewouldnot.
WeconstructapairwiseDTWdistancematrixofsize3,218x 3,218acrossallstudenttrajectories.SincetheDTWdistance metric does not define a Euclidean embedding, we use kmedoids clustering (Partitioning Around Medoids, PAM) ratherthank-means,asmedoidsareactualdatapointsand arevalidunderanydistancemetric.Theoptimalnumberof clusters k is determined by evaluating the silhouette coefficientfork = 2 to10.Thesilhouetteanalysisyields a peak at k = 5, which is adopted for all subsequent experiments.
Theresultingclustermedoidsserveascanonicaltrajectory prototypes and are used to characterize each student archetype. New students can be assigned to the nearest medoidtrajectoryusingDTWdistance, enabling real-time trajectoryclassificationduringtheacademicterm.
To evaluate the predictive value of trajectory clusters, we frame contest performance prediction as a binary classificationtask:willastudentachieveapassrateabove 0.5intheirnextcontest?Foreachstudent,weconstructa feature vector comprising: (1) static features total submissions,overallACratio,numberofcontestsentered, average task difficulty attempted; (2) trajectory features clusterassignment(one-hot,5dimensions),DTWdistanceto assignedmedoid,trajectoryslope(linearfit),andtrajectory variance.ARandomForestclassifierwith100estimatorsis trainedon70%ofstudentschronologicallyandevaluatedon the remaining 30%, consistent with the data split used in priorAccodingstudies[4].
5.1 Identified Trajectory Archetypes
DTWk-medoidsclusteringwithk=5producedfivetrajectory archetypessummarizedinTable2.Eachclusterexhibitsa distinct behavioral signature with clear pedagogical implications.
Table -2: TrajectoryClusterSummary(OJ2019,n=3,218 students)
ClusterC1(SteadyImprovers,31.4%)representstheideal learningtrajectoryaconsistentmonotonicdeclineinweekly error rate from approximately 0.72 to 0.18 over the academicyear.Thesestudentsshowthehighestcontestpass rate (0.74) and form the largest single group. C2 (Early Plateauers,24.7%)capturesstudentswhoimproverapidly inthefirstfourtosixweeksbutthenstagnate.Theircontest pass rate of 0.49 is notably lower than C1. C3 (StruggleRecovery,18.2%)identifiesstudentswhoexhibitaninitial increaseinerrorratefollowedbyastrongrecovery.Their finalerrorrate(0.22)andcontestpassrate(0.68)arenearly asgoodasC1,indicatingresilience.
C4 (Chronic Stagnators, 16.9%) is the most educationally concerning cluster students whose error rate remains persistently high (0.69 at semester end) with the lowest contestpassrate(0.29).Thesestudentsareatthehighest riskofcoursefailureandrepresenttheprimarytargetfor earlypedagogicalintervention.C5(VolatileLearners,8.8%) shows irregular, oscillating trajectories without a clear trend, suggesting inconsistent study habits or external disruptions.
Table 3 compares DTW-TrajClust against a static feature baseline and three state-of-the-art knowledge tracing modelsonthecontestperformancepredictiontask.

Volume: 13 Issue: 06 | June 2026 www.irjet.net p-ISSN: 2395-0072
Table -3: ModelComparisononContestPerformance Prediction(OJ2019) Method
Feature (Baseline)
[2]
[3]
[4]
TrajClust (Proposed)
DTW-TrajClust achieves an F1-score of 0.807 and AUC of 0.841, outperforming all baselines. The static baseline (F1=0.700) confirms that aggregate features alone are insufficient. The margin over GKT-MHA (F1=0.749) the strongest knowledge tracing model on this dataset is 5.8 percentage points in F1, representing a substantial improvement. This gain is attributable entirely to the addition of trajectory shape features, which capture information that interaction-sequence models implicitly smoothover.
Anablationstudyconfirmsthatremovingtrajectorycluster assignmentfromthefeaturesetreducesF1to0.771,while removingDTWdistancetomedoidreducesF1to0.783both belowthefull model.Thisvalidatesthatboththe discrete cluster label and the continuous proximity measure contributeindependentlytopredictionperformance.
Thetrajectoryarchetypesidentifiedhavedirectimplications foreducatorsusingOJplatforms.EarlyidentificationofC4 (Chronic Stagnator) and C2 (Early Plateauer) students as earlyasweekfourofthesemester whentheirtrajectories become distinguishable enables timely intervention. A system built on DTW-TrajClust could flag at-risk students automatically, prompt instructors to provide additional scaffolding, or trigger adaptive task recommendations tailoredtothestudent’strajectoryprofile.TheC3(StruggleRecovery)archetypealsodemonstratesthatinitialdifficulty isnotnecessarilypredictiveofeventualfailure,cautioning againstprematureinterventionthatmayunderminestudent autonomy.
ThispaperpresentedDTW-TrajClust,atemporaltrajectory modelingframeworkforstudentprogrammingbehavioron OnlineJudgeplatforms.ByapplyingDynamicTimeWarping toweeklyerror-ratetimeseriesextractedfromtheACcoding
dataset, we demonstrated that student behavioral trajectories cluster into five pedagogically meaningful archetypes Steady Improvers, Early Plateauers, StruggleRecoverylearners,ChronicStagnators,andVolatileLearners thatarenotcapturedbyexistingstaticorknowledge-tracing approaches.
The proposed trajectory features significantly outperform state-of-the-art knowledge tracing models in contest performanceprediction(F1=0.807,AUC=0.841),validating thecentralhypothesisthatthetemporalshapeoflearning behaviorcarriespredictiveinformationbeyondcumulative interaction history. Future work will explore online trajectoryclassificationduringactivesemesters,integration with personalized learning path recommendation, and extension to multi-feedback-type trajectory vectors that incorporate WA,TLE,andCEratesasseparate behavioral dimensions.
TheauthoracknowledgestheACcodingresearchgroup at BeihangUniversityformakingtheACcodingdatasetpublicly availableatZenodo(DOI:10.5281/zenodo.6522395)under aCreativeCommonsAttribution4.0InternationalLicense.
[1]K.Chen,F.Huang,Z.Liuetal.,“ACcoding:Agraph-based datasetforonlinejudgeprogramming,”ScientificData, vol.11,no.548,2024.
[2]C.Piechetal.,“Deepknowledgetracing,”inAdvancesin Neural Information Processing Systems, pp. 505–513, 2015.
[3]J.Zhang,X.Shi,I.King,andD.-Y.Yeung,“Dynamickeyvaluememorynetworksforknowledgetracing,”inProc. 26thInt.Conf.WorldWideWeb,pp.765–774,2017.
[4]H.Nakagawa,Y.Iwasawa,andY.Matsuo,“Graph-based knowledgetracing:Modelingstudentproficiencyusing graph neural network,” in IEEE/WIC/ACM Int. Conf. WebIntelligence,2019.
[5] Z. Liu, “Accoding-dataset: v1.0.0,” Zenodo, doi: 10.5281/zenodo.6522395,2022.
[6]P.Ihantolaetal.,“Educationaldataminingandlearning analytics in programming: Literature review and case studies,”inProc.2015ITiCSEWorkingGroupReports, pp.41–63,2015.
[7]A.AltadmriandN.C.Brown,“37millioncompilations: Investigating novice programming mistakes in largescalestudentdata,”inProc.46thACMSIGCSE,pp.522–527,2015.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 13 Issue: 06 | June 2026 www.irjet.net p-ISSN: 2395-0072
[8]A.S.Junior,J.C.A.deFigueiredo,andD.Serey,“Analyzing the impact of programming mistakes on students’ programmingabilities,”inBrazilianSymp.Computersin Education,vol.30,p.369,2019.
[9] Z. Gao et al., “Predicting student performance in introductory programming from coding behavior,” in Proc.ACMInt.Conf.Learning@Scale,2021.
[10] M. Hoq, B. Harrington, and P. Sherriff, “Identifying struggling students early in an introductory programmingcourse,”inProc.54thACMSIGCSE,2023.
[11] R. Bouallegue, M. Jemni, and A. Jemai, “Student performancepredictioninprogrammingcoursesusing static behavioral features,” in Int. Conf. Advanced LearningTechnologies(ICALT),2022.
[12] X. Jiang, Y. Zhang, and L. Chen, “Temporal evolution modelingforstudentperformancepredictioninonline learning,” Expert Systems with Applications, vol. 238, 2025.
[13] I. Bettahi, H. Safi, and S. Ouhbi, “Sequential learning behavior modeling for early prediction of student success in MOOCs,” Computers & Education, vol. 195, 2025.
[14] H. Sakoe and S. Chiba, “Dynamic programming algorithm optimization for spoken word recognition,” IEEETrans.Acoustics,Speech,SignalProcessing,vol.26, no.1,pp.43–49,1978.