Machine learning has shown huge potential in many fields including remote sensing. We optimise deep-learning frameworks together with object-based image analysis (OBIA) for image classification and object detection. Moreover, we use machine learning for model optimisation. We focus besides Random Forest on the classical U-Net which has a CNN architecture for semantic segregation and newer models such as the transformer model Swin model.