Application and Deconstruction of Exercise Prescription Formulation Based on K-Means Algorithm in the Prevention and Treatment of Chronic Diseases

Chronic diseases, also known as chronic noncommunicable diseases, have the characteristics of a long period of symptoms, complex and diverse causes, relatively large damage to human health, and a relatively wide impact on the overall safety of society. is study mainly discusses the application of exercise prescription formulation based on K-means algorithm in the prevention and treatment of chronic diseases. Aiming at dierent groups of people with dierent physical conditions in dierent environments, this study established a comprehensive exercise prescription library and feedback channels. By comparing and analyzing the eects of dierent exercise exercises, people can provide scientically standardized and suitable exercise and tness programs for people with chronic diseases. e feasibility of the K-means algorithm in chronic disease prediction is conrmed by experiments, and the experimental time of the improved algorithm and the traditional algorithm is compared, and the eciency of the improved algorithm is conrmed. Aiming at the privacy, complexity, missing data values, and other issues of chronic disease medical examination data, we have carried out perfect data preprocessing research. After 12 weeks of exercise intervention, the vital capacity of the exercise group increased signicantly (5.83%) (P< 0.01). e subendocardial myocardial viability rate increased by 9.74% (P< 0.01), and the radial artery reected wave growth index and systolic blood pressure decreased slightly (P< 0.05). is indicates that the 12-week exercise training intervention program designed in this study can eectively enhance the cardiopulmonary function of the exercise group, thereby further improving the body’s aerobic capacity (P< 0.05). is study lays the foundation for the smooth development of chronic disease prevention and treatment.


Introduction
e global incidence of chronic diseases continues to increase as the population ages and the prevalence of diabetes, obesity, and hypertension increases. e high prevalence of chronic diseases, huge medical expenses, and easy to combine with cardiovascular and cerebrovascular diseases, high morbidity and mortality, make chronic diseases a silent killer disease. Patients often seek treatment in various ways, but the curative e ect is not good, the disease cannot be controlled, and the economy is overwhelmed, which leads to the loss of con dence in life, and then produces serious psychological stress, which often further aggravates the disease. Relief and improvement of chronic diseases are an important source of exercise prescriptions.
is is also a solution that requires attention to the exercise prescription process. Do a questionnaire survey of chronic diseases as needed, and add data support to the exercise prescription knowledge base. Organically combining preventive medicine with national tness exercise prescriptions and guiding the masses in scienti c tness, scienti c diet, and scienti c prevention is the best choice to e ectively alleviate the increasingly prominent subhealth problems. e prevention and management of chronic diseases have always been the focus of health work. With the promotion of various relevant policies, people's health literacy level for chronic diseases has been continuously improved. Shlisky J highlighted the role of nutritional science in promoting healthy aging and improving outcomes for agerelated diseases [1].
ombs B&D aims to compare commonly used measures of self-efficacy between SSc and other disorders. at is, the score on the Self-Efficacy in Chronic Disease (SEMCD) scale [2]. Marloes explored the solutions for chronic diseases [3]. Acham et al. reviewed the benefits of tropical fruits in the prevention of chronic diseases [4]. Yetley et al. believed that DRI can evaluate dietary health [5]. eir efficiency in the prevention and management of chronic diseases is not very high, so we refer to relevant literature and use the K-means algorithm to optimize the prevention and treatment of chronic diseases.
In medical-related fields, K-means algorithm is used for auxiliary diagnosis of different diseases to facilitate the extraction of knowledge to support clinical experts to make decisions. Qin et al. is very concerned about the development of distributed k-means algorithm for WSN [6]. Mario Haut et al. believed that remote-sensing hyperspectral imaging provides the possibility of collecting images in the region [7]. Kumar et al. believed that data clustering is an important data mining technology [8]. Varadarajan and Xiao focused on projection clustering [9]. Alsmadi believed that early diagnosis of jaw tumor is very important to improve its prognosis [10]. e K-means algorithm can realize the prediagnosis and screening of chronic diseases, and the K-means algorithm will be further discussed later. e effects of chronic diseases are varied. Many studies have shown that due to the accelerated aging process and the prolongation of life expectancy, the scale of the elderly with chronic diseases continues to expand, and the patients with multiple chronic diseases are more frail and have low selfcare ability, which will inevitably lead to an increase in the utilization of health services. K-means algorithm is used to formulate exercise prescriptions, and the purpose is to provide a good way for the prevention and treatment of chronic diseases. Rehabilitation exercise can reduce the incidence of cardiovascular events and improve cardiac function. To explore the effect of exercise prescription on exercise cardiopulmonary function in patients with chronic diseases with different syndromes by observing the indicators of cardiopulmonary exercise test, so as to provide a scientific and effective clinical basis for the rehabilitation exercise treatment of chronic diseases. e cluster analysis with the highest confidence is {chronic pharyngitis �> obesity}, and its confidence is as high as 0.9999. Not only that, in this total 360 cluster analysis, the cluster analysis results ranked in the first 131 are obesity, and the confidence level is 0.9999.

