Try entering the wrong pattern multiple times, check if it will show an option like "forgot password". If it doesn't, unfortunately factory resetting will be the only choice left.