AI based prediction for heart disease: a comparative analysis and an improved machine learning approach