Diabetes prediction analysis method based on automatic machine learning

Through automatic machine learning technology, XGBoost Filter-style feature selection and Autogluon framework are used to automatically build a diabetes prediction model, which solves the tedious problems of feature selection and parameter tuning in traditional methods, improves prediction accuracy and efficiency, lowers the application threshold, and helps Detect diabetes early and improve the quality of medical care.

CN118748086APending Publication Date: 2024-10-08HUIZHOU UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410711149.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Traditional machine learning relies on manual intervention in diabetes prediction analysis. Feature selection and parameter tuning are cumbersome, time-consuming and labor-intensive, and model performance improvement is limited, making it difficult to detect diabetes risks early.

Method used

Using a method based on automatic machine learning, the data is filtered through the XGBoost Filter-style feature selection algorithm, and the Autogluon framework is used to automatically build a diabetes prediction classification model to reduce human intervention and improve the model's generalization ability and prediction efficiency.

Benefits of technology

It improves the accuracy and efficiency of diabetes prediction, reduces the dependence on professional knowledge in model establishment, and lowers the application threshold, allowing more non-professionals to participate in research, helping early detection and intervention of diabetes, and improving the quality and efficiency of medical services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748086A_ABST
    Figure CN118748086A_ABST
Patent Text Reader

Abstract

The invention provides a diabetes mellitus prediction analysis method based on automatic machine learning. The diabetes mellitus prediction analysis method comprises the following steps: S1, data information collection; S2, data preprocessing; S3, data screening through a Filter type feature selection algorithm based on XGBoost; the diabetes prediction analysis method based on automatic machine learning has the advantages of being more objective and reliable, capable of effectively improving prediction precision and prediction efficiency, improving medical service quality and the like, and has great social value and use value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of statistical analysis, and in particular to a diabetes prediction analysis method and application based on automatic machine learning. Background Art

[0002] As a chronic disease, diabetes affects more than just the patient's physical health. It is also more likely to cause complications such as kidney disease and vision loss, bringing heavy economic and psychological burdens to individuals and the entire society. However, the symptoms of diabetes are often not obvious, and many patients find it difficult to detect the disease in the early stages, thus missing the best time for treatment. Therefore, early detection of diabetes risks, early diagnosis and early treatment through predictive analysis are of great significance for preventing and delaying the occurrence of diabetes.

[0003] With the advent of the big data era, artificial intelligence, as an emerging technology in the 21st century, has been applied to medical management. The use of machine learning technology for disease risk prediction, diagnosis and treatment has become a hot topic. Relevant experts can select appropriate algorithms such as neural networks and logistic regression for training based on the characteristics of the data and prediction needs, and adjust the model parameters to improve model performance and robustness, thereby extracting useful information. This provides support for doctors' diagnosis and treatment.

[0004] However, traditional machine learning analysis research is highly dependent on people, requiring experts to carry out tedious steps such as model design, feature selection, model training, parameter adjustment and evaluation, which is time-consuming and laborious. Even data science experts often have headaches for processes such as model training and parameter adjustment. In addition, in traditional machine learning methods, the improvement of model performance is often limited by multiple factors, among which feature selection and parameter setting are particularly critical. These processes often require researchers to manually fine-tune parameters to achieve optimal performance, which not only has certain difficulties and technical thresholds, but also requires a lot of time to learn and master the skills of model training and parameter tuning. Automated machine learning (AutoML) can automatically perform steps such as feature selection, model construction, and search for optimal hyperparameters. Users only need to provide data, and the system can automatically build a machine learning model to achieve automated machine learning, which greatly speeds up the progress of research. From the perspective of use, automated machine learning has greatly lowered the threshold for using machine learning, and more people in non-professional fields will benefit from the development of automated machine learning. However, this technology still needs further analysis and research. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a diabetes prediction analysis method based on automatic machine learning that is more objective and reliable, can effectively improve prediction accuracy and prediction efficiency, and improve the quality of medical services.

