Currently, artificial intelligence is gradually from weak AI to strong AI phase steady development, the highest performance for the learning ability of enhanced gradually, the consciousness and behavior of the "learning", make the artificial intelligence to self-improvement, self-improvement, which blurs the boundaries between human and machine, cause the risk of increasingly complex problems. One of the most noteworthy is the question of moral ethical risk. This paper, based on the artificial intelligence technology progress, analyzes the moral and ethical risks of each technological progress. The moral and ethical risk initially only comes from the moral and ethical level of its engineers, now appeared as their learning ability, the body of the sources of risk factors are also on the increase, influence factors become more diversified and multi-level. In order to put forward effective measures for the moral and ethical risks of artificial intelligence, the study on the formation process of the source complexity of its risks becomes a prerequisite. In this paper, according to the change of the source of risk factors of artificial intelligence, artificial intelligence is established ethical risk source hierarchy figure, and according to the hierarchical graph set up for the moral and ethical problems caused by artificial intelligence strategy, the construction of morality in order to reduce the risk of the fence.