Objective

Schools and ministries collect large amounts of data on students and institutions. Machine learning (ML), a set of computer methods that learn patterns from past data, can use that data to predict how students will perform and to flag those at risk of falling behind. The authors say many earlier models work as black boxes: they give a prediction but do not explain it, so teachers and administrators find it hard to trust or act on them.

This paper tries to close that gap for Ecuador. The authors built prediction models and also added an explanation method called SHAP, which shows how much each piece of information pushed a prediction up or down. They then built an interactive dashboard where decision makers can filter results and try out what-if scenarios. The aims were to:

  • Predict academic performance from geographic, institutional, socioeconomic and academic information.
  • Explain which factors matter most for those predictions.
  • Test whether the system can run fast enough for everyday use and support policy planning through simulated changes, such as smaller classes or more teacher training.

Two models were compared: Random Forest, which averages many decision trees, and XGBoost, which builds trees one after another to correct earlier errors.

Methods

This was a data-modeling study using existing records. It describes patterns in past data and tests how well a model predicts them. It does not test any teaching approach in classrooms.

The data came from two official Ecuadorian sources. The first was the Master File of Educational Institutions, which lists each school's location, funding type, infrastructure, staff and enrollment. The second was the Ser Bachiller exam, a national test taken at the end of secondary school, which covers mathematics, language and literature, natural sciences and social sciences. The scores on this exam were the targets the models tried to predict. Data from 2018 to 2020 were used, to avoid the disruption of the COVID-19 pandemic.

Records were cleaned in several steps: filling in missing values, converting categories into numbers, scaling numeric values, removing duplicate or inconsistent rows, limiting extreme values and dropping variables that were highly correlated with each other. The final dataset had about 48,000 records and 27 features in four groups: geographic, institutional, socioeconomic and academic.

The data were split into a training set (80%) and a test set (20%). Models were tuned with Grid Search and Optuna, and checked with 5-fold cross-validation (repeatedly training on part of the data and testing on the rest). The authors compared the two main models with linear and logistic regression, using error scores, R2 (the share of variation the model explains), precision, recall and F1.

The dashboard was built with tools such as Power BI, Tableau and Streamlit. Policy simulations changed the student-teacher ratio, infrastructure and technology resources by 10%, 20% or 30% one at a time, over a 1-year horizon, while holding other features fixed. The paper says ethical approval was not required because no personal data were used.

Key Findings

Overall, the tree-based models predicted far better than linear models, XGBoost was the best of all, and the authors report that the dashboard ran at acceptable speed. The policy results are simulations from the model.

Prediction accuracy

  • XGBoost: R2 of 0.910, an MSE (average squared error) of 0.098 and an F1 of 0.860.
  • Random Forest: R2 of 0.870, an MSE of 0.125 and an F1 of 0.800.
  • Linear and logistic regression: R2 of 0.624 and 0.655, with F1 scores of about 0.73 to 0.75.
  • XGBoost had a narrower spread of errors and steadier results across 10 cross-validation rounds than Random Forest.
  • The paper says performance was strong across regions and school types, with R2 above 0.79 and F1 above 0.84 in every group. Private schools had lower error than public ones, and error was slightly higher in the Amazon and Galapagos regions.

What mattered for the predictions

  • By SHAP, mathematics score had the biggest weight (26.5%), then student-teacher ratio (21.4%), natural sciences (18.9%), language and literature (17.6%) and school type (15.6%).
  • The authors say a higher mathematics score went along with better overall prediction, with the effect leveling off at high scores.
  • The abstract says five variables explain 72% of the variation, but it lists different variables from the five in the results table, which the paper does not explain.

The paper also describes an ablation test, in which parts of the system were switched off to see what changed. Removing the scaling step cut accuracy by 3.7%, and removing feature selection cut efficiency by 18.5%.

Simulated policies

