Distributed Collaborative Inference System in Next-Generation Networks and Communication