Effective Detection of Target Region Using a Machine Learning Algorithm