Text this: Particle swarm optimization methods for pattern recognition and image processing