It is similar to ISO 9001. You get clues from data analysis (trends, etc), customer and/or market feedback, audit results, management reviews, etc.
External factors may include market trends, consumer behavior, technology changes, competitor behavior and clues from suppliers.