Are there clouds in the images? If so, how can we process them?
Hello. If we present all the data in tabular form (in rows are pixels, in columns are channels), then the k-means algorithm works quite well. You can use the F-mask for images of Sentinel-2, or use the library of Sentinel2hub. These algorithms create masks with which you can cut out unnecessary areas.