An artificial intelligence approach for managing water demand in water supply systems