[0006] The technical solution adopted by the present invention to solve the above problems is: The present invention provides a diabetes prediction analysis method based on automatic machine learning, comprising the following steps: S1: Data information collection, S2: Data preprocessing, S3: Filter data using the XGBoost-based Filter feature selection algorithm. S4: Analysis of diabetes prediction classification model based on automatic machine learning.

[0007] Furthermore, the data preprocessing in step S2 includes the following steps: S21: Data check, S22: Data cleaning.

[0008] Furthermore, in step S3, the method of filtering data by the Filter-type feature selection algorithm based on XGBoost is specifically to score each feature, assign different weights to each feature, and finally sort them according to the size of the weight. Then, according to the set threshold, features with higher scores are selected, and features with lower scores are filtered out, thereby reducing the number of features, preventing overfitting, and making the model more generalizable.

[0009] Furthermore, step S4 specifically includes the following steps for analyzing the diabetes prediction classification model based on automatic machine learning: Y1: Model building, Y2: pass the data set to the task.fit() function, Y3: View the fitting summary and training results by calling the leaderborad() function. Y4: Select the best fitting model for prediction.

[0010] Furthermore, step Y2 passes the data set to the task.fit() function, which only needs to be called once to automatically perform data preprocessing and model fitting.

[0011] Furthermore, in the data preprocessing step S2, the label column is first checked, and the task type is determined to be classification or regression, and then the data are processed one by one to automatically fill in the missing values.

[0012] Furthermore, the data check in step S21 is specifically as follows: X1: First, the missing value test is performed on it. X2: Check for abnormal data and false data. X3: Statistics were performed on the data attributes of each column, and the mean, standard deviation, maximum value, upper and lower quartiles of each data item were calculated.

[0013] Furthermore, the specific method of data cleaning in step S22 is to adopt the mean filling processing of each column attribute, firstly, all 0 value data are set as null value processing with NaN, and then the mean of each column attribute is calculated respectively, and the null value is filled with the mean.

[0014] The beneficial effects are: The diabetes prediction analysis method based on automatic machine learning provided by the present invention is more objective and reliable, can effectively improve the prediction accuracy and prediction efficiency, and improve the quality of medical services. The specific advantages of this application are as follows: (1) This application adopts the XGBoost-based Filter feature selection method. This algorithm can effectively remove the influence of redundant features, and by combining the feature importance score and the SVM classification model strategy, it greatly eliminates the situation of unreasonable thresholds set by humans, making feature selection more reasonable and scientific, reducing the time cost of repeatedly debugging appropriate thresholds, and can quickly screen out features that are irrelevant to experimental variables and unimportant, improve model prediction accuracy, and reduce running memory and running time. The diabetes data set shows that the feature selection algorithm studied in this application, combined with the professional knowledge of medical personnel, can efficiently select variables related to diabetes classification prediction.

[0015] (2) Apply the Autogluon framework of automatic machine learning to the classification and prediction of diabetes, and compare it with traditional machine learning methods. By establishing Logistic regression model, RandomForest model, SVM model, LightGBM model and the currently popular Stacking ensemble learning model, a series of parameter tuning operations are performed to classify diabetes, and automatic machine learning technology is also used to predict and classify diabetes data sets. The experimental results show that the Precision, Recall, F1-score, and AUC of the automatic machine learning framework method are all improved compared with traditional machine learning methods. It can also reduce the dependence on professional knowledge for model establishment, reduce the impact of human intervention, make the model more objective and reliable, and improve the prediction accuracy and efficiency. At the same time, it greatly reduces the application threshold of machine learning, allowing more non-professionals to use machine learning technology for research, and better support clinicians' diagnosis and treatment, which helps to detect and intervene in diabetes at an early stage, reduce patients' health risks, and improve the quality and efficiency of medical services.

