DeepSwarm: towards swarm deep learning with bi-directional optimization of data acquisition and processing