content detection algorithms