The scene detection problem