Deep Learning Module Optimization based on Sequential Data Prediction