A new machine learning algorithm can accurately predict how long people will spend viewing an exhibit at a museum.