is there anyway to use algorithims *or something else* to detect patterns?