A machine learning-based approach for picture acquisition timeslot prediction using defective pixels