The integration of Artificial Intelligence (AI) and Machine Learning (ML) in secondary education holds promise
for improving learning outcomes, yet implementation in resource-limited contexts remains underexplored. This study
investigates practical strategies for deploying AI-driven educational systems in schools with constrained infrastructure,
limited devices, and unreliable connectivity. Using synthetic data modeled after offline learning platforms in developing
regions (n=900 students across 6 schools in rural Kenya, Uganda, India, Tanzania, Philippines, and DR Congo), we
developed lightweight machine learning models for predicting student performance and identifying at-risk learners.
Classification models achieved 99.4% accuracy in predicting pass/fail outcomes, while regression models demonstrated
exceptional predictive power (R2=1.000 for linear regression, R2>0.97 for ensemble methods). Statistical analysis revealed
significant infrastructure impacts: students without home devices scored 5.21 points lower (p<0.001) and those without
electricity scored 2.29 points lower (p<0.001). However, behavioral metrics engagement (r=0.911), completion (r=0.883), and
accuracy (r=0.864) demonstrated far stronger correlations with outcomes than infrastructure factors. Our early warning
system successfully identified 0.3% high/medium-risk students with perfect stratification accuracy. Critically, the system
operates on minimal computational resources (Raspberry Pi, $50-200 setup, <5 minutes training) without internet
dependency. This research provides a practical roadmap for educational institutions in resource-constrained environments,
demonstrating that AI-driven educational analytics are achievable through strategic, low-cost implementation, thereby
contributing to reducing educational inequality in developing contexts.