Machine learning approach detects brain tumor boundaries