Cardiovascular disease is a typical chronic disease. The incidence of cardiovascular disease in the elderly population has grown to exceed 50%. The further aging of the current population has brought additional pressure on public health services. Therefore, to reduce the service pressure of medical institutions, accurate prediction of cardiovascular disease risk has become an essential task in intelligent elderly care. In order to achieve accurate prediction of cardiovascular disease risk, we propose a cardiovascular disease risk prediction model Acdim (a cardiovascular disease risk prediction model) based on ResNet (Residual Network), zebra optimization algorithm (ZOA), TabNet (Attentive Interpretable Tabular Learning), and AdaBoost (Adaptive Boosting) algorithms. In training the Acdim model, we used the dat set of the World Health Organization (WHO) Behavioral Risk Factor Monitoring System records. In the experiment, the Acdim model achieved an accuracy of 96%, a precision of 94%, a recall of 93%, a specificity of 95%, an F1 score of 91%, and an AUC of 95%. The experimental results show that the proposed Acdim model can enable elderly care institutions to accurately predict the risk of cardiovascular disease in the absence of doctors.