1. INTRODUCTION
ing availability of educational data. This paradigmatic shift has seen traditional pedagogical methods progressively replaced by data-driven approaches aimed at enhancing student performance and improving academic outcomes. Central to
In recent years, education has undergone a notable transformation driven by technological advancements and the increasthis transformation is the vast volume of educational data generated across primary, secondary, and tertiary education levels, coupled with the emergence of sophisticated machine learning algorithms and advanced data analytics methodologies [1, 2]. Academic institutions, ranging from elementary schools to universities, increasingly employ data-driven strategies to monitor, assess, and improve learning outcomes. The present study investigates the extensive range of research methodologies that have been adopted within this domain, with findings intended to support the development of robust predictive models for student performance across diverse academic disciplines.
Machine learning models have demonstrated remarkable effectiveness in predicting student academic performance, a task that was previously considered highly challenging. These models are capable of uncovering latent patterns, correlations, and trends embedded within complex educational datasets, thereby providing valuable insights to educators and institutional decision-makers. Such insights enable early identification of at-risk students, the provision of personalized instructional recommendations, and the implementation of adaptive teaching strategies [3, 4]. By leveraging machine learning techniques, educators can develop a deeper understanding of the multifaceted dynamics of educational environments and respond proactively to the diverse needs of learners. Moreover, several studies have emphasized the critical role of optimization techniques in refining predictive models and enhancing their overall performance [5, 6]. Optimization serves as an auxiliary mechanism for fine-tuning algorithmic parameters, improving predictive accuracy, and ensuring alignment between predicted outcomes and actual student performance trajectories. In addition, optimization methods facilitate effective feature selection by identifying the most relevant variables and eliminating redundant or noisy data, thereby strengthening model precision.
This study explores the evolving landscape of predictive modeling within the educational domain by examining the interplay between machine learning, optimization techniques, and statistical analysis. First, the paper investigates the effective application of machine learning algorithms—including Random Forest, Extreme Gradient Boosting (XGBoost), Support Vector Machine (SVM), Multilayer Perceptron (MLP), Gaussian Naïve Bayes, and K-Nearest Neighbors (KNN)—for predicting student academic performance. Second, the study examines how optimization techniques such as the Al-Biruni Earth Radius Optimizer (BER) [7], Grey Wolf Optimizer (GWO) [8], Particle Swarm Optimizer (PSO) [9], Genetic Algorithm (GA), and Whale Optimization Algorithm (WOA) can enhance the predictive capabilities of these machine learning models, with particular emphasis on the Random Forest classifier. Finally, statistical analyses, including Analysis of Variance (ANOVA), are employed to assess the impact of optimization algorithms on predictive performance. Through this multifaceted approach, the research seeks to develop a deeper understanding of optimized machine learning models for predicting student academic achievement and to make a meaningful theoretical contribution to educational predictive analytics.
The dataset used in this study is the Students’ Academic Performance Dataset, also referred to as the xAPI-Educational
Mining Dataset. This dataset is derived from the Experience API (xAPI) framework [10] and is publicly available through the Kaggle platform. It contains records from 480 individual students enrolled in two academic courses, with each record comprising sixteen distinct attributes. Classified as multivariate data, the dataset holds significant relevance in the fields of e-learning, educational forecasting, predictive modeling, and educational data mining. The data were collected using Kalboard 360, a compact and user-friendly learning management system designed to provide learners with flexible access to educational resources via internet-connected devices. Data collection is facilitated through xAPI, a core component of the Training and Learning Architecture that monitors and records learners’ interactions and activities. The dataset attributes are categorized into three primary groups: demographic characteristics, academic background, and behavioral indicators. As such, the dataset provides a comprehensive foundation for predictive modeling and for gaining deeper insights into student performance within contemporary technology-enhanced learning environments.
In this work, a classification framework is proposed in which the BER optimization algorithm is employed to tune the Random Forest model for academic performance classification. Experimental results demonstrate that the BERoptimized Random Forest model outperforms competing approaches in terms of accuracy and predictive reliability. The XAPI-Edu-Data dataset was selected to ensure practical relevance and applicability within real-world educational contexts. The proposed method is evaluated against state-ofthe-art optimization-based models, including GWO-, PSO-, GA-, and WOA-based Random Forest classifiers. Comparative analysis reveals that the BER-Random Forest model consistently achieves superior performance across multiple evaluation metrics. These metrics include sensitivity, specificity, positive predictive value, negative predictive value, and F-score. Furthermore, statistical analyses using ANOVA and the Wilcoxon Signed Rank Test confirm that the optimization strategy significantly enhances predictive accuracy relative to competing models.
Beyond its methodological innovations, this research contributes meaningfully to the development of advanced educational systems [11]. The integration of hybrid machine learning approaches—particularly those incorporating bioinspired optimization algorithms—bridges the gap between theoretical advancements in algorithm design and practical applications in educational environments [12]. This work highlights the growing synergy between computational intelligence and educational research [13]. As global education systems increasingly strive to become adaptive, inclusive, and data-driven, the integration of these approaches is becoming essential [14].
Additionally, the study advances discussions on educational intervention strategies with an emphasis on equity and fairness [15]. Optimized predictive modeling enables the identification of inefficiencies within educational systems and allows for more accurate projections of individual student learning trajectories [16]. By detecting subtle variations in student performance related to demographic or behavioral factors, institutions can intervene early and provide targeted, individualized support. Such capabilities not only enhance academic outcomes but also promote equitable access to educational opportunities and personalized learning experiences, which are central to modern educational reform and policy development [17].
This paper presents a comprehensive and systematically validated framework for student academic performance prediction by integrating machine learning models with metaheuristic optimization techniques. The key contributions of this work can be summarized as follows:
- A unified predictive framework is developed that combines rigorous data preprocessing, baseline machine learning classification, metaheuristic-based hyperparameter optimization, and extensive statistical evaluation to enhance the reliability of educational performance prediction.
- A broad comparative analysis is conducted involving multiple well-established machine learning classifiers and state-of-the-art metaheuristic optimization algorithms, providing a holistic assessment of their relative strengths and limitations within the educational data mining context.
- The proposed methodology is systematically benchmarked against existing state-of-the-art models and algorithms reported in the literature, ensuring a fair and comprehensive evaluation of its effectiveness and practical relevance.
- Advanced visual and statistical analysis techniques are employed to interpret model behavior, stability, and consistency across multiple evaluation dimensions, thereby strengthening the transparency and robustness of the findings.
- The study offers actionable insights into how bioinspired optimization strategies can be effectively leveraged to improve ensemble learning models, contributing to the development of intelligent, data-driven academic support systems capable of early performance assessment and informed educational decision-making.
The remainder of this paper is organized as follows. Section 2 presents a comprehensive review of related work and highlights relevant research contributions. Section 3 describes the methodology adopted in this study, including data sources and analytical procedures. Section 4 details the design of the predictive models, while Section 5 discusses the experimental results and findings. Finally, Section 6 concludes the paper by summarizing key outcomes and outlining directions for future research.
2. RELATED WORKS
Predicting the academic performance of individual students within large-scale and heterogeneous educational datasets has become increasingly challenging due to the multidimensional nature of learning outcomes and the diversity of factors that influence academic success. Contemporary educational repositories typically contain a mixture of demographic attributes, academic background variables, and behavioral engagement indicators collected from learning management systems. These data sources are often noisy, partially redundant, and characterized by nonlinear interactions, which limits the effectiveness of purely linear or single-model approaches. Consequently, the research community has progressively shifted toward hybrid learning pipelines, ensemblebased learners, and optimization-driven modeling strategies to improve predictive reliability and generalization across varied educational contexts.
A major direction in the literature has focused on the design of scalable architectures capable of processing large educational datasets while retaining discriminative information. In this regard, Vora and Rajamani [1] proposed a big-dataoriented prediction architecture composed of two modules: a distributed processing module implemented through MapReduce with dimensionality reduction using PCA, followed by a hybrid classifier integrating a Deep Belief Network with Support Vector Machines. This work exemplifies the importance of combining scalable preprocessing with expressive classifiers when dealing with voluminous student data. Beyond the specific algorithmic design, the study highlights a recurring theme in educational data mining: robust preprocessing and representation learning are often prerequisites for effective prediction, particularly when datasets include mixed attribute types and potentially high feature redundancy.
In parallel, the rise of distance and online education has motivated the development of prediction methods that can capture performance as an ordered or ranked outcome rather than a purely nominal class. Gámez-Granados et al. [2] introduced FlexNSLVOrd, an ordinal classification algorithm grounded in fuzzy modeling principles, in which students are classified into ordered achievement categories. This approach is particularly relevant for educational settings where the distinction between adjacent performance levels is pedagogically meaningful and where interpretability is required for intervention planning. The reported improvements over multiple competing methods underscore the value of aligning the learning formulation (ordinal vs. nominal) with the educational semantics of the target variable. More broadly, this line of work emphasizes that prediction quality can be improved not only by selecting powerful learners, but also by choosing problem formulations that reflect the structure of educational outcomes.
Another stream of studies has investigated the utility of classical machine learning algorithms as accessible and interpretable baselines for educational stakeholders. Pallathadka et al. [3] examined Naïve Bayes, ID3, C4.5, and SVM within educational mining workflows, demonstrating their applicability in predicting student performance from academic background information. Although not all studies report complete metric sets, such contributions remain important because they establish comparative baselines and clarify the relative strengths of probabilistic, tree-based, and margin-based learners in educational data contexts. In practice, these models often serve as initial screening tools due to their simplicity, interpretability, and modest computational requirements.
At the level of higher education assessment, Ya˘gcı [18] evaluated multiple classifiers—including Random Forest, SVM, Logistic Regression, Naïve Bayes, and KNN—for predicting final examination outcomes using midterm-related predictors. This work reinforces two key insights that recur across the literature. First, ensemble-based classifiers frequently provide competitive performance because aggregation mechanisms reduce model variance and mitigate overfitting. Second, early prediction is of high practical value because it enables institutions to allocate academic support resources proactively rather than reactively. Such studies therefore motivate ongoing efforts to improve both prediction accuracy and operational reliability, especially in early-warning settings where errors can lead to missed support opportunities or unnecessary interventions.
More recently, research has increasingly emphasized hybrid strategies that combine preprocessing enhancements, balanced learning, and metaheuristic optimization. Cheng et al. [19] investigated the integration of SMOTE-based balancing with multiple classifiers (e.g., Random Forest, Decision Trees, KNN, MLP, and XGBoost), illustrating that data-level interventions can significantly improve classifier effectiveness when class distributions are skewed. This is a critical concern in educational datasets, where high-performing, mediumperforming, and at-risk groups may be unevenly represented. Such studies collectively suggest that model performance should be interpreted jointly with data characteristics, and that improvements may arise from carefully designed preprocessing and resampling strategies as much as from the classifier selection itself.
Ensemble learning continues to be a prominent trend due to its strong empirical performance across domains, including educational performance prediction. Keser and Aghalarova [20] proposed HELA, a hybrid ensemble that combines multiple boosting-based learners with a meta-classifier to exploit complementary strengths across model families. This approach aligns with the broader literature indicating that stacking and super-learning strategies can capture diverse decision boundaries and improve robustness, especially when student features reflect complex and interacting effects. In a related vein, Lau et al. [21] combined statistical analysis with neural network modeling, illustrating that explanatory insight (via statistical factor identification) can be integrated with predictive learning (via nonlinear function approximation). This hybridization trend is increasingly important because educational predictive systems are expected not only to forecast outcomes but also to support actionable interpretation for instructors and policymakers.
A further set of studies has highlighted the value of behavioral and activity-based data, particularly in blended and online learning environments where engagement can be recorded continuously. Francis and Babu [22] combined clustering and classification to predict student outcomes, reinforcing the importance of discovering latent structure in student populations before applying supervised prediction. Deeva et al. [23] advanced this behavioral perspective by adopting sequence classification with time-based windows, capturing temporal patterns that static feature vectors may miss. Nayak et al. [24] similarly emphasized the role of behavioral indicators in online education settings, reporting that behavior-rich representations can substantially strengthen prediction capability. Collectively, these works indicate that educational performance is often reflected in patterns of engagement over time and that predictive models can benefit from incorporating temporal or sequential descriptors when available.
The COVID-19 pandemic accelerated the adoption of online learning and intensified demand for reliable predictive analytics that operate under remote engagement conditions. Studies such as [25] investigated grade and engagement prediction under online learning transformations and reinforced that ensemble learners (notably tree-based ensembles) are often effective under such settings because they can model heterogeneous feature effects and tolerate moderate noise. Early prediction approaches such as the Random Wheel algorithm [26] further indicate a shift toward models that not only classify outcomes but also support decision confidence, which is valuable when institutions must determine whether an intervention is justified before a course begins. Such directions point to a broader requirement in educational analytics: predictive systems should be timely, stable, and context-aware, rather than solely accurate under retrospective evaluation.
Survey and review studies provide additional context regarding methodological trends and emerging challenges. Khosravi et al. [27] synthesized AI-based student performance prediction techniques, documenting the growing role of feature engineering, normalization, and ensemble learning in improving predictive outcomes. Complementarily, Dissanayake et al. [28] emphasized the importance of Bayesian hyperparameter optimization for improving model performance and interpretability in academic prediction tasks. These works collectively highlight that the field is moving toward automated and principled tuning strategies, as hyperparameter sensitivity remains a key source of performance variability across models. They also imply that optimization should be viewed as a first-class component of educational predictive modeling pipelines rather than an optional post-processing step.
Despite the substantial progress summarized above, several gaps remain evident in the literature and motivate the present study. First, while optimization is widely recognized as beneficial, many educational prediction studies either rely on manual tuning, limited grid search, or optimization approaches that do not fully explore population-based bio-inspired strategies under controlled comparisons. Second, the literature often reports improvements using single metrics or isolated evaluation settings; however, educational applications require balanced assessment across complementary metrics (e.g., sensitivity vs. specificity) to reduce risks associated with misclassification. Third, although behavioral and categorical variables are commonly acknowledged as important, fewer studies provide integrated visual–statistical analyses that empirically validate feature relevance and performance stability prior to model deployment. Finally, comparative benchmarking against multiple state-of-the-art models and optimization strategies under a unified experimental protocol remains relatively limited. In response to these gaps, the present work develops a comprehensive prediction framework that integrates preprocessing, baseline model benchmarking, metaheuristic optimization, and multi-perspective evaluation to support robust and transparent student performance classification.
Table 1 synthesizes the core contributions of representative studies reviewed in this section, highlighting their focus areas, methodological choices, and principal findings. Taken together, this body of research establishes the importance of machine learning, hybrid modeling, and optimization-driven pipelines in educational data mining, while also motivating the need for systematic evaluation frameworks that jointly address predictive accuracy, stability, and methodological reproducibility.
3. MATERIALS AND METHODS
This section describes the research dataset and the methods employed in this study. It begins with an overview of the dataset and the data preprocessing pipeline, including key steps such as data cleaning and feature engineering. An important component of preprocessing involves normalization and standardization to ensure data quality, consistency, and validity. The section also introduces the proposed optimization strategy, focusing on the Al-Biruni Earth Radius (BER) algorithm, and presents the machine learning techniques used in the analysis, particularly Random Forest classification and ensemble learning approaches, which are essential for extracting meaningful patterns from the preprocessed data. To explain the methodology chosen for the present research in a well-organized manner, a multi-stage analysis framework is depicted in Figure 1. The suggested framework is intended to systematically process raw educational data into reliable predictive information through a series of coherent steps that combine data preprocessing, baseline modeling, metaheuristic optimization, and statistical assessment. Figure 1 indicates that the workflow starts with a strict data preprocessing that improves the quality and consistency of the data, and then the creation of multiple reference machine learning models. Then, hyperparameter optimization for the Random Forest classifier is performed using the Al-Biruni Earth Radius (BER) metaheuristic. Lastly, extensive statistical and performance analyses are conducted to assess the effectiveness and robustness of the optimized predictive models. Such a systematic pipeline additionally provides methodological transparency, reproducibility, and a moderate evaluation of the predictive accuracy and statistical significance of all experimental steps.
3.1 Dataset
The academic performance dataset used in this study is referred to as the Students’ Academic Performance Dataset (also known as xAPI-Edu.Data). [10] and can be accessed through Kaggle. The present xAPI learning mining dataset is based on data collected on students’ academic performance in the chosen courses via the Kalboard 360 e-learning system. The dataset contains records for 480 students, and each student profile consists of 16 attributes describing various dimensions of their educational backgrounds. The Experience API (xAPI), as part of the Training and Learning Architecture (TLA), supports data collection. xAPI is designed to quantify and capture learners’ activities and learning experiences, including reading learning resources and viewing teaching videos, making it a useful resource for educational analytics and predictive modelling.
The dataset will consist 480 records of students characterized by 16 different features which can be divided into three major categories: (i) demographic features (e.g., gender and nationality), (ii) characteristics of the academic background (e.g., educational stage, grade level, and section), and (iii) behavioral characteristics (e.g., classroom participation and
model construction, BER-based optimization, and statistical evaluation.
access to learning resources). The features that are contained in the xAPI-Edu.The data dataset is described in detail in Table 2. Each attribute is a particular demographic, academic, or behavioral orientation of students and can be considered a comprehensive foundation for the analysis and prediction of academic performance.
3.2 Data Preprocessing
Machine learning pipelines. Data preprocessing is an important step of the process because the quality of input data directly determines the performance, reliability, and generalizability of predictive models. A number of preprocessing procedures were implemented for the xAPI-Edu.A dataset was used in this study to ensure data integrity and improve the learning capacity of the proposed models. Such procedures include handling missing data, nominal feature coding, scaling numerical variables, and assessing feature correlations.
3.2.1 Handling Missing Values
Incomplete or missing data may negatively affect model training and introduce bias in predictions. Thus, appropriate imputation strategies were used to handle missing values in the dataset. Statistical imputation methods, such as mean and median imputation, have been used for numerical attributes and are based on the distribution of the feature. Approximately normally distributed functions were mean imputed, whereas skewed distributions were more likely to use median imputation to avoid the impact of outliers.
Besides that, K-Nearest Neighbors (KNN) imputation was
MapReduce, PCA, Deep Belief Network, Support Vector Machine
The proposed hybrid model demonstrated superior capability in analyzing large-scale educational datasets and accurately predicting student performance.
FlexNSLVOrd classification algorithm FlexNSLVOrd outperformed competing models in terms of classification accuracy, providing improved interpretability and predictive insight.
Naïve Bayes, ID3, C4.5, SVM The study focused on predicting student performance using multiple classifiers; however, specific quantitative accuracy values were not reported.
[18] Predicting final exam grades Random Forest, SVM, Logistic Regression, Naïve Bayes, KNN
Random Forest, Decision Trees, KNN, MLP, XGBoost
[20] Prediction of students’ academic performance
Gradient Boosting, XGBoost, LightGBM, Super Learner
The hybrid ensemble approach achieved high prediction accuracy for mathematics and Portuguese language courses.
Neural network model with 11 input variables
Hybrid classification and clustering algorithm
Sequence classification techniques Course-specific predictive models achieved an accuracy of up to 90% by leveraging sequential behavioral patterns.
Decision Tree (J48), Random Forest, MLP, Naïve Bayes
Random Forest classifier The model achieved 83% accuracy for engagement prediction and 85% accuracy for grade prediction.
Random Wheel algorithm The proposed approach achieved over 80% accuracy in predicting student failure and improvement prior to course commencement.
taken into consideration on selected numerical features. This technique approximates missing values by averaging the values of the closest neighbors in the feature space. KNN imputation maintains local data structures and relationships, making it especially appropriate for educational datasets where behavioral patterns can be interdependent.
For categorical features, missing values were handled by assigning the most common category (mode) for each feature. This strategy will ensure categorical consistency but reduce information loss.
3.2.2 Feature Encoding
Machine learning algorithms require numerical data; hence, categorical variables were encoded as numerical values using suitable methods. Features that did not inherently have an order and were nominal, e.g., gender, nationality, topic, and type of guardian, were one-hot encoded. This method generates binary indicator variables of each category, avoiding the establishment of artificial ordinal relationships.
Binary categorical variables (parent survey response and parent school satisfaction) were assigned to label encoding, in which the numerical labels (e.g., Yes = 1, No = 0) were assigned to the values. For ordinal categorical features with a natural order, ordinal encoding was used to retain meaningful ranking information across categories, e.g., educational stage and grade level.
3.2.3 Feature Scaling
To ensure that numerical characteristics play a proportional role in learning, especially in distance-based and gradientbased algorithms, one must scale features. Two types of scaling were used in this research, namely, standardization
[1] Students’ performance prediction
[2] Predicting students’ performance
[3] Analysis of student and teacher data
The proposed models achieved classification accuracies ranging from 70% to 75% and effectively identified students at high risk of failure.
[19] Predicting and classifying students’ performance
The incorporation of SMOTE-based data balancing significantly improved classification performance across evaluated models.
[21] Predicting students’ performance
The neural network achieved an accuracy of 84.8% in predicting students’ cumulative grade point average (CGPA).
[22] Predicting academic performance
An accuracy of 75.47% was achieved using academic, behavioral, and extracurricular student features.
[23] Behavioral sequence-based performance prediction
[24] Impact of student behavior in online education
The Random Forest model achieved 100% accuracy when behavioral features were incorporated alongside other attributes.
[25] Predicting students’ performance
[26] Early prediction of student performance
Gender Student gender; nominal values are Male and Female.
Nationality Student nationality; nominal values include Egypt, Kuwait, Saudi Arabia, Lebanon, USA, and others.
Place of Birth Country of birth of the student; values include Egypt, Kuwait, Saudi Arabia, Lebanon, USA, and others.
Educational Stage Current educational level; nominal values are Lower level, Middle School, and High School.
Grade Level Academic grade in which the student is enrolled; values range from G-01 to G-12.
Section ID Classroom section identifier; nominal values are A, B, and C.
Topic Subject studied by the student; includes English, Spanish, French, Arabic, IT, Math, Chemistry, Biology, Science, History, Quran, and Geology.
Semester Academic semester; nominal values are First and Second.
Guardian Student’s legal guardian; nominal values are Mom and Father.
Raised Hands Number of times the student raises their hand during class; integer values range from 0 to 100.
Visited Resources Frequency of accessing learning resources; integer values range from 0 to 100.
Viewing Announcements Number of times the student views course announcements; integer values range from 0 to 100.
Discussion Groups Level of participation in discussion groups; integer values range from 0 to 100.
Parent Answering Survey Indicates whether the parent responded to the survey; nominal values are Yes and No.
Parent School Satisfaction Parent satisfaction with the school; nominal values are Yes and No.
Student Absence Days Absence level during the semester; values are categorized as Low (≤7 days) or High (>7 days).
and normalization.
A more detailed visual analytics framework is used to understand the patterns of behavioral engagement among students and their connection to academic performance. Figure 2 shows a multi-plot visualization that combines interpolationbased probability surfaces, density estimation, histogram analysis, and clustering methods. This number represents the overall interaction and formation of major engagement-related features, such as raised hands, visits to resources, participation in discussions, and views of announcements, which create a clear pattern in the data. Using supervised and unsupervised perspective analysis, the visualization allows intuitive analysis of more complex associations, highlights areas of high behavioral concentration, and demonstrates the latent structural organization among students. This exploratory visual analysis supports the following machine learning modeling approach by justifying feature relevance, establishing nonlinear patterns, and providing empirical justification for the use of high-order classification and optimization approaches. To further discuss the effect of the categorical attribute on students’ academic performance, an effect analysis by categorical variable was conducted. Figure 3 depicts the associations among the identified categorical variables, i.e., parent survey response, parent school satisfaction, student absence days, and gender and the academic performance classes distribution. Heatmaps can help compare the associations between various categorical conditions and the high, medium, and low levels
Numerical features were standardized by setting their means to 0 and their variances to 1. This is particularly useful for feature-sensitive algorithms such as Support Vector Machines and Multilayer Perceptrons. Minimum-maximum scaling (also known as normalization) was used to rescale the feature values to 0-1, making model training much faster and the numerical results more stable.
3.2.4 Feature Correlation Analysis
The analysis of feature correlations was performed to identify redundant or correlated variables that might adversely affect model performance due to multicollinearity. Numerical features were computed, and Pearson correlation coefficients were used to measure the linear relationship between pairs of attributes. Features with high correlation values exceeding a predetermined threshold were analyzed, and the redundant ones were eliminated to reduce the model’s dimensionality and increase its interpretability. For categorical features, the association values were evaluated using appropriate association measures, such as the Chi-square test, to assess dependency between variables. The preprocessing step enhanced computational efficiency and minimized overfitting, and it added predictive models that were robust due to the removal of highly correlated or non-informative features.
of performance. The figure clearly shows the performance differences related to behavioral, demographic, and parental involvement factors by presenting the proportions of classes as percentages. Such analysis supports interpretability by highlighting the categorical tendencies that can lead to either academic success or poor performance, thus providing empirical motivation for their inclusion in future predictive models and optimization steps. To learn more about the behavioral
with class performance.
engagement patterns that characterize various levels of academic achievement, a comprehensive distributional study of the most important engagement features was conducted. Figure 4 shows a series of boxplot-based visualizations that explore the distributions of raised hands, visited resource distribution, announcement views, and discussion participation amongst the three performance classes (Low, Medium, and High). This figure allows a close comparison of the central tendency and variability within and between performance groups, as it shows median values, interquartile ranges, classwise means, and the data points of individual students. This type of analysis is crucial for establishing the extent to which student engagement behavior relates to academic success and for validating the discriminative relevance of these features before they can be used as predictors in predictive modeling.
performance classes.
3.3 Machine Learning Models
The research uses a wide range of machine learning models to assess students’ performance, providing robust, generalizable results that capture the full range of student performance. The chosen models reflect various learning paradigms, including ensemble learning, boosting, neural networks, distance-based learning, margin-based classification, and probabilistic modeling. This diversity allows us to balance the comparisons and see that the suggested optimization strategy can be applied across heterogeneous model architectures.
A number of criteria were used when selecting machine learning models. First, models that proved effective in education data mining and student achievement prediction were considered. Second, algorithms capable of processing both numerical and categorical attributes were selected to match the nature of xAPI-Edu.Data data. Third, models sensitive to feature scaling, noise, and class imbalance were used to assess robustness across different data conditions. Lastly, interpretable models and high-capacity learners were sampled to balance predictive performance with explanatory potential, a necessity in educational decision-making.
3.3.1 Description of Models
Random Forest Random Forest is an ensemble learning model that builds a group of decision trees based on bootstrap sampling and random selection of features at each split. Majority voting between individual trees is used to get the final prediction. This will decrease variance, reduce overfitting, and improve generalization performance. Random Forest works especially well with structured data, and its strength, the ability to process large-dimensional data, and the automatic feature importance estimation have led to its massive use in educational analytics. The typical process used with Random Forest classification is shown in Algorithm 1[18, 19, 20].
Extreme Gradient Boosting (XGBoost) Extreme Gradient Boosting (XGBoost) is a state-of-the-art ensemble learning algorithm that relies on the gradient boosting paradigm and builds a series of decision trees in a cascade, minimizing the error of the successive ensemble. In contrast to traditional
Algorithm 1. Random Forest (RF)-based Classification
1: for b = 1 to B do 2: Draw a bootstrap sample Z∗of size N. 3: Grow a decision tree Tb on Z∗until the minimum node size nmin is reached. 4: Randomly select m variables from the p available predictors.
5: Choose the best split variable and split point among the m selected variables. 6: Split the node into two child nodes. 7: end for 8: Output {Tb}B b=1 as the ensemble of trees. 9: For a new input point x, classify using majority voting:
rf(x) = majority vote where ˆCb(x) denotes the class prediction of the b-th tree.
boosting methods, the learning process in XGBoost is formulated as a regularized optimism problem. This design can help avoid overfitting, especially in high-dimensional feature spaces typical of educational data sets with demographic, behavioral, and academic variables.
One major advantage related to XGBoost is that it is implemented efficiently and scalably. It facilitates the construction of trees in parallel, cache-aware access patterns, and efficient processing of sparse and missing values, which can significantly reduce training time while still retaining high predictive accuracy. Also, subsampling strategies and the learning rate (shrinkage) further improve generalization by alleviating the effects of noise and less informative features. These features make XGBoost particularly useful for largescale, heterogeneous data, where it is important to model complex nonlinear interactions and feature dependencies.
XGBoost has gained widespread adoption for predicting students’ academic performance due to its robustness, flexibility, and strong empirical results. The algorithm can estimate complex associations between engagement metrics (e.g., engagement, resource use, and interaction frequency) and academic performance that are challenging to model in other spreadsheets or with single-tree models. Furthermore, XG-Boost leverages feature importance, which may facilitate interpretability and the extraction of insights, enabling educators and decision-makers to identify the most significant elements of student success. Subsequently, XGBoost is an effective baseline and a competitive benchmark for assessing the advantages of sophisticated optimization and hybrid learning schemes in educational data mining.
Multilayer Perceptron (MLP) The Multilayer Perceptron (MLP) is a feedforward artificial neural network model comprising an input layer, one or more hidden layers, and an output layer, where each layer consists of a set of interconnected neurons with their respective weights and bias terms. The training is usually carried out using the backpropagation algorithm, coupled with gradient-based optimization methods, to minimize a specified loss function. MLPs can be used to model nonlinear functions such as ReLU, sigmoid, or tanh, which can be applied to more complex nonlinear transformations between the input features and the desired outputs. This ability to express has rendered MLPs especially appropriate for modelling complex relationships amid demographic, conductive, and educational features in educational knowledge bases. But their results are also sensitive to hyperparameter settings such as learning rate, network depth, neuron count, and regularization techniques, and tuning them to prevent overfitting can be difficult, particularly with limited training data.
Support Vector Machine (SVM) The support vector machine (SVM) is a supervised learning algorithm based on statistical learning theory, designed to construct an optimal decision boundary by maximizing the margin between classes. By using a few important training samples, called support vectors, SVMs can generalize well in high-dimensional feature spaces. SVMs can also learn highly nonlinear relationships by implicitly projecting the data into higher-dimensional spaces using kernel functions, e.g., radial basis functions (RBFs), polynomials, or linear kernels. SVMs are especially useful for educational performance prediction, where the number of features is large relative to the number of observations, because overfitting is less common in that setting. However, their performance may vary with careful selection of kernel parameters and regularization constants, which can significantly impact classification accuracy.
K-Nearest Neighbors (KNN) K-Nearest Neighbors (KNN) is a non-parametric, instance-based learning algorithm that uses the majority class of the unseen samples nearest to it in the feature space (the top k nearest) when classifying the samples. The distance metrics used to measure similarity between instances are usually Euclidean, Manhattan, or Minkowski. KNN also lacks an explicit training stage, making it easy to apply and adaptable to local data formats. KNN may be very useful for detecting patterns in educational datasets where students exhibit similar engagement or behavioral patterns. Its performance, however, is very sensitive to feature scaling, the distance metric, and the value of k. Also, KNN can be computationally expensive with large data sets and can perform poorly with noisy or high-dimensional data, where distance-based measures are less discriminative.
Gaussian Naïve Bayes Gaussian Naive Bayes is a probabilistic classification algorithm based on the Bayes theorem, assuming conditional independence among input variables and normal distributions for continuous variables. Although
ˆCb(x) b=1 , this simplifies the assumption, the algorithm has shown competitive performance across a variety of real-world applications, especially when feature independence is approximately achieved. Gaussian Naive Bayes is computationally inexpensive, requires very little training data, and can be easily extended to high-dimensional spaces, making it appropriate for quickly bootstrapping a baseline model and for real-time educational analytics. It is also predictive in a fast and interpretable way; for example, in student performance prediction, it can provide insights into the contribution of individual features to the predictive value. Nevertheless, its strong independence assumption can limit its ability to model complex feature interactions, resulting in lower accuracy than more expressive models in situations where nonlinear dependencies are significant.
3.4 Metaheuristic Algorithms
Metaheuristic algorithms are high-level, nature-inspired optimization strategies developed to effectively search large, complex, and nonconvex search spaces where other optimization algorithms may not work or become computationally prohibitive. These algorithms are based on stochastic processes and adaptive search schemes that trade off exploration (global search) with exploitation (local refinement) to prevent early convergence to suboptimal solutions. Metaheuristics have been widely used across a broad range of applications, including feature selection, hyperparameter optimization, scheduling, and engineering optimization. They are especially useful in machine learning, where they can be used to search model hyperparameters with a very high-dimensional, nonlinear, and multimodal search space.
The present research applies metaheuristic algorithms to optimize the hyperparameters of the Random Forest classifier to enhance predictive accuracy in the classification of student academic performance. In contrast to grid or random search, which may become inefficient or incomplete as the number of hyperparameters grows, metaheuristic methods dynamically update their search paths based on population-based interactions and feedback from fitness. Other algorithms include the Al-Biruni Earth Radius Optimizer (BER), the Grey Wolf Optimizer (GWO), Particle Swarm Optimization (PSO), Genetic Algorithms (GA), and the Whale Optimization Algorithm (WOA), which use mimics of natural, physical, or social processes to guide the optimization process. Their population-based characteristics enable multiple candidate solutions to be explored simultaneously, thereby increasing the probability of obtaining near-optimal or globally optimal hyperparameter settings.
The reason for adopting metaheuristic optimization in this context is that ensemble learning models, particularly Random Forests, are highly sensitive to hyperparameter settings, including tree depth, the number of estimators, and feature sampling. Metaheuristic algorithms improve model generalization, robustness, and classification performance by systematically optimizing these parameters through adaptive search mechanisms. Moreover, due to their flexibility and scalability, they can be used in educational data mining applications, where datasets may exhibit non-homogeneous feature distributions and complex interaction patterns. Consequently, the introduced combination of metaheuristic algorithms will offer a principled and efficient way to improve machine learning performance while retaining computational viability.
3.4.1 Role of Metaheuristics in Hyperparameter Optimization
Hyperparameter optimization is a fundamental step in developing reliable machine learning models, as hyperparameters control model complexity, learning behavior, and generalization capability. Unlike model parameters that are learned directly from data, hyperparameters (e.g., number of trees in Random Forest, depth constraints, learning rate in boosting, kernel parameters in SVM, or neighborhood size in KNN) must be set externally and can substantially influence predictive performance. Exhaustive approaches such as grid search and random search may become computationally expensive as the dimensionality of the hyperparameter space grows, particularly when hyperparameter interactions are nonlinear and the search landscape contains multiple local optima.
Metaheuristic algorithms offer an automated and computationally efficient alternative for hyperparameter tuning by formulating the problem as a global optimization task. In this setting, each candidate solution represents a specific hyperparameter configuration, and a fitness function—typically derived from cross-validated performance metrics such as accuracy or F-score—guides the search process. Metaheuristics iteratively explore the hyperparameter space using stochastic operators and population-based mechanisms that balance exploration (broad search across diverse configurations) and exploitation (refinement around high-performing regions). This balance enables metaheuristics to escape local optima and to locate near-optimal configurations more effectively than purely deterministic procedures in complex, high-dimensional search spaces.
Furthermore, metaheuristic optimization can reduce human intervention in model development by systematically identifying high-performing hyperparameter settings without requiring manual trial-and-error. This property is particularly valuable in educational predictive modeling, where datasets may include heterogeneous demographic and behavioral variables, resulting in highly nonconvex objective functions. By improving the quality of hyperparameter selection, metaheuristics typically enhance model generalization, stabilize performance across different data splits, and increase robustness to noise and feature redundancy. Consequently, metaheuristicdriven hyperparameter optimization constitutes an effective strategy for strengthening machine learning models and improving their predictive accuracy in data-driven educational systems.
3.5 Proposed BER-based Optimization Algorithm
3.6 Al-Biruni Earth Radius Optimization (BER)
The optimization strategy adopted in this work is the Al-Biruni Earth Radius (BER) algorithm [7]. This metaheuristic method integrates exploration and exploitation mechanisms to navigate complex search spaces efficiently. The algorithm divides candidate solutions into two cooperative groups. The exploration group is responsible for broadly scanning the search space to identify promising regions that may contain near-optimal solutions. In contrast, the exploitation group focuses on intensifying the search around the currently best solution by applying strategies such as leader-oriented updates
Algorithm 2. BER-based optimization algorithm
1: Initialize BER agents⃗Si for i = 1,2,...,d, population size d, maximum iterations MaxIter, and fitness function Fn 2: Initialize BER parameters
3: Compute Fn for each⃗Si 4: Identify the best agent⃗S∗
5: while t ≤MaxIter do 6: for each agent in the first group do 7: Heading towards the best agent
8: Compute r = h cos(x) 1−cos(x)
S(t)−1
9: Compute⃗D = r1
10: Update
S(t +1) =⃗S(t)+⃗D
11: end for 12: for each agent in the second group do 13: Apply elitism of the best agent 14: Compute⃗D = r2
L(t)−⃗S(t)
15: Compute
S1(t +1) = r2