Chronic Disease.
e worldwide prevalence of chronic diseases has become a widespread phenomenon and a rapidly growing public health problem. e problem of multiple chronic diseases is more complicated, and it is very important for clinicians, elderly patients, and policy makers to understand the prevalence status and risk factors of chronic diseases and to explore the prevalence patterns of multiple chronic diseases. Patients with chronic diseases often show changes in cardiac structure, such as myocardial hypertrophy and ventricular hypertrophy, which affect cardiac function. Angiotensin II can increase the synthesis of cardiac contractile protein and reduce the ability of vascular endothelial cells to secrete. At the same time, the smooth muscle cells in the blood vessels are proliferated, the lumen is narrowed, the peripheral blood vessels are constricted, and the perfusion of tissues and organs is reduced. is results in cellular oxidative stress and autophagy, leading to cell damage and ventricular remodeling [11]. Skeletal muscle is the main organ of human energy consumption and plays an important role in human movement and metabolism. In proper exercise, skeletal muscle groups can be exercised through exercise, and the metabolic rate of skeletal muscle cells can be accelerated, thereby maintaining bone homeostasis, increasing bone and joint friction and utilization, and maintaining the flexibility of each joint. e oxidative damage of mitochondria is related to many diseases, which can cause skeletal muscle damage. Exercise can promote the synthesis of mitochondria in skeletal muscle cells and improve oxidative function, thereby alleviating the aging process of skeletal muscle.

Exercise Prescription.
In the study, the exercise group carried out exercise risk assessment, issued exercise prescriptions, implemented exercise interventions, conducted exercise guidance and follow-up management, and the control group carried out chronic disease risk assessment, but did not provide exercise prescriptions. Reasonable exercise can make the body strong, muscles strong, lose weight properly, improve self-resistance, effectively control blood sugar, and blood lipid indicators, thereby reducing the chance of suffering from various chronic diseases. In order to verify the change rules of physiological and biochemical indexes before and after exercise prescription, the t-test was performed on the results by using the hypothesis test method of the difference of the two normal population means in mathematical statistics to verify whether the changes of these indexes have significant changes [12]. Mathematical statistics can be used to study the statistical regularity of a large number of random phenomena.
Take the test statistic Among them, n 1 , n 2 is the sample size [13]. e sample mean before exercise prescription is e sample mean after exercise prescription is e sample variance value before exercise prescription is 2 Mathematical Problems in Engineering e sample variance value after exercise prescription is [14] Everyone's exercise prescription is also constantly changing with the changes in the individual's own conditions, weather, and places that day. For example, if the weather is good, people can do outdoor sports; if the weather is bad, people can choose indoor sports such as climbing stairs, cycling in the gym. Adjust the exercise frequency, exercise intensity, and exercise time in time according to the exercise effect and ensure the weekly exercise volume of each person. e key points of exercise prescription knowledge for each constitution type were designed by themselves and distributed to the test subjects, including the basic knowledge of traditional Chinese medicine constitution, sportsrelated knowledge and the content of test process control. e specific embodiment of the exercise prescription is easy for the subjects to understand. e use of the Internet and other media to establish a contact group is convenient for collective participation in watching online videos, and collective communication of the effect and evaluation of exercise prescriptions. Regularly discuss the problems in the implementation of exercise prescription in the group every week, communicate with each other, and improve together.
rough the physical test and evaluation of the patient group, the online and offline are combined to build a new health management model in the Internet era and to provide users with professional sports consultation and integrated services of sports prescriptions. After many times of analysis, conception, discussion, and programming, the system finally gets the basic version of the basic realization of the function [15]. e system structure is shown in Figure 1.

