IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0311222.html
   My bibliography  Save this article

Diabetes prediction model based on GA-XGBoost and stacking ensemble algorithm

Author

Listed:
  • Wenguang Li
  • Yan Peng
  • Ke Peng

Abstract

Diabetes, as an incurable lifelong chronic disease, has profound and far-reaching effects on patients. Given this, early intervention is particularly crucial, as it can not only significantly improve the prognosis of patients but also provide valuable reference information for clinical treatment. This study selected the BRFSS (Behavioral Risk Factor Surveillance System) dataset, which is publicly available on the Kaggle platform, as the research object, aiming to provide a scientific basis for the early diagnosis and treatment of diabetes through advanced machine learning techniques. Firstly, the dataset was balanced using various sampling methods; secondly, a Stacking model based on GA-XGBoost (XGBoost model optimized by genetic algorithm) was constructed for the risk prediction of diabetes; finally, the interpretability of the model was deeply analyzed using Shapley values. The results show: (1) Random oversampling, ADASYN, SMOTE, and SMOTEENN were used for data balance processing, among which SMOTEENN showed better efficiency and effect in dealing with data imbalance. (2) The GA-XGBoost model optimized the hyperparameters of the XGBoost model through a genetic algorithm to improve the model’s predictive accuracy. Combined with the better-performing LightGBM model and random forest model, a two-layer Stacking model was constructed. This model not only outperforms single machine learning models in predictive effect but also provides a new idea and method in the field of model integration. (3) Shapley value analysis identified features that have a significant impact on the prediction of diabetes, such as age and body mass index. This analysis not only enhances the transparency of the model but also provides more precise treatment decision support for doctors and patients. In summary, this study has not only improved the accuracy of predicting the risk of diabetes by adopting advanced machine learning techniques and model integration strategies but also provided a powerful tool for the early diagnosis and personalized treatment of diabetes.

Suggested Citation

  • Wenguang Li & Yan Peng & Ke Peng, 2024. "Diabetes prediction model based on GA-XGBoost and stacking ensemble algorithm," PLOS ONE, Public Library of Science, vol. 19(9), pages 1-29, September.
  • Handle: RePEc:plo:pone00:0311222
    DOI: 10.1371/journal.pone.0311222
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0311222
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0311222&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0311222?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. HuaZhong Yang & Zhongju Chen & Jinfan Huang & Suruo Li, 2024. "AWD-stacking: An enhanced ensemble learning model for predicting glucose levels," PLOS ONE, Public Library of Science, vol. 19(2), pages 1-36, February.
    2. Bernice Man & Alan Schwartz & Oksana Pugach & Yinglin Xia & Ben Gerber, 2021. "A clinical diabetes risk prediction model for prediabetic women with prior gestational diabetes," PLOS ONE, Public Library of Science, vol. 16(6), pages 1-14, June.
    3. Praveen Talari & Bharathiraja N & Gaganpreet Kaur & Hani Alshahrani & Mana Saleh Al Reshan & Adel Sulaiman & Asadullah Shaikh, 2024. "Hybrid feature selection and classification technique for early prediction and severity of diabetes type 2," PLOS ONE, Public Library of Science, vol. 19(1), pages 1-17, January.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.

      More about this item

      Statistics

      Access and download statistics

      Corrections

      All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0311222. See general information about how to correct material in RePEc.

      If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

      If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

      If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

      For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

      Please note that corrections may take a couple of weeks to filter through the various RePEc services.

      IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.