[0016] In summary, the diabetes prediction and analysis method based on automatic machine learning provided in this application has great social value and practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a diagram of a diabetes data set table of the present invention; Figure 2 It is a box plot of each attribute feature in the data checking step of the present invention; Figure 3 It is a statistical chart of each attribute characteristic data in the data checking step of the present invention; Figure 4 It is a statistical chart of each characteristic data after cleaning in the data cleaning step of the present invention; Figure 5 is a feature importance ranking diagram in the present invention; Figure 6 is a diagram of the SVM verification result after feature selection in this embodiment; Figure 7 1 is a table of optimal parameters of the Logistic regression model of Example 1; Figure 8 It is the random forest optimal parameter combination diagram in Example 2; Fig. 9 It is the SVM core code diagram in Example 3; Fig.10 is the optimal parameter diagram of SVM in Example 3; Fig.11 is the optimal parameter diagram of LightGBM in Example 4; Fig.12 is the Autogluon training flow chart in Example 6; Fig.13 is a detailed diagram of the Autogluon training process in Example 6; Fig.14 is the Autogluon parameter diagram in Example 6; Fig.15 is the Autogluon fitting summary graph in Example 6; Fig.16 is a diagram showing the results of selecting the optimal model of Autogluon in Example 6; Fig.17 2 is a diagram showing the prediction effects of each model in this embodiment. DETAILED DESCRIPTION

[0018] The following specifically describes the embodiments of the present invention in conjunction with the accompanying drawings, which are only for reference and illustration and do not constitute a limitation on the scope of patent protection of the present invention.

[0019] The technical solution adopted by the present invention to solve the above problems is: This embodiment provides a diabetes prediction analysis method based on automatic machine learning, comprising the following steps: S1: Data information collection, In this example, the dataset collects demographic, clinical, and diagnostic characteristics of 768 Indian women, including 8 feature variable attributes and 1 predictor variable label. The data feature variable attributes are BloodPressure, Glucose, Pedi, SkinThickness, Insulin, BMI, Age, Pregnancies, and Outcome. 1 indicates illness and 0 indicates no illness. An overview of some of the data is shown below. Figure 1 shown.

[0020] S2: Data preprocessing, In the embodiment, data preprocessing mainly includes two steps: data inspection and cleaning. Data inspection mainly focuses on the integrity and accuracy of data, involving the identification and processing of missing values, outliers, false and duplicate data. For missing data, direct deletion may lead to information loss, so statistics such as mean or mode are often used to replace it. For bad and noisy data, deletion is generally performed.

[0021] S3: Filter data using the XGBoost-based Filter feature selection algorithm. S4: Analysis of diabetes prediction classification model based on automatic machine learning.

[0022] Furthermore, the data preprocessing in step S2 includes the following steps: S21: Data check, In this data set, we first performed a missing value test and found that there were no missing values ​​in 768 samples and 9 columns of feature data, but duplicate values ​​existed. The data integrity was good and no special processing was required. Then we performed a check for abnormal data and false data. We drew and analyzed the box plots of each feature variable to more intuitively examine the data distribution and find outliers. However, considering the particularity of the data set, it is a medical epidemic data set, and some indicators of sick people show abnormalities, which is a normal phenomenon of illness. Therefore, in order to better preserve the effective information of the data, we did not process the outlier data (such as Figure 2 as shown).

[0023] Then, the data attributes of each column were statistically analyzed, and the mean, standard deviation, maximum, upper and lower quartiles of each data were calculated. The results are as follows: Figure 3As shown. Combined with the box plot, it is found that the minimum values ​​of Glucose, Pregnancies, BloodPressure, SkinThickness, Insulin, and BMI are all 0, which is obviously abnormal or false. A person's blood pressure, blood sugar level, insulin concentration, and body mass index cannot be 0, and the thickness of sebum of a normal person is generally not less than 10mm, which will not be 0. However, in the box plot, it is found that there are still a lot of data that are 0, so these data are wrong and false data, and need to be corrected.

[0024] S22: Data cleaning.

