Could ChatGPT Automate Water Network Clustering? A Performance Assessment Across Algorithms
Water distribution networks (WDNs) are characterized by complex challenges in management and optimization, especially in ensuring efficiency, reducing losses, and maintaining infrastructure performances. The recent advancements in Artificial Intelligence (AI) techniques based on Large Language Models, particularly ChatGPT 4.0 (a chatbot based on a generative pre-trained model), offer potential solutions to streamline these processes. This study investigates the ability of ChatGPT to perform the clustering phase of WDN partitioning, a critical step for dividing large networks into manageable clusters. Using a real Italian network as a case study, ChatGPT was prompted to apply several clustering algorithms, including k-means, spectral, and hierarchical clustering. The results show that ChatGPT uniquely adds value by automating the entire workflow of WDN clustering—from reading input files and running algorithms to calculating performance indices and generating reports. This makes advanced water network partitioning accessible to users without programming or hydraulic modeling expertise. The study highlights ChatGPT’s role as a complementary tool: it accelerates repetitive tasks, supports decision-making with interpretable outputs, and lowers the entry barrier for utilities and practitioners. These findings demonstrate the practical potential of integrating large language models into water management, where they can democratize specialized methodologies and facilitate wider adoption of WDN managing strategies.
Authors
- Enrico Creaco (ORCID: https://orcid.org/0000-0003-4422-2417)
- Davide Marocco (ORCID: https://orcid.org/0000-0001-5185-1313)
- Giovanni Francesco Santonastaso (ORCID: https://orcid.org/0000-0002-0738-337X)
- Michele Iervolino (ORCID: https://orcid.org/0000-0001-8344-8334)
- Armando Di Nardo (ORCID: https://orcid.org/0000-0002-8462-2258)
- Ludovica Palma (ORCID: https://orcid.org/0009-0003-8759-6782)
Institutions
- University of Campania "Luigi Vanvitelli" (IT)
- University of Pavia (IT)
- Polytechnique Montréal (CA)
- University of Naples Federico II (IT)
Publication Details
- Journal
- Water
- Published
- 2025-10-17
- DOI
- https://doi.org/10.3390/w17202995
- Citations
- 1
- Primary Topic
- Data Stream Mining Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.48