Related Experiment Video
Updated: Feb 6, 2026

Constructing and Visualizing Models using Mime-based Machine-learning Framework
Published on: July 22, 2025
Construction of a depression risk prediction model for hepatitis B patients based on machine learning strategy
Siyi Wang1, Haoqi Liu1, Chen Liang2
1The Second Clinical Medical College, Beijing University of Traditional Chinese Medicine, Beijing, China.
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.
More Related Videos
07:13Comparison of Predictive Performance of Three Lymph Node Staging Systems in Colorectal Signet Ring Cell Carcinoma Based on Machine Learning Model
Published on: April 18, 2025
11:38Author Spotlight: Enhancing PSC-to-Functional Cell Differentiation Using ML Models Based on Live-Cell Bright-Field Imaging
Published on: October 4, 2024
Related Concept Videos
Long-term Depression
Long-term Depression
Calcium Ion Concentration Mechanism
If over...
Simplified Synchronous Machine Model
In this model, each generator is connected to a...
Wind Turbine Machine Models
Induction machines interact through the rotating magnetic field generated by the stator and the rotor. The key parameter is slip, which is the difference between synchronous speed and rotor speed relative to synchronous speed. Slip is...
Freezing Point Depression and Boiling Point Elevation
The boiling point of a liquid is the temperature at which its vapor pressure is equal to ambient atmospheric pressure. Since the vapor pressure of a solution is lowered due to the presence of nonvolatile solutes, it stands to reason that the solution’s boiling point will subsequently be increased. Vapor pressure increases with temperature, and so a solution will require a higher temperature than will pure solvent to achieve any given vapor pressure, including one...
Depressants
Alcohol is a common depressant that can induce a sense of relaxation and reduced inhibition at low doses. Contrary to its occasional...