[0025] For BloodPressure and other five indicators, there are cases where the value is 0 abnormally. We found that there are still many cases. For example, SkinThickness has 227 samples of data that are 0, and the other four indicators also have different numbers of sample data that are 0. If they are simply eliminated, a large amount of effective information will be lost, which will cause inaccurate model prediction results later. Therefore, we consider using the filling method to replace the abnormal value, and adopt the method of filling the mean of each column attribute. First, all 0 value data are set to null values ​​with NaN, and then the mean of each column attribute is calculated respectively, and the null value is filled with the mean. The statistical characteristics of each data variable after data cleaning are as follows Figure 4 shown.

[0026] In this embodiment, the method of filtering data by the Filter-type feature selection algorithm based on XGBoost in step S3 is specifically to score each feature, assign different weights to each feature, and finally sort them according to the size of the weight, and then select features with higher scores according to the set threshold, filter out features with lower scores, reduce the number of features, prevent overfitting, and make the model more generalizable.

[0027] In this embodiment, this experiment uses the diabetes data set of pima locals. A total of 768 diabetes sample information is covered, including 8 clinical characteristic indicators and 1 classification label, all of which are real data cases. The experiment uses the Filter feature selection method based on XGBoost and the SVM model combination for predictive analysis. According to the feature importance score sorting, the feature variables with the lowest score are removed in turn, and SVM classification prediction training is performed. Finally, according to the accuracy, the factor variables that are highly correlated with diabetes can be selected for model training and clinical diagnosis.

[0028] The XGBoost-based Filter feature selection method studied in this application can obtain the importance score of each attribute feature and the features that are highly correlated with the diabetes classification model. Figure 5 As shown in the figure, the highest scores are insulin content, BMI index, and blood sugar concentration. This is consistent with the results of clinical practice. Blood sugar concentration and insulin content are both important characteristic indicators for detecting whether one has diabetes. BMI can show the overall fat level of the body. Excessive obesity is also prone to diabetes.

[0029] like Figure 6 As shown in the figure, the effect of model prediction is steadily improving as the number of features is reduced in turn according to the importance score. However, after the number of features is reduced to 4, the prediction accuracy begins to show a downward trend, and the information loss is serious. When the first 4 and 5 features are retained, the model accuracy reaches the highest. In order to reduce the time cost of training, only the first 4 features of feature importance are selected, namely, the four characteristic indicators of insulin concentration, BMI, blood sugar concentration and diabetes spectrum function, which are also consistent with clinical diagnostic indicators and have a high correlation with diabetes. Experiments have confirmed that the optimization algorithm is effective in removing redundant features, can efficiently select key attributes that have a significant impact on diabetes, and has certain scientificity and practicality.

[0030] The diabetes prediction classification models are analyzed and compared through different embodiments below. Example 1

[0031] The steps of the LR-based diabetes prediction classification model are as follows: (1) Model construction Step 1: Split the sample data into a training set and a test set in a ratio of 8:2. The training set is used for subsequent model training, while the test set is used to verify the performance and effect of the model; Step 2: Use the feature selection method proposed in this application to screen out feature variables that have a significant impact on diabetes prediction; Step 3: Model training, using F1 score as the evaluation indicator, and using the Logistic regression model to train the training set data; Step 4: Use the grid search method to iteratively learn each parameter through the GridSearchCV function, and finally get the optimal parameter combination; Step 5: Model evaluation, using multiple evaluation indicators such as F1 Score, accuracy, recall rate, precision rate, etc., to comprehensively judge the model prediction effect in the test set; (2) Model parameters The model used in this application is the LogisticRegression model in the machine learning library. The optimal parameters of the Logistic Regression model finally constructed are as follows: Figure 7 shown. Example 2

