As you are aware, the major thing in ISO 9001:2015 is "Risk Based Thinking" where you have to consider risks and opportunities related to your organization with regard to every aspects like socio, economic, political, technological, etc. This would be not only in macro scale but for micro scale at production lines.
For do this, there are many types of tools available.
The following methods can be used for determining the inputs for identification of risks and opportunities to the company. There can be many, but these would be the more frequently used ones.