Midjourney was trained using advanced machine learning techniques, including deep learning algorithms. The training process involved feeding the system with a vast amount of travel data, such as user preferences, past itineraries, and feedback, to enable it to learn and improve its recommendations over time.