[0032] The specific steps of the diabetes prediction classification model based on RF are as follows: (1) Model construction First, randomly select a subset of samples from the preprocessed data set to train multiple decision trees. Among them, the n_estimators parameter is a key factor in determining the number of trees in the forest and is an important factor affecting the accuracy of the model. There are other parameters such as: max_depth represents the maximum depth of the tree, min_samples_leaf represents the minimum amount of data in the leaf node. If the number of samples at a node is lower than this set value, pruning is performed. max_features determines the maximum number of features considered when building the optimal decision tree model. Parameter name Parameter list Final value penalty [L1, L2] L1 logisticregression_C [1, 0.1, 0.01, 0.001, 0.0001] 1 17 (2) Model parameter selection grid search method is used to optimize hyperparameters, and F1-score value is used as the evaluation index. The optimal model parameters are finally obtained as follows: Figure 8 shown. Example 3

[0033] The specific steps of the diabetes prediction classification model based on SVM are as follows: (1) Model construction This experiment uses the Sklean library in Python to create a SVM classification model. The core code is as follows: Fig. 9 shown.

[0034] (2) Model parameters In the support vector machine model, the penalty coefficient C and the kernel function Kernel are two key parameters. The C value represents the model's tolerance to errors, and its size affects the degree of fit of the model. Too large or too small a value may lead to a decrease in generalization ability. The choice of kernel function determines the way data is mapped to the feature space. The linear kernel is used for linear SVM, the polynomial kernel handles nonlinear problems, and the Gaussian kernel maps data through a Gaussian function. Therefore, properly setting these two parameters is crucial to improving the classification performance of SVM. The optimal model parameters finally obtained in this application are as follows: Fig.10 As shown in the figure, the final C value is set to 10, indicating that it pays great attention to the misclassified samples and reduces the error. The polynomial kernel function can effectively process high-dimensional data. Example 4

[0035] The specific method of the diabetes prediction classification model based on LightGBM is as follows: (1) Model construction Step 1: Select the corresponding parameters and set the appropriate parameter range; Step 2: Model training, using F1 score as the evaluation indicator, import the training set into the LightGBM model for training; Step 3: Adopt the network search strategy, select the F1 score value as the evaluation indicator, and iteratively search the model parameters; Step 4: Select F1Score, accuracy, recall rate, precision and other evaluation indicators to comprehensively evaluate the model prediction effect in the test set; (2) Model construction Use the LGBMClassifier interface in the LightGBM library to build the model. Use the grid search method to focus on adjusting the two parameters that have a greater impact on the model: learning_rate (learning rate) and n_estimators (number of learners). Generally, lowering the learning rate can improve the model effect, but too low a learning rate can easily lead to overfitting and prolong the training time; increasing the number of learners can enhance performance, but too many may also cause overfitting. Therefore, when adjusting parameters, it is necessary to weigh the model performance and complexity and optimize the training efficiency. Other parameters such as num_leaves (number of leaf nodes) and max_depth (maximum depth) can control the model to avoid overfitting. Finally, the optimal combination parameters obtained by the grid search algorithm are as follows Fig.11 shown. Example 5

[0036] This embodiment adopts a two-layer Stacking architecture, selects the optimal RandomForest model, SVM model and LightGBM model after the above parameter optimization as the base learner, and the Logistic regression model as the meta-learner to output the final prediction result. The specific process is as follows: 1. Divide the data set into a ratio of 8:2; 2. Use 5-fold cross validation to train the random forest model, using four subsets for training and one subset for validation each time, repeated five times; 3. After each training session, the model will generate prediction results for the validation set based on the training data. We then average the prediction results from the five training sessions to form a new feature set that matches the number of samples in the original training set. 4. The above is the training process of a single base learner in the Stacking strategy. The SVM model and the LightGBM model repeat steps 2 and 3. A new data set is obtained; 5. Use the new data set as the input of the meta-learner Logistic regression model, train the model, and output the training results as the final results. Example 6