K-Means
Algorithm. In this study, K-means algorithm was used to classify chronic diseases, which was convenient for individualized analysis and prediction of chronic diseases. Each class will be assigned for at least one grid to ensure that any class can be found. All grids assigned to the same class will move to the same cluster center and overlap. erefore, only the grid with the highest density in the same class is kept, other grids are deleted. is can ensure that each class is finally represented by only one grid, and the number of resulting classes and the centers of all classes can be effectively determined. e round corresponding to the optimal grid size is denoted as J, that is [16]: Let s i be a measure of the degree of dispersion of clusters C i . d(C i , C j ) indicates the dissimilarity between the two clusters. e similarity index R ij between C i and C j is defined as follows: R i is defined as follows: e DB metrics are defined as follows: e dissimilarity between two clusters is defined as follows: e degree of dispersion of clusters is defined as follows: Assuming that the data set is clustered into k classes, denoted as C�(C 1 , C 2 ,. . ., C k ), the sum of all intraclass dispersions when the samples are divided into k classes is [17] e Gap statistic model is e time for a user to access a url link is e similarity of sim(u 1 , u 2 ) between user u 1 and user u 2 is Define the mean of chronic disease treatment outcomes as E j and the probability of treatment success as p ij [18]: Recall rate of K-Means algorithm in chronic disease prevention and treatment: Mathematical Problems in Engineering 3 e characteristic measures for all objects are In the formula, F(i, j) represents a collection of categories of chronic diseases. e purity of the entire clustering result is de ned as follows:

Deconstructing Objects and Detecting
Metrics. e test subjects of this experiment are chronic disease patients aged 30-55 years, and the patients who voluntarily participate in the exercise prescription experiment are selected, and the prescription instructions are issued. A total of 40 subjects were divided into 20 cases in the control group and 20 cases in the exercise prescription group.
(1) General item records are measure height, weight, body mass index (BMI), heart rate and blood pressure of admitted patients; test blood routine, urine routine, routine blood biochemical indicators, and glycosylated hemoglobin. (2) Diet arrangement and daily activity regulations: in the three experimental days of exercise intervention, breakfast and lunch were xed and the same diet, which was uniformly distributed by the nutrition department. At the same time, it is forbidden to drink strong tea, co ee, and sugar-sweetened beverages, so as not to a ect the experimental results. During the experiment, the patients were required to work and rest regularly, not to perform other activities except the exercise in the experiment, and to avoid the in uence of stress factors such as mental stimulation and insomnia [19].

Overall Design of Exercise Experiment.
All subjects performed a total of three exercise experiments, divided into 3 days, and the interval between each two experimental days was at least 3 days to avoid the in uence of the previous exercise. e content of each exercise is exactly the same, but the time points of the exercise are di erent, which are 1 h, 2 h, and 3 h after breakfast (calculated by the time when the patient starts to eat the rst meal). erefore, they were de ned as 1 h postprandial exercise group, 2 h postprandial exercise group, and 3 h postprandial exercise group. e arrangement sequence of the three exercise experiments of di erent subjects was randomly rotated to avoid the difference in the in uence caused by the exercise sequence. On the day of the exercise experiment, all patients measured their fasting blood glucose at 6.30 am, then immediately ate the delivered meals, exercised at the speci ed time points, and detected the blood glucose levels before exercise, immediately after exercise, 11 a.m. and 4 p.m., respectively. All venous blood draws were assisted by endocrinology nurses who were uniformly trained and instructed. e blood glucose-level detection and the supervision and guidance of the exercise process were carried out by the researchers themselves. In the experimental stage, in order to fully re ect the role of experimental variables in the basic part, try to avoid interference caused by di erent aspects of the preparation part and the end part. erefore, in the preparatory part and the end part, a small amount of exercise is selected for positioning freehand exercises and relaxation and nishing activities [20].

