MODEL FOR DETECTING ACADEMIC FAILURE AUTOMATICALLY AND EARLY ON