[0037] In this embodiment, step S4 of analyzing the diabetes prediction classification model based on automatic machine learning specifically includes the following steps: Y1: Model building. Install the Autogluon library in advance and build the automatic machine learning model by calling the Autogluon API. Next, we only need to import the original data set into Autogluon to start model training. Fig.12 As shown, Y2: pass the data set to the task.fit() function, Specifically, in the data preprocessing step, the label column is first checked to determine whether the task type is a classification or regression problem. Then, data processing is performed one by one, and missing value filling and other steps are automatically performed. In this embodiment, after the data training is imported, the size of the training set is automatically identified, the label feature column is specified as the "Outcome" column, and the task is identified as a binary classification task, and then data preprocessing is performed, such as Fig.13 As shown. Then the model fitting step is carried out. In order to increase the accuracy of the model, the fit() function also contains many parameters that can be adjusted. In this experimental study, the following options are mainly specified, such as Fig.14 shown.

[0038] Y3: View the fitting summary and training results by calling the leaderborad() function, as shown in Figure 15.

[0039] Y4: Select the best fitting model for prediction, such as Fig.16 shown.

[0040] The comparative analysis is as follows: In this example, multiple single models including Logistic model, RandomForest model, SVM model and LightGBM are established to train the diabetes data set multiple times. To optimize the prediction performance. In order to prevent overfitting, Stacking ensemble learning is adopted, in which the Logistic model is used as the meta-learner, and the RandomForest, SVM and LightGBM models are used as the base learners. Finally, it is compared with the automatic machine learning model built by the Algouon framework. The final experimental results are shown in the figure. Fig.17 shown.

[0041] like Fig.17 As shown in the figure, through the performance of each classifier on the above four evaluation indicators, in a single model, from the perspective of accuracy, RF, SVM and LightGBM are significantly better than LR, among which RF's accuracy is nearly 9% higher than LR. In terms of precision and recall, RF is also significantly better than the other three models, reaching 0.818. Comprehensively evaluate the performance of the model, in terms of F1-score value and AUC value, RF also has the best result, with an AUC value of 0.858. In summary, by comparing and analyzing the performance data of LR, RF, SVM and LightGBM on multiple evaluation indicators, we can find that RF performs best in overall performance, especially in precision and recall. Each evaluation indicator is also higher and more stable than the other three models, indicating that the RandomForest model can better extract the characteristics of the diabetes dataset and is more suitable for diabetes classification research.

[0042] Comparing the single model with Stacking ensemble learning, Stacking ensemble learning only performed 0.807 in Precision, which was slightly lower than RandomForest's 0.818 and SVM's 0.811, but it had nearly 2% improvement in Recall, F1-score and AUC, which was better than the performance of other models. Comprehensively judging, the prediction effect of the Stacking ensemble learning model constructed in this embodiment is better, and the model has stronger robustness and generalization ability. This shows that after model fusion, the advantages of each base learning can be fully utilized, and the features can be fully extracted, so that the performance of the final model is improved and the generalization ability is enhanced.

[0043] A comparative analysis of all the models used in this embodiment shows that the best performance in the four evaluation indicators of Precision, Recall, F1-score, and AUC is the automatic machine learning (AutoML) model. The scores reached 0.865, 0.833, 0.849, and 0.895 respectively. In terms of accuracy, it has increased by 11% compared to LR. There is also a certain improvement compared to single models such as RF. Compared with the Stacking integrated learning model, Recall has increased by nearly 3%, which shows that AutoML has a strong ability in identifying true cases, can effectively identify sick patients, and reduce the number of missed reports. The F1-score value has increased by 2.8%, and the AUC value has increased by 2%. There are different degrees of improvement. It shows that the model constructed by automatic machine learning has greater feasibility in diabetes classification research, and the accuracy is better than that of traditional machine learning. It has significant advantages in dealing with diabetes classification prediction problems, can quickly classify diabetes, and assist doctors in making medical decisions.