Exercise Program.
e exercise method is brisk walking, and the patient is required to walk briskly at the fastest speed that he can achieve. e total walking distance is 2 km. According to the results of the preexperiment, the preset movement speed is about 4-4.5 km/h, and the movement time is expected to be 25-30 min. 5 minutes of preparatory activities were performed before the exercise, and 5 minutes of nishing exercises were performed after the exercise. During the rst exercise, the patient was told in advance to walk at the fastest speed and ability that he could achieve. At the same time, the researchers closely monitored and recorded the distance and time each subject walked (movement time was recorded every 500 m). Polar watch is one of the most used tools in the sports world and plays a very important role in the training of various sports. e patients who were initially planned to be enrolled were given exercise heart rate monitor (Polar watch), energy monitor, and pedometer to experience exercise with four-level exercise prescription, and the subjects completed a full set of exercise according to the content of exercise prescription CD under the supervision of medical staff. e duration of exercise therapy was 12 weeks. Before the exercise therapy is officially started, the patient's limb coordination ability and proficiency in the prescription will be evaluated first, and the formal exercise therapy and index observation will be started only after the patient can successfully complete each movement of the whole exercise prescription independently. e test flow is shown in Figure 2.

Statistical Processing.
e analysis software SPSS21.0 was used for this analysis, all data results were expressed as mean (X ± S), and the significance test between groups and within groups was carried out by two-factor repeated measures analysis of variance. For significant differences, one-way analysis of variance combined with posthoc test was used to determine the specific location of significance, and P value <0.05 represented a statistical difference. e purpose of the posthoc test study is to be equivalent to the multiple ttest, showing the least significant difference.
CH is used to measure the difference between the classification situation and the ideal classification situation (maximum variance between classes and minimum variance within classes). e CH scores of K-means and DBSCAN under different numbers of clusters are shown in Table 1. Both the K-means method and the DBSCAN method have the highest CH score when the data is divided into two clusters. At this time, DBSCAN sets the parameters Min-Pts � 86, ∈ � 1 (the parameter ∈ is the neighborhood radius of the data point), and marks 2518 outlier data. Cluster 1 contains 10212 pieces of data, and cluster 2 contains 4783 pieces of data. rough analysis, it is found that all records in cluster 1 do not contain obesity labels, and all records in cluster 2 are obesity. e association rules were mined in the first cluster, and there were 62 disease combinations with support greater than 0.01. e disease combination with the highest support degree is shown in Table 2, among which the combination of fatty liver and hypertriglyceridemia has the highest support degree, reaching 0.0415. Among them, fatty liver and hemorrhoids have the highest number of disease combinations, with 14 types.
In the second cluster, the mining of cluster analysis is carried out, in which there are 360 disease combinations with a support degree greater than 0.01. ere were 143 disease combinations including two items, 167 disease combinations including three items, and 49 disease combinations including four items. Table 3 below shows the top ten disease combinations ranked by support, among which the combination of obesity and hypertriglyceridemia has the highest support, reaching 0.1971. Among them, the number of disease combinations related to obesity was the highest, which was 191 kinds. e mining results of cluster analysis in the second cluster are shown in Table 3.
From the disease combination in cluster 2, there are 360 rules with a confidence greater than 0.1 in the cluster analysis, among which the cluster analysis with the highest confidence is {chronic pharyngitis �> obesity}, and its confidence is as high as 0.9999. Not only that, in this total 360 cluster analysis, the cluster analysis results ranked in the first 131 are obesity, and the confidence level is 0.9999. e cluster analysis results of the top six cluster analysis confidence rankings mined in cluster 2 are shown in Table 4. e result is that the cluster analysis of obesity and fatty liver is the largest proportion of all the rules mined, and they intersect with each other. e results can intuitively see the relationship between obesity and fatty liver, and obesity and fatty liver have a very serious impact on physical health. e confidence level indicates that once people have obesity, there is a great chance to accompany diseases such as chronic pharyngitis, hemorrhoids, and fatty liver, but it does not rule out the possibility of this result due to too few data samples of chronic pharyngitis and hemorrhoids in this dataset. Analysis of the cluster analysis mining results in the two clusters, some chronic diseases including asthma, gout, cervical spondylitis, and other diseases did not find any related disease combination and cluster analysis. Analyzing the reasons, on the one hand, these diseases may occur alone and are not closely related to other diseases; on the other hand, the number of data samples may be too small. For example, there are only 28 cases of asthma and only 88 cases of gout in this dataset. In contrast, there are 5338 cases of obesity with the most comorbidity combination.
When trying to find the best parameters for K-means, a grid search method is used to determine the best parameters. When using grid search, a set of parameters is randomly selected and trained with the selected set of parameters, and then repeated until a certain number of iterations is reached to obtain performance metrics for each run. In this subsection, the micro-average F1 (MicroF1) is used as the evaluation metric (ReLU is shown in Figure 3(a)). In this experiment, the maximum number of iterations is set to 1000, the learning rate is set to 0.01, 0.05, 0.075, and 0.1, the number of hidden layers is set to 2, and each layer has 100 neural nodes. At the same time, multiple dropout layers are introduced, including 0 dropout layers, 1 dropout layer and 2 dropout layers before the output layer, and the dropout ratio of each dropout layer is set to 0.4. Finally, the Sigmoid and ReLU activation functions are set for comparison to evaluate the respective cases. Overall, under the same hyperparameters, the ReLU function performs better than the Sigmoid activation function (the Sigmoid activation function is shown in Figure 3(b)).
In order to confirm the reliability of the association rules obtained by the experiment, the multinomial logistic regression method was used to analyze the correlation of the Mathematical Problems in Engineering incidence factors of chronic kidney disease, and the validity of the rules obtained by the improved algorithm was evaluated. Select the 23 physical examination feature items contained in Table 5 as independent variables, and set the nal classi cation result as the dependent variable. e discretized data set was submitted to the data statistical analysis software IBMSPSSStatistics22 developed by IBM for multinomial Logistic regression analysis. Logistic regression analysis is a generalized linear regression analysis model, which is often used in data mining and automatic disease diagnosis. In the experiment, the nal classi cation result of chronic kidney disease was set as the dependent variable, and the related physical examination items of chronic kidney disease were analyzed. By comparing the speci c experimental results and comparing the speci c odd ratio (OR) value, it can also be regarded as an accurate estimate of the relative risk of chronic kidney disease. It was concluded that the four main factors a ecting the incidence of chronic kidney disease were hypertension, diabetes, urine speci c gravity, and albumin content. Among them, the highest correlation with chronic kidney disease was hypertension, OR 2.754, and the weakest was urine speci c gravity, OR 1.262. e results of logistic regression analysis are shown in Table 5.
In the case of the same minimum support threshold and di erent number of case items, comparing the running time of the two algorithms. It can be seen from Figure 4 that the running time of the two algorithms increases with the number of case records, and there is a more obvious distinction from 6000 records, and with the increase in the    number of case records, the time di erence between the two algorithms will gradually widen. When the number of case records decreases, the time gap between the two algorithms will gradually shorten. For example, when the number of case records is 4000, the running time of the traditional vertical data format algorithm is almost the same as the running time of the K-means algorithm, both of which are about 23 s. e main reason is that in the case of a small number of data pieces, although the K-means algorithm reduces a large number of cyclic comparison operations in the orthogonal process, there is a process of calculating the di erence set table in the algorithm ow, which will take a certain amount of time. Even when the number of case records is 2000, there is a situation where the traditional data format takes less time. However, with the increase of the number of records, the advantage of K-means algorithm can be manifested when the time to nd the di erence table is negligible compared to the time spent by a large number of loop comparisons. e comparison of K-means and DSE is shown in Figure 4. e time required for both algorithms to run decreases as the minimum support threshold increases, because the size of the minimum support threshold a ects the generated candidates. Under di erent minimum support thresholds, the results of the running time of the two algorithms are compared, in which there are a total of 8000 transaction data. It can be seen from this that when the support is increasing, the number of candidates generated by the algorithm is correspondingly reduced, and the time consumption is also reduced (as shown in Figure 5(a) per second). As can be seen from Figure 5, when the support threshold is before 3%, the K-means algorithm has a great reduction in the running time compared with the traditional vertical data format algorithm (the algorithm can construct an ordered search list and use the depth-rst search strategy to simultaneously generate the candidate set and the support of the candidate set).
is shows that in the case of a large number of candidate item sets, the time e ciency of the K-means algorithm is nearly doubled. When the support threshold is increased to 3%, the running time of the two algorithms will gradually tend to be at due to fewer and fewer candidate item sets generated (the response e ciency is shown in Figure 5(b)).
Among male medical examiners with hypertension, the con dence level of being diagnosed with kidney disease is about 81%. e reason is that high blood pressure will lead to atrophy of the blood supply and excretion function of the kidneys, lesions of the renal arteries, resulting in proteinuria, and blood pressure will continue to increase. us, a vicious   Mathematical Problems in Engineering circle (high blood pressure and heart disease are shown in Figure 6(a)). e cause of high blood pressure in men is often caused by staying up late, drinking alcohol, and irregular eating habits for a long time. erefore, maintaining a good routine of work and rest and healthy eating habits, and drinking less alcohol are of great help in preventing and reducing kidney disease. Among male medical examiners with diabetes, the urine speci c gravity is greater than 1.025, and the albumin content in urine is more than 5.5 g/d, the con dence level of being diagnosed with kidney disease is about 73%. ese two values are higher than the normal values, both because of glomerular ltration problems, resulting in disorders of the body's metabolism, increased protein content in the urine. In this case, it is necessary to go to the hospital for treatment in time, and irregular physical examination is also a very important cooperative measure (nephropathy and diabetes are shown in Figure 6(b)).
Taking hypertension as the dependent variable, the correlation analysis between chronic diseases was carried out.
e experimental results are shown in Figure 7. According to the experimental results, comparing the OR value, the analysis concluded that there are ve chronic diseases a ecting the occurrence of hypertension, namely hyperlipidemia, diabetes, fatty liver, coronary heart disease, and stroke. Among them, the chronic disease with the strongest correlation with hypertension was hyperlipidemia, OR 3.826, and the weakest was stroke, OR 1.415. According to the results of the above statistical analysis, it can be seen that chronic diseases such as hyperlipidemia and diabetes have a promoting e ect on the occurrence of hypertension, and they are all risk factors for hypertension (the standard error is shown in Figure 7(a)). Similarly, using several other chronic diseases as the dependent variable for analysis, it was found that when any one chronic disease was  used as the dependent variable, several other chronic diseases had an impact on it (OR and P are shown in Figure 7(b)). e selected important in uencing factors for the occurrence and development of hypertension are age, environmental factors, other diseases, season, gender, BMI, fasting blood glucose, triglycerides, occupation, smoking history, drinking history, genetics, potassium, systolic blood pressure, abnormal indicators, individual factors, highdensity cholesterol, low-density cholesterol, diastolic blood pressure, sodium, kidney disease, endocrine, uric acid, total cholesterol, primary and secondary hypertension etc., totaling 26. Changes in heart rate and increased peripheral resistance can lead to low pressure. Because the degree of obesity re ected by the ratio of height factor to weight factor is included in BMI index, it is no longer selected as an important in uencing factor. Since there are still many in uencing factors selected, and there is a certain overlap between them, the a liation is not clear. In order to carry out in-depth research, preliminarily determine the degree of in uence of various important factors, and gradually clarify the etiological evidence of the occurrence and development of hypertensive diseases, which can be used for risk prediction of the occurrence and development of hypertensive diseases. In this study, the system structure model was used to perform hierarchical clustering analysis on the selected important in uencing factors to construct a hierarchical structure of the important in uencing factors of hypertension disease management, and then calculate the in uence weight of each factor. e proportion of important factors a ecting the occurrence and development of hypertension is shown in Figure 8.
After 12 weeks of exercise intervention, the weight of the exercise group decreased by 3.11%, waist circumference decreased by 2.48%, and the decrease was very signi cant compared with the previous one (P < 0.01). Waist-to-hip ratio and body fat percentage decreased signi cantly compared with those before exercise (P < 0.05). Compared with before intervention, hip circumference showed a slight downward trend, but the di erence was not signi cant (P > 0.05). e control group decreased by 0.60% (P > 0.05).
Waist circumference is an easy, inexpensive way to measure abdominal obesity. Computed Tomography (CT), MRI, ultrasound, bioelectrical impedance analysis, and dualenergy X-ray are also methods for quantitatively detecting abdominal fat. ere is an indisputable link between visceral adipose tissue (VAT) and cardiometabolic risk, and normal normative body weight, BMI and waist circumference are the main indicators of nonpharmacological lifestyle health management.
e exercise management regimen of this study played a role in reducing body weight and waist circumference in the managed population. Weight loss is based on lifestyle changes, including diet and increased physical activity. e comparison of body shape before and after the experimenter's intervention is shown in Figure 9.  After 12 weeks of exercise intervention, the vital capacity of the exercise group increased signi cantly (5.83%) (P < 0.01); the subendocardial myocardial vitality rate increased by 9.74% (P < 0.01), and the radial artery re ected wave growth index and systolic blood pressure decreased slightly (P < 0.05). It shows that 12 weeks of exercise training intervention can e ectively enhance the cardiopulmonary function of the exercise group, thereby signi cantly improving the body's aerobic capacity (P < 0.05). Exercise a ects both the development of atherosclerosis and the incidence of primary and secondary cardiovascular events, including myocardial infarction and stroke. Exercise also plays an important role in improving other chronic vascular diseases, including diabetes and dementia. Worldwide, the proportion of elderly people su ering from coronary heart disease is relatively high. e range of physical function changes after the intervention is shown in Figure 10.

