This study introduced the construction of individualized risk assessment model based on Bayesian networks, comparing with traditional regression-based logistic models using practical examples. It evaluates the model's performance and demonstrates its implementation in the R software, serving as a valuable reference for researchers seeking to understand and utilize Bayesian network models.