Clustering-based domain-incremental learning