IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0341236.html

Construction of a depression risk prediction model for hepatitis B patients based on machine learning strategy

Author

Listed:
  • Siyi Wang
  • Haoqi Liu
  • Chen Liang
  • Chui Kong
  • Jingchun Li
  • Min Wang
  • Kaiqiang Dong
  • Qianqi Wang
  • Dong Zhang
  • Rongjuan Guo

Abstract

Background: Hepatitis B (HBV) is a chronic viral infection that can lead to cirrhosis, liver failure, and liver cancer, and has a profound impact on the patient’s mental health. However, current depression screening mainly relies on self-filled scales and clinical experience, lacking objective and efficient prediction tools. This study aims to construct a risk prediction model for depression in hepatitis B patients based on machine learning, and explore the key features that affect the occurrence of depression, so as to optimize mental health management strategies. Methods: This study used the NHANES database to collect demographic, dietary, physical examination, laboratory test and questionnaire data. The data were standardized and SMOTE oversampling was used to solve the problem of class imbalance. Random Forest (RF) was used for feature screening to identify the top 20 most important predictive features, and five machine learning models (Gradient Boosting, Logistic Regression, AdaBoost, MLPClassifier, LDA) were used for prediction. The model performance was evaluated by AUC (area under the curve), accuracy, recall, precision and F1-score, and ROC curves, calibration curves, and decision curve analysis (DCA) were drawn to evaluate the clinical applicability of the model. Results: All five machine learning models performed well in the task of predicting the risk of depression in hepatitis B patients, among which MLPClassifier (multi-layer perceptron) performed best, with an AUC of 0.935, a recall of 0.980, and an F1-score of 0.917, which was better than other models. In addition, feature analysis results showed that liver function damage (serum total bilirubin, alkaline phosphatase), electrolyte imbalance (serum potassium ions), chronic inflammation (red blood cell distribution width, lymphocyte count), and socioeconomic factors (poverty-income ratio, race) were important factors affecting the risk of depression in hepatitis B patients. Conclusion: This study constructed an efficient and objective machine learning model that can be used to predict the risk of depression in patients with hepatitis B, providing a new tool for accurate screening and individualized management. The study revealed the potential mechanisms of physiological, biochemical and socioeconomic factors in the occurrence of depression in patients with hepatitis B, and provided a reference for future mental health intervention strategies.

Suggested Citation

  • Siyi Wang & Haoqi Liu & Chen Liang & Chui Kong & Jingchun Li & Min Wang & Kaiqiang Dong & Qianqi Wang & Dong Zhang & Rongjuan Guo, 2026. "Construction of a depression risk prediction model for hepatitis B patients based on machine learning strategy," PLOS ONE, Public Library of Science, vol. 21(2), pages 1-13, February.
  • Handle: RePEc:plo:pone00:0341236
    DOI: 10.1371/journal.pone.0341236
    as

    Download full text from publisher

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

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

    File URL: https://libkey.io/10.1371/journal.pone.0341236?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
    ---><---

    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:0341236. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.