[0044] The diabetes prediction analysis method based on automatic machine learning provided by the present invention is more objective and reliable, can effectively improve the prediction accuracy and prediction efficiency, and improve the quality of medical services. The specific advantages of this application are as follows: (1) This application adopts the XGBoost-based Filter feature selection method. This algorithm can effectively remove the influence of redundant features, and by combining the feature importance score and the SVM classification model strategy, it greatly eliminates the situation of unreasonable thresholds set by humans, making feature selection more reasonable and scientific, reducing the time cost of repeatedly debugging appropriate thresholds, and can quickly screen out features that are irrelevant to experimental variables and unimportant, improve model prediction accuracy, and reduce running memory and running time. The diabetes data set shows that the feature selection algorithm studied in this application, combined with the professional knowledge of medical personnel, can efficiently select variables related to diabetes classification prediction.

[0045] (2) Apply the Autogluon framework of automatic machine learning to the classification and prediction of diabetes, and compare it with traditional machine learning methods. By establishing Logistic regression model, RandomForest model, SVM model, LightGBM model and the currently popular Stacking ensemble learning model, a series of parameter tuning operations are performed to classify diabetes, and automatic machine learning technology is also used to predict and classify diabetes data sets. The experimental results show that the Precision, Recall, F1-score, and AUC of the automatic machine learning framework method are all improved compared with traditional machine learning methods. It can also reduce the dependence on professional knowledge for model establishment, reduce the impact of human intervention, make the model more objective and reliable, and improve the prediction accuracy and efficiency. At the same time, it greatly reduces the application threshold of machine learning, allowing more non-professionals to use machine learning technology for research, and better support clinicians' diagnosis and treatment, which helps to detect and intervene in diabetes at an early stage, reduce patients' health risks, and improve the quality and efficiency of medical services.

[0046] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A diabetes prediction analysis method based on automatic machine learning, characterized in that: The steps include: S1: Data information collection, S2: Data preprocessing, S3: Filter data using the XGBoost-based Filter feature selection algorithm. S4: Analysis of diabetes prediction classification model based on automatic machine learning.

2. The diabetes prediction analysis method based on automatic machine learning according to claim 1, characterized in that: The data preprocessing in step S2 includes the following steps: S21: Data check, S22: Data cleaning.

3. The diabetes prediction analysis method and application based on automatic machine learning according to claim 2, characterized in that: The method of filtering data by the Filter feature selection algorithm based on XGBoost in step S3 is specifically to score each feature, assign different weights to each feature, and finally sort them according to the size of the weight. Then, according to the set threshold, features with higher scores are selected, and features with lower scores are filtered out, thereby reducing the number of features, preventing overfitting, and making the model more generalizable.

4. The diabetes prediction analysis method based on automatic machine learning according to claim 1, characterized in that: Step S4 specifically includes the following steps in analyzing the diabetes prediction classification model based on automatic machine learning: Y1: Model building, Y2: pass the data set to the task.fit() function, Y3: View the fitting summary and training results by calling the leaderborad() function. Y4: Select the best fitting model for prediction.

5. The diabetes prediction analysis method based on automatic machine learning according to claim 4, characterized in that: Step Y2 passes the data set to the task.fit() function, which only needs to be called once to automatically perform data preprocessing and model fitting.

6. The diabetes prediction analysis method based on automatic machine learning according to claim 1, characterized in that: In step S2, the data preprocessing step first checks the label column and determines whether the task type is classification or regression. Then, the data is processed one by one and missing values ​​are filled automatically.

7. The diabetes prediction and analysis method based on automatic machine learning according to claim 2, characterized in that: The data check in step S21 is as follows: X1: First, the missing value test is performed on it. X2: Check for abnormal data and false data. X3: Statistics were performed on the data attributes of each column, and the mean, standard deviation, maximum value, upper and lower quartiles of each data item were calculated.

8. The diabetes prediction and analysis method based on automatic machine learning according to claim 2, characterized in that: The specific method of data cleaning in step S22 is to adopt the mean filling processing of each column attribute, firstly set all the 0 value data to null value processing with NaN, then calculate the mean of each column attribute respectively, and perform mean filling processing on the null value.

Citation Information

Cited By

  • Method and system for optimizing diabetic complication prediction model

    CN121768690A