DOI : 10.5281/zenodo.24855934
- Open Access

- Authors : Dr. Aradhana D, T Priyanka
- Paper ID : IJERTV15IS111951
- Volume & Issue : Volume 15, Issue 11 , November – 2026
- Published (First Online): 05-12-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
Explainable Student Performance Prediction and Early Risk Identification using Educational Data Mining: A Web-Based Machine Learning Framework
Dr. Aradhana D
Department of CSE (Data Science) Ballari Institute of Technology and Management, Ballari, India
T Priyanka
Department of CSE (Data Science) Ballari Institute of Technology and Management, Ballari, India
Abstract – Educational institutions generate large volumes of academic, behavioral, and demographic data, yet student evaluation is still largely manual and retrospective, so students at risk are often identified only after poor results appear. Managing prediction, risk analysis, and reporting through separate tools further limits their use by teachers without programming experience. To address this problem, this paper presents a web- based Student Performance Prediction system built on Educational Data Mining (EDM) that predicts a students final grade and classifies academic risk as High, Medium, or Low at an early stage. The platform accepts academic, behavioral, demographic, and social attributes, applies a reusable preprocessing pipeline, and compares Linear Regression, Random Forest, and XGBoost for grade prediction, with classification models for risk assessment. Model-based feature importance and personalized recommendations accompany each prediction, and a dashboard provides analytics and per-user prediction history. Using the UCI Student Performance datasets, XGBoost achieved the best regression performance (RMSE = 1.523, MAE = 0.863, R²
= 0.850) and 84.7% accuracy for risk classification. The framework brings grade prediction, risk assessment, explanation, and reporting into one low-cost, CPU-only application intended for educators, analysts, and institutions.
Index TermsEducational Data Mining, Student Performance Prediction, At-Risk Students, XGBoost, Random Forest, Explainable Machine Learning, Feature Importance, Early-Warning System.
-
INTRODUCTION
Educational institutions routinely record examination marks, attendance, assignment scores, and behavioral and social attributes for every student. Educational Data Mining (EDM) applies data-mining and machine-learning techniques to such records to discover patterns that explain and predict learning outcomes [1]. Extracting useful information from this data requires more than storing it: administrators must examine the available attributes, choose suitable analytical methods, and interpret the results in time to act on them.
The difficulty is particularly noticeable for teachers and academic coordinators who are familiar with their students but not with programming. Traditional evaluation depends on spreadsheets, static reports, and student-information systems that store results but rarely extract predictive insight from them. Moving between separate tools for analysis, prediction, and reporting interrupts the workflow, and students who are drifting
toward poor outcomes are frequently identified too late for effective support.
Recent studies have moved toward predictive and explainable EDM. Explainable models improve transparency and help educators trust automated decisions [2], [3]; prediction can be linked to concrete support recommendations [4]; learning-behavior data can drive early-warning systems [5]; and machine-learning frameworks have been applied to smart- campus analytics [6] and AI-assisted personalized learning [7]. However, most of these works address a single concern, and few deliver a complete, deployable pipeline that moves from student data to a grade prediction, a risk category, an explanation, and a recommendation within one usable application.
This paper presents a Student Performance Prediction system developed to bring these activities into a shared web application. Users can register and sign in, enter student information, obtain a predicted final grade and risk level, view the factors that influenced the prediction, and review previous predictions and analytics on a dashboard. The main contribution of this work is the integration of multi-model grade prediction, three-level risk classification, feature-importance explanation, and recommendation generation within a single, lightweight application that runs on CPU-only hardware. The system is designed to reduce manual effort in academic evaluation and to support timely, data-driven intervention.
The remainder of this paper is organized as follows. Section II reviews related work. Section III describes the proposed methodology. Section IV explains the system architecture. Section V discusses the implementation of the platform. Section VI presents the results and discussion. Section VII highlights the future scope, and Section VIII concludes the paper.
-
LITERATURE REVIEW
Advances in machine learning and Explainable AI (XAI) have introduced several approaches to analyzing educational data and supporting students at risk. Existing research focuses on improving prediction accuracy, making model decisions understandable, and linking predictions to interventions. This section reviews existing studies across four areas related to the proposed system.
-
Explainable Machine Learning in Educational Data Mining
Explainable techniques help educators understand why a model produces a particular prediction. Guleria et al. [2] applied explainable machine-learning methods to educational data for career counseling and identified the factors that most influence outcomes, improving the transparency of classifier decisions; their focus, however, lies on counseling rather than comprehensive academic-risk management. Islam et al. [3] combined EDM with explainable techniques to predict academic performance and provide interpretable results that support educators, but note limited generalization across datasets and institutions. A later study by Islam et al. [4] integrated XAI with performance prediction and academic- support recommendations, closely linking prediction, explanation, and student intervention, although explainability methods increase computational complexity and require careful interpretation.
-
Early-Warning and Behavior-Based Prediction
Early identification of students who need help is a central goal of EDM. Yang et al. [5] analyzed student learning behavior and developed a machine-learning early-warning system that flags students who may require academic support; the approach depends on learning-behavior data and therefore on continuous institutional data collection. Machine-learning-based prediction in smart-campus environments [6] further demonstrates the feasibility of driving academic analytics from institutional data.
-
Personalized Learning and AI-Assisted Support
Zhang et al. [7] used predictive models with SHAP-based explanations to examine how AI-assisted tutoring, study habits, absences, and parental support influence student performance, and showed that such explanations can support personalized interventions. Their findings were obtained in AI-tutoring settings and may not transfer directly to traditional classroom environments.
-
Ensemble Learning for Educational Prediction
Tree-based ensembles are widely used for tabular educational data. Cortez and Silva [8] showed that data-mining models, including tree-based methods, can predict secondary- school performance from demographic, social, and school- related attributes, and released the datasets used in this work. Random Forest [9] averages many decorreated decision trees to reduce variance, while XGBoost [10] builds trees sequentially to minimize a regularized objective and is known for strong accuracy on structured data.
The reviewed studies, summarized in Table I, demonstrate significant progress in individual areas: explainability, early warning, and support recommendation. However, these capabilities are not consistently combined into a single, lightweight analytical environment. The proposed system aims to address this gap by integrating multi-model grade prediction, risk classification, feature-importance explanation, and recommendations within one web application.
TABLE I
SUMMARY OF RELATED WORK
Ref.
Key Contribution
Limitation
[2] Explainable ML for identifying key educational factors
Career-counseling focus; not full risk management
[3] EDM with explainable prediction of performance
Limited generalization across datasets
[4] XAI integrated with prediction and support advice
Added computational complexity
[5] Learning-behavior analysis and early-warning system
Needs continuous institutional data collection
[7] SHAP-based study of AI tutoring and study habits
May not transfer to traditional classrooms
-
-
METHODOLOGY
The workflow implemented in the platform is organized around the operations performed on student data, from dataset preparation to grade prediction, risk classification, and explanation (Fig. 1). The training stages are executed offline, and the resulting model artifacts are used by the web application to serve predictions on demand.
Fig. 1. Machine-learning pipeline from student data to actionable insights.
-
Dataset Collection
The experiments use the publicly available UCI Student Performance datasets collected from two Portuguese secondary schools [8]. The mathematics file (student-mat.csv, 395 records) and the Portuguese-language file (student-por.csv, 649 records) share 33 attributes covering demographic (e.g., sex, age, address, family size), social (e.g., going out, alcohol consumption, free time), family (e.g., parental education and occupation, family support), and academic variables (e.g., study time, past failures, absences, and period grades G1 and G2). The target variable G3 is the final grade on a 020 scale. The two
files were combined to enlarge the training population and improve generalization across subjects.
-
Data Preparation and Preprocessing
The raw data undergo validation and type conversion, followed by numerical feature processing and one-hot encoding of categorical attributes. All transformations are packaged into a single preprocessing pipeline that is fitted on the training split only and then reused unchanged at inference time. This prevents data leakage and guarantees that a student entered through the web interface is processed exactly as the training data were.
-
Feature Engineering
Additional features are derived from the original attributes to expose relationships that individual columns do not capture. Engineered and encoded features form the input matrix used by all models, so that the comparison between algorithms is made on identical inputs.
-
TrainTest Split
The prepared data are divided into disjoint training and testing sets. Models are fitted on the training set and evaluated only on the held-out testing set, which ensures a fair estimate of performance on unseen students.
-
Grade Prediction Models
Three regression models of increasing capacity are trained: Linear Regression as an interpretable baseline; Random Forest [9], an ensemble of decorrelated decision trees whose predictions are averaged; and XGBoost [10], a gradient-boosted tree ensemble that minimizes the regularized objective
L = l(y, ) + (f), (f) = T + ½w² (1)
where l is a differentiable loss, f_k is the k-th tree, T is the number of leaves, and w are the leaf weights. Grade prediction is evaluated with Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R²):
RMSE = [ (1/n) (y )² ] (2)
MAE = (1/n) |y | (3)
R² = 1 (y )² / (y )² (4)
-
Best Model Selection
The model with the best held-out performance is selected as the production predictor:
m* = arg min over m E {LR, RF, XGB} of RMSE(m) (5)
The selected model, the fitted preprocessing pipeline, and a training summary are stored as model artifacts and loaded by the backend for inference.
-
Risk Classification
Predicted performance is translated into an actionable risk level. With predicted final grade and two configurable thresholds < , a students risk category is
Risk = {High: <; Medium: <; Low: }(6)
A classification model trained on the same engineered features produces the risk label directly. It is evaluated using accuracy, precision (P), recall (R), and F1-score:
Accuracy = (TP + TN) / (TP + TN + FP + FN) (7)
F1 = 2·P·R / (P + R) (8)
-
Explainability
To make predictions transparent, model-based feature importance is computed from the trained tree ensembles and displayed with every prediction. The top contributing factors, such as study time, past failures, or absences, help educators understand why a student received a particular grade estimate or risk level.
-
Recommendation Generation
The contributing factors and the risk level drive a recommendation stage that suggests personalized actions such as improving study habits, reviewing attendance patterns, or seeking academic support. These suggestions are included in the prediction output.
-
Result Review and Prediction History
After a prediction is generated, the resultinputs, predicted grade, risk level, key factors, and recommendationsis saved to the users prediction history. Users can search, filter, and review earlier predictions, and the dashboard summarizes total predictions, risk distribution, and recent activity. The same workflow can be repeated for another student (Fig. 2).
-
Overall Methodology Summary
The methodology combines dataset preparation, multi- model training, model selection, risk classification, explanation, and recommendation within a unified workflow. By exposing the trained models through a web interface, the approach aims to make academic risk analysis more accessible and organized for users with different levels of technical knowledge.
-
-
SYSTEM ARCHITECTURE
The platform is developed as a web-based application that integrates grade prediction, risk analysis, and analytics. It provides a common interface through which users access the analytical modules, and each module performs a specific task that contributes to the overall workflow (Fig. 2). The layered architecture shown in Fig. 3 separates presentation, application logic, machine-learning services, and persistence.
Fig. 2. Workflow of the student performance prediction platform.
Fig. 3. System architecture of the proposed platform.
-
Presentation Layer
The presentation layer provides the user interface. It is developed using React and TypeScript, built with Vite, and styled with Tailwind CSS. Users can register, sign in, enter student details through a form, vie predictions and explanations, explore the dashboard, and inspect dataset previews and analytics.
-
Application and API Layer
The application layer manages communication between the frontend and the machine-learning services. A Flask REST API
handles requests, user authentication, and session management, receives input from the presentation layer, invokes the appropriate service, and returns the results to the user interface.
-
Prediction and Analytics Services
This layer contains the major analytical components of the system. It performs preprocessing, model inference, risk classification, feature-importance computation, and recommendation generation. The models it uses include Linear Regression, Random Forest, and XGBoost for grade prediction, together with the risk classifier.
-
Model Artifact Layer
Trained models, the fitted preprocessing pipeline, a training summary, and the risk classifier are stored as model artifacts. The API loads them at start-up, so that models can be retrained and replaced without changes to the web application.
-
Database and Storage Layer
MongoDB stores user accounts, prediction history (inputs and results), and model records (trained models and metrics). Prediction history is kept separate for each user account to preserve data privacy.
-
System Output Layer
The output layer presents the results generated by the modules: the predicted final grade, the risk category, the key contributing factors, recommendations, and dashboard analytics such as risk distribution and correlations. This layer brings the results together in a form that educators can examine and use for further reference.
-
-
IMPLEMENTATION
The implementation follows a frontendbackend architecture in which the user interface communicates with the backend services through REST API endpoints. Each module performs a specific task while contributing to the overall workflow of the application.
-
Development Environment
The platform combines web technologies and Python-based data-science libraries (Table II). The backend uses Python
3.11+ with pandas [12], NumPy, scikit-learn [11], XGBoost, and Matplotlib, while the frontend uses React, TypeScript, and Vite with Tailwind CSS. Visual Studio Code is used for development and debugging. Because the models run efficiently on a CPU, no GPU is required, which keeps the deployment cost low.
TABLE II
SOFTWARE AND HARDWARE REQUIREMENTS
Component
Specification / Role
Python 3.11+
Backend and machine-learning implementation
pandas 2.2+, NumPy
1.26+
Data manipulation and numerical computation
scikit-learn 1.4+
Preprocessing, Linear Regression, Random Forest, evaluation
Matplotlib 3.8+
Model-evaluation visualizations
Vite 8.0+
Frontend development and build tool
Component
Specification / Role
CPU / RAM
Intel Core i3 / Ryzen 3 or higher; 4 GB min. (8 GB recommended)
Storage / GPU
2 GB free space; GPU not required
Operating System
Windows 10/11, Linux, or macOS
-
Frontend Implementation
The frontend provides the interaction layer of the platform. It includes the student-input form, prediction view, dashboard, dataset preview, and analytics pages. React components are organized by function, which makes the interface easier to maintain and extend, and TypeScript improves code organization and detects certain development-time errors.
-
Backend Implementation
The backend is implemented with Flask and Python. When a user performs an operation, the frontend sends a request to the corresponding endpoint; the backend validates it, invokes the required processing or prediction function, and returns the result. This structure separates interface operations from analytical processing and handles valid inputs and API failures without crashing the application.
-
Data Processing and Model Training
The data-processing module performs validation, type conversion, categorical encoding, feature engineering, and traintest splitting with pandas and NumPy. The model-training module then fits Linear Regression, Random Forest, and XGBoost on the prepared data, evaluates them with the metrics of Section III, and stores the selected artifacts. The actual hyperparameters depend on the training configuration.
-
Authentication and Data Privacy
The authentication module manages registration, login, logout, and authenticated sessions. Protected routes restrict dashboard features to signed-in users, and prediction history is stored separately for each account so that one user cannot view another users records.
-
Dashboard, Analytics, and Recommendations
The dashboard displays total predictions, risk distribution, dataset statistics, and recent prediction activity. Analytics pages present correlations, feature distributions, and risk analysis, and a model-comparison view shows XGBoost and Random Forest predictions for the same student. The recommendation component maps the risk level and top contributing factors to suggested actions.
-
Module Integration
All major components are connected through the REST API. The frontend sends user requests to the backend, which directs them to the appropriate module; results are returned to the interface for display. Authentication, data processing, prediction, risk classification, analytics, and history management collectively form the platforms workflow. This modular implementation allows individual components to be improved without major changes to the entire application.
-
-
RESULTS AND DISCUSSION
The evaluation covers the predictive performance of the models on the held-out test set and the functioning of the developed application. Linear Regression, Random Forest, and XGBoost were trained on the combined UCI datasets and compared using the metrics defined in Section III.
-
Grade Prediction Results
XGBoost delivered the best regression performance (Table III). An RMSE of 1.523 and an MAE of 0.863 on the 020 grading scale correspond to an average absolute error of roughly 0.86 grade points (about 4.3% of the scale), while an R² of 0.850 indicates that the model explains about 85% of the variance in final grades. The superiority of the boosted ensemble over the linear baseline is consistent with the non- linear interactions among study time, past failures, absences, and prior grades that tree-based models can capture, and agrees with earlier findings on this dataset [8].
TABLE III
BEST-PERFORMING MODEL (XGBOOST) ON THE TEST SET
Task / Metric
Value
Scale
Grade prediction: RMSE
1.523
020
Grade prediction: MAE
0.863
020
Grade prediction: R²
0.850
01
Risk classification: Accuracy
84.7%
3 classes
-
Risk Classification Results
The XGBoostbased risk classifier reached an accuracy of 84.7% in assigning students to High, Medium, or Low risk. This indicates that the model separates the risk groups well enough to support early identification, while the remaining errors show that the predicted category should be treated as decision support for educators rather than as a final judgment.
-
Interpretability Results
Model-based feature importance is displayed for every prediction, listing the factors that most influenced the predicted grade and risk level. This addresses a common barrier to the adoption of automated student assessment: teachers can see why a student is flagged rather than receiving an opaque label, and can tailor interventions accordingly.
-
Application Interface
The web application provides a landing page that introduces its capabilities, including predictive analytics, risk classification, explainable AI, correlation analysis, dataset management, and smart recommendations (Fig. 4). Access to the analytical modules is controlled through a sign-in page (Fig. 5), after which users reach the dashboard, prediction form, and analytics views from a single environment.
Fig. 4. Landing page of the student performance prediction platform.
earlier period grades (G1, G2) are known to be highly predictive of G3 [8]; deployments aiming at truly early intervention should therefore also assess performance when such grades are unavailable. Third, feature importance describes global model behavior and does not by itself establish causal relationships, so recommendations should be treated as decision support. Overall, the results illustrate the functionality of the developed platform while highlighting the importance of evaluating outputs according to the characteristics and quality of the input data.
Fig. 5. Sign-in interface for authenticated access.
-
System Testing Results
The complete application was verified at multiple levels (Table IV). Unit tests of individual modules, integration tests of data flow between the frontend, preprocessing, prediction, and visualization components, and end-to-end system tests were completed without major errors. User acceptance testing with teachers and academic administrators indicated that the interface could be used effectively without advanced technical expertise. Performance testing showed smooth interaction on medium-sized datasets, and security testing confirmed that authentication, protected routes, and input validation restricted access to authorized users.
TABLE IV SUMMARY OF SYSTEM TESTING
Testing Type
Scope and Outcome
Unit
Each module tested independently; expected outputs produced
Integration
Frontendprocessingpredictionvisualization data flow consistent
System
End-to-end workflow stable; accurate outputs and predictions
User Acceptance
Teachers and administrators obtained insights without expertise
Performance
Efficient response on medium-sized datasets
Security
Authentication and protected routes enforced; inputs validated
-
Overall Discussion
The observed results demonstrate the integration of grade prediction, risk classification, explanation, and reporting within one application. A lightweight, CPU-only pipeline delivered accurate grade estimates and useful risk categories inside a user-friendly interface.
Several limitations should be noted. First, the UCI datasets originate from two schools in a single country, so generalization to other institutions and curricula must be validated, a limitation also noted for related work [3]. Second, in this dataset the
-
-
FUTURE SCOPE
The platform provides a common environment for student performance prediction, risk analysis, and analytics. However, it can be extended further to support more advanced requirements and improve the user experience. Several enhancements can be considered in future development.
-
Instance-Level Explainability: Methods such as SHAP
[13] can complement global feature importance by showing how each attribute shifts an individual students prediction, giving educators clearer and more trustworthy explanations. -
Early-Stage Prediction: Future versions can train models that exclude late-term grades, so that risk can be identified earlier in the academic term when intervention is most effective.
-
Real-Time Data Processing: Support for continuously updated attendance and assessment data would allow users to monitor changing performance and obtain updated risk levels as new data becomes available.
-
Broader Data and Fairness Evaluation: Evaluating the framework on datasets from additional institutions, regions, and levels of study will test generalization and help verify fairness across student groups.
-
Advanced Machine Learning Techniques: Additional algorithms, improved hyperparameter tuning, and feature selection may further increase predictive performance across different datasets.
-
Intelligent Recommendations: The recommendation module can be extended to suggest targeted interventions and learning resources based on a students risk profile and contributing factors.
-
Voice and Multilingual Interaction: Voice commands and regional-language support could make the platform more accessible to teachers with limited technical or English proficiency.
-
Enhanced Security and Scalability: Stronger authentication, role-based access control, data encryption, and cloud deployment can support larger institutions and increased user activity.
In the future, the platform can evolve into a comprehensive academic early-warning system by combining explainable prediction, real-time analytics, and personalized recommendations. These improvements can expand its
applicability across schools, colleges, and universities where data-driven monitoring is required.
-
-
CONCLUSION
This paper presented a web-based Student Performance Prediction system that uses Educational Data Mining to forecast final grades, classify students as High, Medium, or Low academic risk, and explain predictions through feature importance. It combines data preprocessing, multi-model training, risk classification, recommendation generation, and dashboard analytics in a single platform, so that educators can upload or enter student information, obtain predictions, and review results without depending on separate tools.
Comparing Linear Regression, Random Forest, and XGBoost on the combined UCI Student Performance datasets, XGBoost achieved the best results with an RMSE of 1.523, an MAE of 0.863, an R² of 0.850, and 84.7% risk-classification accuracy. Integrating the trained models into a Flask API and a ReactTypeScript dashboard with MongoDB persistence turns these predictions into a practical tool that reduces manual analysis effort and supports timely, data-driven intervention.
Overall, the platform aims to make academic performance analysis more accessible, interactive, and efficient. Although it provides a foundation for early identification of at-risk students, further improvements can enhance its capabilities. Future work may focus on instance-level explainability, early-stage prediction, validation across institutions, and richer recommendations, making the system a flexible and reliable foundation for academic early-warning across different eduational settings.
-
W. McKinney, Data structures for statistical computing in Python, in
Proc. 9th Python in Science Conf., 2010, pp. 5661.
-
S. M. Lundberg and S.-I. Lee, A unified approach to interpreting model predictions, in Advances in Neural Information Processing Systems 30 (NIPS), 2017, pp. 47654774.
REFERENCES
-
C. Romero and S. Ventura, Educational data mining: A review of the state of the art, IEEE Trans. Syst., Man, Cybern. C, Appl. Rev., vol. 40, no. 6, pp. 601618, Nov. 2010.
-
Guleria et al., Explainable AI and Machine Learning: Performance Evaluation and Explainability of Classifiers on Educational Data Mining Inspired Career Counseling, Springer, 2023.
-
Islam et al., An Explainable Educational Data Mining System for Predicting Student Academic Performance, IEEE, 2024.
-
Islam et al., The Integration of Explainable AI in Educational Data Mining for Student Academic Performance Prediction and Support System, Elsevier, 2025.
-
Yang, Feng, and Jiang, Student Learning Behavior Analysis and Early Warning System Based on Machine Learning, IEEE, 2024.
-
Machine Learning-Based Student Performance Prediction in Smart
Campus, IEEE, 2023.
-
Zhang et al., Personalized Learning Through AI-Assisted Tutoring: Exploring the Impact of Intelligent Tutoring on Student Academic Performance Using Educational Data Mining and Explainable Machine Learning, J. Educational Theory and Practice, 2026.
-
P. Cortez and A. Silva, Using data mining to predict secondary school student performance, in Proc. 5th Future Business Technology Conf. (FUBUTEC), Porto, Portugal, 2008, pp. 512.
-
L. Breiman, Random forests, Machine Learning, vol. 45, no. 1, pp. 5
32, 2001.
-
T. Chen and C. Guestrin, XGBoost: A scalable tree boosting system, in Proc. 22nd ACM SIGKDD Int. Conf. Knowledge Discovery and Data Mining, 2016, pp. 785794.
-
F. Pedregosa et al., Scikit-learn: Machine learning in Python, J. Mach. Learn. Res., vol. 12, pp. 28252830, 2011.