Conclusion
Chronic diseases are characterized by complex causes, high morbidity, and high mortality. Once diagnosed, they are di cult to eradicate. e management of chronic diseases is mainly based on prevention and control, and only early diagnosis and early treatment can e ectively reduce the risk of disease. erefore, after people's routine physical examination, in-depth chronic disease risk prediction is carried out on their physical examination data, and citizens' understanding of chronic diseases will be strengthened, which will e ectively reduce the incidence of chronic diseases. With the increase of age, the related indicators of chronic diseases also showed an upward trend. At the same time, the comorbidity rate of chronic diseases in the overweight and obese population was also signi cantly higher than that in the normal population. However, whether it is a senior or an overweight or obese population, there are di erences between their exercise ability and normal physique adults. Based on the formulation of exercise prescriptions, this study conducts exercise ability assessment, provides scienti c guidance through health management model, and uses K-means algorithm to classify and intervene training for chronic disease patients with di erent symptoms. It solves the problem of insu cient athletic ability and lack of scienti c guidance for these people. e K-means algorithm proposed in this study has greatly improved the e ciency of case data analysis. e physical examination health data used in this paper only includes the basic data and laboratory biochemical data of the physical examination personnel and does not fully consider the physical examination personnel's eating habits, exercise habits, drug use, and other medical records and other data. erefore, a wider range of feature dimensions can be used in the next research to improve the performance of the model. Constructing a uni ed medical database speci cation is bene cial to the data sharing of di erent medical institutions.
Data Availability e data used to support the ndings of this study are available from the corresponding author upon request.