Machine Learning-based Classification, Detection, and Segmentation of Medical Images