In this paper, the possibility of installing small hydraulic turbines in existing water-supply networks, which exploit the daily pressure fluctuations in order to produce energy, is examined. For this purpose, a network of five pressure sensors is developed, which is connected to an artificial intelligence system in order to predict the daily pressure values of all nodes of the network. The sensors are placed at the critical nodes of the network. The locations of the critical nodes are implemented by applying graph theory algorithms to the water distribution network. EPANET software is used to generate the artificial intelligence training data with an appropriate external call from a Python script. Then, an improvement model is implemented using the Harmony Search Algorithm in order to calculate the daily pressure program, which can be allocated to the turbines and, consequently, the maximum energy production. The proposed methodology is applied to a benchmark water supply network and the results are presented.