Text this: Application of PSO-integrated K-means algorithm in resident digital portrait classification