A computer vision-based perceived attention monitoring technique for smart teaching