Temporal Modeling of LMS Logs and Zero-Shot LLM Prediction: A Multi-Course Study in Moodle
Abstract
1. Introduction
2. Background
3. Methodology
3.1. Data Collection
- Activity Logs: which contained timestamped interaction events performed by each student.
- Grade Reports: which included the final course grade (“Course Total”) for each student.
3.2. Preprocessing and Feature Engineering
3.2.1. Temporal Segmentation Algorithm
| Algorithm 1: Temporal Segmentation of LMS Logs |
| 1. Extract the week number from each timestamp in the log file. 2. Identify: START_WEEK = earliest week with student activity END_WEEK = latest week with student activity 3. Compute the total duration: RANGE = END_WEEK - START_WEEK 4. Divide the duration into three equal segments: BOUNDARY_1 = START_WEEK + (RANGE/3) BOUNDARY_2 = START_WEEK + (2 × RANGE/3) 5. For each log entry: IF week ≤ BOUNDARY_1: assign “Early” ELSE IF week ≤ BOUNDARY_2: assign “Middle” ELSE: assign “Late” 6. For each student: Calculate: EARLY_RATIO = (# events in Early)/(total events) MIDDLE_RATIO = (# events in Middle)/(total events) LATE_RATIO = (# events in Late)/(total events) |
3.2.2. Temporal Feature Engineering
3.3. Hybrid Processing Model
3.3.1. Clustering of Temporal Behaviors
3.3.2. Statistical Analysis
3.3.3. LLM-Based Zero-Shot Prediction
| Student temporal activity summary: - Early ratio: {early_ratio} - Middle ratio: {middle_ratio} - Late ratio: {late_ratio} - Weekend ratio: {weekend_ratio} - Night ratio: {night_ratio} - Total events: {total_events} Based on these engagement patterns, predict the student’s expected performance tier (High/Medium/Low) for the course final grade. |
4. Experimental Evaluation
4.1. Experimental Protocol
4.2. Clustering and Statistical Results by Course
4.2.1. Linguistic Course
4.2.2. Fundamentals of Research Methods Course
4.2.3. Social Science Course
4.3. Cross-Course Analysis of Temporal Behaviors
- Cluster meanings were not consistent across courses
- 2.
- Research Methods and Palestinian Studies demonstrated statistically significant performance differences
- 3.
- The Arabic Language course showed no significant relationship
- 4.
- General behavioral patterns across courses
- Early and steady engagement was generally associated with higher performance (observed in two courses) (Peach et al., 2019 [21]).
- Heavy late engagement was often linked to lower outcomes.
- High weekend or night activity was not necessarily negative; in some cases (e.g., Palestinian Studies), it corresponded with strong academic achievement, especially in theoretical or reading-heavy courses [6].
- 5.
- The “middle period” was nearly inactive across all courses
4.4. LLM Zero-Shot Prediction Results
- Case 1: Correct Medium Prediction (Structured Early Learner)
- Case 2: Overestimated Prediction (Procrastination/Late-Heavy Profile)
- Case 3: Underestimated High Performer (Strong Early Engagement)
5. Discussion
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Rotelli, D.; Monreale, A. Processing and Understanding Moodle Log Data and Their Temporal Dimension. J. Learn. Anal. 2023, 10, 126–141. [Google Scholar] [CrossRef]
- Khan, M.; Naz, S.; Khan, Y.; Zafar, M.; Khan, M.; Pau, G. Utilizing Machine Learning Models to Predict Student Performance from LMS Activity Logs. IEEE Access 2023, 11, 86953–86962. [Google Scholar] [CrossRef]
- Romero, C.; Ventura, S. Educational Data Mining and Learning Analytics: An Updated Survey. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2020, 10, e1355. [Google Scholar] [CrossRef]
- McKenna, B.A.; Wehr, J.B.; Kopittke, P.M. Quantifying Online Engagement at Three Levels of Undergraduate Study. Cogent Educ. 2024, 11, 2345939. [Google Scholar] [CrossRef]
- Saqr, M.; López-Pernas, S.; Helske, S.; Hrastinski, S. The Longitudinal Association between Engagement and Achievement Varies by Time, Students’ Profiles, and Achievement State: A Full Program Study. Comput. Educ. 2023, 199, 104787. [Google Scholar] [CrossRef]
- Sher, V.; Hatala, M.; Gašević, D. When Do Learners Study?: An Analysis of the Time-of-Day and Weekday-Weekend Usage Patterns of Learning Management Systems from Mobile and Computers in Blended Learning. J. Learn. Anal. 2022, 9, 1–23. [Google Scholar] [CrossRef]
- Lee, J.; Rew, J. Memory-Augmented Large Language Model for Enhanced Chatbot Services in University Learning Management Systems. Appl. Sci. 2025, 15, 9775. [Google Scholar] [CrossRef]
- Buschetto Macarini, L.A.; Cechinel, C.; Batista Machado, M.F.; Faria Culmant Ramos, V.; Munoz, R. Predicting Students Success in Blended Learning—Evaluating Different Interactions inside Learning Management Systems. Appl. Sci. 2019, 9, 5523. [Google Scholar] [CrossRef]
- Papamitsiou, Z.; Economides, A.A. Temporal Learning Analytics Visualizations for Increasing Awareness during Assessment. Int. J. Educ. Technol. High. Educ. 2015, 12, 129–147. [Google Scholar] [CrossRef]
- Kim, S.; Cho, S.; Kim, J.Y.; Kim, D.-J. Statistical Assessment on Student Engagement in Asynchronous Online Learning Using the K-Means Clustering Algorithm. Sustainability 2023, 15, 2049. [Google Scholar] [CrossRef]
- Shawareb, N.; Ewais, A.; Dalipi, F. Utilizing Data Mining Techniques to Predict Students Performance Using Data Log from MOODLE. KSII Trans. Internet Inf. Syst. 2024, 18, 2564–2588. [Google Scholar] [CrossRef]
- You, J.W. Identifying Significant Indicators Using LMS Data to Predict Course Achievement in Online Learning. Internet High. Educ. 2016, 29, 23–30. [Google Scholar] [CrossRef]
- Dobashi, K.; Ho, C.P.; Fulford, C.P.; Higa, C.; Hara, K. Real-Time In-Class Data Mining of Moodle Click Logs for Learning Pattern Classification and Outlier Detection. In Proceedings of the International Conference on Intelligent Computing; Springer: Berlin/Heidelberg, Germany, 2025; pp. 213–224. [Google Scholar]
- Dalipi, F.; Imran, A.S.; Kastrati, Z. MOOC Dropout Prediction Using Machine Learning Techniques: Review and Research Challenges. In Proceedings of the 2018 IEEE Global Engineering Education Conference (EDUCON); IEEE: New York, NY, USA, 2018; pp. 1007–1014. [Google Scholar]
- Tempelaar, D.; Nguyen, Q.; Rienties, B. Learning Analytics and the Measurement of Learning Engagement. In Adoption of Data Analytics in Higher Education Learning and Teaching; Springer: Berlin/Heidelberg, Germany, 2020; pp. 159–176. [Google Scholar]
- Hsu, C.-Y.; Horikoshi, I.; Li, H.; Majumdar, R.; Ogata, H. Supporting “Time Awareness” in Self-Regulated Learning: How Do Students Allocate Time during Exam Preparation? Smart Learn. Environ. 2023, 10, 21. [Google Scholar] [CrossRef]
- Neshaei, S.P.; Davis, R.L.; Hazimeh, A.; Lazarevski, B.; Dillenbourg, P.; Käser, T. Towards Modeling Learner Performance with Large Language Models. arXiv 2024, arXiv:2403.14661. [Google Scholar] [CrossRef]
- Hayat, A.; Khan, B.; Hasan, M.R. Leveraging Language Models for Analyzing Longitudinal Experiential Data in Education. arXiv 2025, arXiv:2503.21617. [Google Scholar] [CrossRef]
- Johar, N.A.; Kew, S.N.; Tasir, Z.; Koh, E. Learning Analytics on Student Engagement to Enhance Students’ Learning Performance: A Systematic Review. Sustainability 2023, 15, 7849. [Google Scholar] [CrossRef]
- Mize, M.; Park, Y.; Carter, A. Technology-based Self-monitoring System for On-task Behavior of Students with Disabilities: A Quantitative Meta-analysis of Single-subject Research. J. Comput. Assist. Learn. 2022, 38, 668–680. [Google Scholar] [CrossRef]
- Peach, R.L.; Yaliraki, S.N.; Lefevre, D.; Barahona, M. Data-Driven Unsupervised Clustering of Online Learner Behaviour. NPJ Sci. Learn. 2019, 4, 14. [Google Scholar] [CrossRef]
- Jamil, M.A.; Khanam, S. Influence of One-Way ANOVA and Kruskal–Wallis Based Feature Ranking on the Performance of ML Classifiers for Bearing Fault Diagnosis. J. Vib. Eng. Technol. 2024, 12, 3101–3132. [Google Scholar] [CrossRef]
- Bubeck, S.; Chandrasekaran, V.; Eldan, R.; Gehrke, J.; Horvitz, E.; Kamar, E.; Lee, P.; Lee, Y.T.; Li, Y.; Lundberg, S. Sparks of Artificial General Intelligence: Early Experiments with Gpt-4. arXiv 2023, arXiv:2303.12712. [Google Scholar] [CrossRef]
- Rachel, B.; Xu, D.; Park, J.; Yu, R.; Li, Q.; Cung, B.; Fischer, C.; Rodriguez, F.; Warschauer, M.; Smyth, P. The benefits and caveats of using clickstream data to understand student self-regulatory behaviors: Opening the black box of learning processes. Int. J. Educ. Technol. High. Educ. 2020, 17, 13. [Google Scholar] [CrossRef]
- Spitzer, M.W.H.; Gutsfeld, R.; Wirzberger, M.; Moeller, K. Evaluating Students’ Engagement with an Online Learning Environment during and after COVID-19 Related School Closures: A Survival Analysis Approach. Trends Neurosci. Educ. 2021, 25, 100168. [Google Scholar] [CrossRef] [PubMed]
- Getman, A.; Boitcov, M.; Adamovich, K.; Costley, J. The Role of Engagement Strategies and Path-Dependency in Online Learning. Innov. Educ. Teach. Int. 2025, 62, 1305–1319. [Google Scholar] [CrossRef]
- Gao, C.; Terlizzese, T.; Scullin, M.K. Short Sleep and Late Bedtimes Are Detrimental to Educational Learning and Knowledge Transfer: An Investigation of Individual Differences in Susceptibility. Chronobiol. Int. 2019, 36, 307–318. [Google Scholar] [CrossRef]
- Xu, P.; Liu, J.; Jones, N.; Cohen, J.; Ai, W. The Promises and Pitfalls of Using Language Models to Measure Instruction Quality in Education. arXiv 2024, arXiv:2404.02444. [Google Scholar] [CrossRef]
- Floridi, L.; Chiriatti, M. GPT-3: Its Nature, Scope, Limits, and Consequences. Minds Mach. 2020, 30, 681–694. [Google Scholar] [CrossRef]
- Kasneci, E.; Seßler, K.; Küchemann, S.; Bannert, M.; Dementieva, D.; Fischer, F.; Gasser, U.; Groh, G.; Günnemann, S.; Hüllermeier, E. ChatGPT for Good? On Opportunities and Challenges of Large Language Models for Education. Learn. Individ. Differ. 2023, 103, 102274. [Google Scholar] [CrossRef]




| Cluster | Early | Middle | Late | Weekend | Night |
|---|---|---|---|---|---|
| 0 | 0.871 | 0.000 | 0.129 | 0.165 | 0.166 |
| 1 | 0.925 | 0.000 | 0.075 | 0.025 | 0.037 |
| 2 | 0.691 | 0.000 | 0.309 | 0.069 | 0.099 |
| Cluster | Mean Grade | Median | Count |
|---|---|---|---|
| 0 | 57.95 | 59 | 19 |
| 1 | 57.72 | 58 | 176 |
| 2 | 57.83 | 57.5 | 46 |
| Cluster | Early | Middle | Late | Weekend | Night |
|---|---|---|---|---|---|
| 0 | 0.737 | 0.000 | 0.263 | 0.084 | 0.231 |
| 1 | 0.918 | 0.000 | 0.082 | 0.015 | 0.195 |
| 2 | 0.932 | 0.000 | 0.068 | 0.129 | 0.143 |
| Cluster | Mean Grade | Median | Count |
|---|---|---|---|
| 0 | 86.08 | 86.5 | 24 |
| 1 | 81.79 | 83 | 95 |
| 2 | 87.32 | 90 | 38 |
| Cluster | Early | Middle | Late | Weekend | Night |
|---|---|---|---|---|---|
| 0 | 0.620 | 0.000 | 0.380 | 0.147 | 0.163 |
| 1 | 0.929 | 0.000 | 0.071 | 0.023 | 0.056 |
| 2 | 0.881 | 0.000 | 0.119 | 0.354 | 0.402 |
| Cluster | Mean Grade | Median | Count |
|---|---|---|---|
| 0 | 69.99 | 70 | 47 |
| 1 | 70.51 | 71 | 110 |
| 2 | 72.32 | 73 | 18 |
| Course | Accuracy (%) |
|---|---|
| Research Methods | 51.0% |
| Arabic Language | 45.2% |
| Palestinian Studies | 46.0% |
| Overall Accuracy | 47.4% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Shehada, W.; Ashqar, H.I.; Ewais, A.; Hatzilygeroudis, I. Temporal Modeling of LMS Logs and Zero-Shot LLM Prediction: A Multi-Course Study in Moodle. Appl. Sci. 2026, 16, 2707. https://doi.org/10.3390/app16062707
Shehada W, Ashqar HI, Ewais A, Hatzilygeroudis I. Temporal Modeling of LMS Logs and Zero-Shot LLM Prediction: A Multi-Course Study in Moodle. Applied Sciences. 2026; 16(6):2707. https://doi.org/10.3390/app16062707
Chicago/Turabian StyleShehada, Wala’a, Huthaifa I. Ashqar, Ahmed Ewais, and Ioannis Hatzilygeroudis. 2026. "Temporal Modeling of LMS Logs and Zero-Shot LLM Prediction: A Multi-Course Study in Moodle" Applied Sciences 16, no. 6: 2707. https://doi.org/10.3390/app16062707
APA StyleShehada, W., Ashqar, H. I., Ewais, A., & Hatzilygeroudis, I. (2026). Temporal Modeling of LMS Logs and Zero-Shot LLM Prediction: A Multi-Course Study in Moodle. Applied Sciences, 16(6), 2707. https://doi.org/10.3390/app16062707

