Edge learning for shape sensitivity