With the rapid development of artificial intelligence (AI) technology, its widespread use in various industries, especially in education, has triggered an in-depth exploration of the role of AI in specific fields. Mental health nursing education, as a technology-sensitive and rapidly responsive field, is particularly important for research on the use of AI technology in order to enhance educational effectiveness and efficiency. Based on an in-depth analysis of existing educational models, this study explores how AI technology can revolutionize mental health nursing education, and comprehensively analyses the actual potential of AI technology in enhancing the quality of mental health nursing education through questionnaires, experimental design and the construction and application of statistical models.