Pattern Recognition for Reliability Assessment of Water Distribution Networks