Network-based prediction algorithm