With the increasing availability of large-scale educational data, early identification of student learning engagement and risk is crucial in AI-enabled classrooms. This study proposes a data-driven framework that integrates K-Means clustering, machine learning prediction, and interpretable analysis to examine students’ early-course behaviors. Multidimensional early learning engagement features are extracted from the first 30 days of the Open University Learning Analytics Dataset, including VLE activity, resource access, assessment performance, submission, and registration behavior. K-Means clustering identifies high- and low-engagement groups, while Logistic Regression, Decision Tree, Random Forest, and XGBoost predict learning risk, with XGBoost achieving the best performance (AUC=0.8345). Analysis of feature contributions indicates that early assessment scores, active learning days, and submission delays are among the most influential factors. These findings demonstrate the practical value of early behavioral data for supporting risk warning and targeted intervention in AI-enabled classrooms.