Diabetes is one of the most deadly diseases on the planet. It is also a cause of a variety of illnesses, such as coronary artery disease, blindness, and urinary organ disease. In this situation, the patient must visit a medical center to obtain their results following consultation. Finding the right combination of characteristics and machine learning techniques for classification is also very critical. However, with the advancement of machine learning techniques, we now have the potential to find a solution to the current problem. The healthcare recommendation system (HRS) may be designed to predict health by evaluating patient lifestyle, physical health, mental health aspects using machine learning. For example, training the model using people's age and diabetes helps to predict new patients without a specific diagnostic for diabetes. The proposed deep learning model with convolutional neural network (D-CNN) achieves an overall accuracy of 96.25%. D-CNN is found to be more successful for diabetes prediction than other machine learning (ML) approaches in the experimental analysis.