analyze patterns