This study proposes an LSTM-based predictive model for assessing student success in virtual learning environments (VLEs), highlighting the impact of hyperparameter optimization using Adam and Nadam algorithms. The findings indicate that the LSTM model optimized with Nadam achieved an average accuracy of 89%, outperforming the Adam optimization with an average accuracy of 87%. The research utilizes a dataset involving 32,593 students, aiming to enhance understanding and intervention in student learning behavior through accurate predictive modeling.