Content detection algorithms