In this paper, we represent a method for machine learning to predict the defect in foundry operation. Foundry has become a driving tool to produce the part to another industry like automobile, marine, and weapon. These foundry processes mainly have two critical problems to decrease the quality assurance. Now, we have to predict the defect to increase the quality of foundry operation. The foundry process’s failure is associated with micro shrinkage and ultimate tensile strength. We process by utilizing a machine learning classifier to predict the micro shrinkage and maximum tensile strength and describe the process, learning process, and evaluate the predataset from the foundry process to compare the accuracy and stability.