For a project I'm doing, I want to cluster parcels together based on their specific land use category. As an example, a small part of the data looks like this.
Spatial Data with different categories of land use highlighted in different colors
There are many more categories than what you see in this picture. I want to know if their is some kind of smart method to "cluster" these parcels based on the land use attribute. You can see from this picture that there is some spatial dependency and I want to create a new column which contains the number of the cluster a parcel belongs to.
I could probably one-hot-encode the category, but that would create a lot of columns and could therefore be suboptimal. Also I'm thinking of writing some simple code based on the 'DBSCAN algorithm' that checks for similar neighbors.
Do you have any suggestions for existing methods using QGIS to evaluate this problem?