Safeguarding the physical and mental health of senior secondary students is the cornerstone of all-round development, which has a profound impact on learning effectiveness, mindset shaping and future life trajectory. However, there are many challenges, such as high academic pressure, lack of sleep, lack of exercise, and weak psychological care. To solve this dilemma, GPT technology came into being, with its powerful natural language processing capabilities to help. GPT can collect physical and mental health data such as students' sleep, diet, exercise, and academic stress to achieve accurate fine-tuning of personalized guidance, making suggestions more intimate and practical. At the same time, a convenient dialogue interface is built so that students can interact with GPT at any time and enjoy instant feedback and long-term companionship. In the face of potential risks, GPT can quickly warn and propose intervention suggestions to protect students' mental health. At the psycho-educational level, GPT acts as an intelligent dialogue partner, providing students with emotional comfort, professional advice and resource links. It can also generate a variety of educational materials to meet the differentiated needs of students and improve self-adjustment through interactive applications. In psychological counseling, GPT is a powerful assistant, from the initial screening of psychological problems to the guidance of help, to the assistance of counseling, and the monitoring of social media to identify crises, to protect the mental health of students in an all-round way. Home-school cooperation is also indispensable. GPT serves as a bridge to generate mental health education content for parents, promote home-school co-education, and jointly protect students' physical and mental health. Of course, GPT applications also face challenges such as data privacy and information accuracy, so it is necessary to strengthen data protection, integrate expert wisdom to ensure that the information is correct, and continuously optimize guidance strategies. To give full play to the effectiveness of GPT, educators, technology developers, parents and all sectors of society need to work together to explore and ensure that technological progress and humanistic care are equally important, to protect the physical and mental health of students.
Key Words: generative pre-trained transformer; artificial intelligence; high school students; physical and mental health