In the simulations, enhanced teacher training gave the largest rise in performance (18.3%) and a 12.1% fall in dropout. Student support programs gave 16.8% and 11.3%. Increased funding gave 15.2% and 10.5%, technology integration 14.5% and 9.2%, and smaller classes 12.7% and 8.9%. These are what the model predicts would happen, not outcomes seen in schools.

System speed

Precision stayed between 0.867 and 0.910 across low, medium and high load.

Response time was 0.75 seconds at low load and 1.83 seconds at high load, with efficiency falling from 92.2% to 85.3%.

Implications

The authors say the system could help administrators spot low-performing institutions, test what-if plans and direct resources, and that predictions should support, not replace, human judgment.

What the authors recommend

  • Education officials: use the dashboard to compare institutions with similar conditions and to explore how changes in class size, infrastructure or technology could shift expected results.
  • Responsible use: treat predictions as one input, not a final measure of students or schools. Keep human oversight, train users to read the results, and watch for bias against particular groups or regions.
  • Developers: include explanation tools such as SHAP, because removing them cut interpretability by 13.4% in the authors' test.

Our reading (not the authors' recommendation)

  • Our reading (not the authors' recommendation): the simulated gains should not be used to promise results, since the model learned patterns from past records and cannot show what a new program would cause.
  • Our reading (not the authors' recommendation): before using a tool like this, a school system should check the error rates for its poorer and more remote schools, since the paper reports slightly weaker results in some regions.
  • Our reading (not the authors' recommendation): leaders could treat the findings on student-teacher ratio and school type as questions to investigate locally, not as proof.

The evidence is not enough to say that acting on the model's advice would improve learning, because no school tried it.

Limitations

The authors name several limits. The data came from administrative records, which may be biased or incomplete, for example in student-teacher ratios and resource figures. They covered a single period, so the model may not hold across years or policy changes. The dataset had no emotional, motivational or behavioral information about students, nor details about teaching methods. Performance slowed under heavy use, so more work is needed for large-scale deployment. The authors also say the real effect of the system on student learning still has to be tested in real settings.

Other points to keep in mind:

  • The paper does not mention, but the policy results come from changing numbers in a model, which assumes the relationships found in past data would hold if a school changed. They cannot show cause and effect.
  • The paper does not mention, but mathematics and other exam scores are listed among both predictors and targets, and the paper does not make clear how overlap was avoided, which could inflate accuracy.
  • The paper does not mention, but the dropout and satisfaction figures in the simulation table are not explained by any data the paper describes.
  • The paper does not mention, but its figures are not fully consistent: it says more than 50,000 records were collected but about 48,000 were used, and the list of top factors differs between the abstract and the results.
  • The paper does not mention, but the dashboard was not tested with real teachers or administrators, so usability for them is not shown.
  • The paper itself notes that 72% of students were in public institutions and 65% of records were from urban institutions, so results may lean toward those groups.

Future Directions

The authors plan several next steps:

  • Make the system adapt over time with online learning and regular model updates.
  • Try deep learning methods that can use unstructured data, such as written feedback or digital activity logs.
  • Check the model across several educational jurisdictions to see whether it holds up elsewhere.
  • Add qualitative information, such as teacher surveys and student satisfaction, using text analysis, and study ethical deployment, including audits for fairness.
  • Run a fuller test of each system component across several institutions.

The authors stress that validating the model on real learning improvement is an essential next step.

Questions the study leaves open include whether real policy changes would match the simulated ones, whether the model stays accurate for later cohorts, and whether administrators actually make better decisions when they use the dashboard.

The bottom line: With about 48,000 Ecuadorian student records, an XGBoost model predicted exam-based performance well, explained which factors carried the most weight and fed a dashboard for testing what-if policy ideas. The strong accuracy figures are credible as a technical result, but the study used past records from one period and tested no changes in real schools, so the simulated gains from teacher training or technology are projections, not proven effects. Use tools like this as a way to ask better questions, with human review and checks for fairness.