Developing pre-surgical planning software with artificial intelligence