In fact, the groundwater pollution caused by the acceleration of industrialization and rapid population growth is an important constraint to sustainable development. Taking L area as an example, this paper finds out the differences of groundwater vulnerability in this area and plans the groundwater vulnerability classification. For China’s groundwater protection work, it is very important for the management departments at all levels in each L area to provide development technology support for enterprises. Based on the concept of groundwater quality vulnerability and groundwater vulnerability assessment method in Japan, according to the actual situation of the study area, this paper analyzes the vulnerability of natural geography, meteorology and hydrology, geological conditions, and human activities in the area. This paper establishes an optimized and improved DRASTIC model and adds the evaluation factors affecting human activities into the evaluation conditions of traditional DRASTIC model, that is, the current land use status and groundwater exploitation. By combining bee colony optimization with groundwater vulnerability assessment model, groundwater vulnerability assessment is carried out. This paper also uses the special computer system to simulate the decision-making process of medical staff, provides obesity intelligence diagnosis and personalized prescription exercise, carries out exercise weight loss monitoring for obese teenagers, helps teenagers to achieve healthy exercise and diet, and provides scientific guidance for fitness guidance of Chinese diet youth. The system adopts the methods of artificial intelligence and software development, diagnoses obesity through youth physique test, provides personalized exercise prescription through special system, monitors diet work in real time, and provides timely feedback. In this paper, the vulnerability of groundwater quality and exercise weight loss effect of real-time monitoring are studied and applied to bee colony optimization to promote its development.