Hydroinformatics Blog - A Case for Open Source-based Digital Water Systems

Posted May 10, 2023


Hydroinformatics Blog Post

Organized by the CUAHSI Informatics Standing Committee. Contributions are welcome, please contact Veronica Sosa Gonzalez at email hidden; JavaScript is required.

By: Abhiram Mullapudi, Ph.D.

Climate change-driven extreme weather events, aging infrastructure, and rapid urbanization are pushing our urban water infrastructure to the brink of failure [1]. Though these infrastructure systems can be redesigned and rebuilt to tackle environmental challenges, many communities face budgetary constraints that prohibit them from doing so. The emergence of affordable computing and sensing technology has narrowed the distinction between the digital and physical worlds and ushered in a new era of urban water systems. By retrofitting infrastructure with wireless sensors and digitally actuated gates, pumps, valves, etc., the performance of the urban water systems can be monitored and controlled in an optimal fashion in near real-time [1]. Cities and utilities worldwide are increasingly relying on this new generation of cyber-physical systems to “squeeze” more performance out of the physical infrastructure and extend the life of existing urban water systems beyond their design capacity [2], [3].

Despite the popularity of digital water systems (often also described as smart water systems) in the research domain, their adoption in the industry has been limited [4]. Research focused on using machine learning, wireless sensor networks, and web-based solutions to solve urban water challenges has grown exponentially in the last decade [5], [6]. Yet, a fundamental socio-technical knowledge gap exists about how these technologies can be adopted for widespread real-world applications [7]. In this post, I make the case that hydroinformatics research based on an open-source philosophy can help us address some of these knowledge gaps. Specifically, how we can build community trust in these new technologies and ensure their accessibility and equitability to facilitate wider adoption.

Building Community Trust in Digital Water Systems

Cities and utilities are answerable to the regulatory authorities and the communities they serve. They often face a choice between a validated traditional solution or a promising novel but a nascent solution. The lack of approaches to quantify the risks and opportunity costs of these choices creates a barrier for communities to evaluate and adopt digital water solutions. Similarly, a significant gap exists between state-of-the-art research and practice in the urban water industry. Digital water technologies in the research domain are generally evaluated on specific scenarios in simulated settings. A community standard does not yet exist to assess the generalizability and applicability of these technologies in the real world - this further exacerbates the gap between academia and industry [4].

The machine learning community has developed benchmarking datasets and metrics for quantifying the efficacy of data science methodologies [8], [9]. While these benchmarks were initially successful in quantifying efficiency, they failed to evaluate the generalizability of the methods. Furthermore, these benchmark datasets inadvertently created a competition where algorithms were “tuned” to beat the metrics instead of generalizability and adaptability to real-world problems. As Goodhart’s law states, when a measure becomes a target, it ceases to be a useful measure [10]. Thus, instead of creating benchmarking datasets for evaluating digital water solutions, there is a need for creating frameworks and methodologies that account for the uniqueness of each urban water network and empowers the stakeholders to evaluate these solutions holistically.

We created pystorms to address the lack of an evaluation framework for stormwater control algorithms. pystorms is an open-source Python-based framework that provides an easy-to-use Python interface and a collection of real-world inspired stormwater control scenarios to evaluate control algorithms [4]. We aspire that pystorms will continue growing as a community resource for developing stormwater control algorithms and contributing additional challenging real-world inspired stormwater control benchmark scenarios. Similar efforts are being spearheaded in wastewater [11] and drinking water communities[12]. However, even though these frameworks provide a common platform for the industry and academia to evaluate the generalizability of digital water solutions, these independent efforts fall short of helping communities understand and quantify the viability and risks of adopting these technologies.

Akin to the water industry, the automotive industry is undergoing a digital transformation with the advent of autonomous driving. The National Highway Traffic Safety Administration (NHTSA) has established standards on levels of automation [13]. These standards guide the research, regulate industry products, and also help consumers better understand the risks associated with these products. Similarly, in the stormwater industry, the Chartered Institution of Water and Environmental Management (CIWEM) has developed guidelines for engineers to evaluate the quality of the stormwater model calibration [14]. These guidelines are network agnostic and provide a methodology and a set of metrics for understanding the strengths and limitations of the stormwater models. These guidelines and standards aid in building community trust in technologies. Drawing on these ideas, combining the evaluation frameworks with a set of standards can help stakeholders better understand the benefits and risks associated with digital water technologies and facilitate their adoption. Furthermore, developing these standards in an open environment with urban water stakeholder voices is vital to ensure that these standards represent the community’s concerns. Though efforts are being led in professional organizations toward defining digital water technologies, there is a need for community-led efforts like the Linux Foundation [15] to develop and maintain standards and evaluation guidelines.

Building Accessible and Equitable Digital Water Systems

Digital water technologies are arguably more useful to communities that cannot afford large-scale infrastructure projects. But the existence of these technologies does not guarantee their accessibility. Digital water technology adoption to date has been led by cities that have the resources to partner with industry leaders to co-design and implement these technologies. Unfortunately, most of these solutions are built on custom and often proprietary technologies. This creates a premium on the time and resources required to implement digital water solutions. Thus, making these solutions inaccessible to the communities that need them the most.

Open-source software is attributed as one of the reasons for the technological boom. This is because open-source software has reduced the entry barrier, made technology accessible, and enabled startups to create products with minimal overhead that reach a broader audience. The widespread use of technology has made open-source software an indispensable part of digital infrastructure, almost akin to roads and bridges [16]. As a result, several non-profit organizations funded by technology firms and government organizations have been founded to maintain, develop, and ensure the accessibility of these open-source community tools [15], [17]. Similarly, in the urban water domain, open-source tools and frameworks like pyswmm [18], OWA-EPANET [19], and open-storm.org [20] have enabled startups to create digital water solutions that are used worldwide. In addition, in the past decade, there has also been a significant push in academia to develop open-source tools. While these open-source technologies have successfully aided the development of digital water solutions, considerable challenges must be addressed before these solutions become accessible to the communities that need them. Based on the success of community-led open-source tools in the web technology domain, I believe that creating a platform to facilitate the development and maintenance of open-source community tools can help us reduce our reliance on custom and proprietary software and make digital water technologies more accessible.

There is active research in the artificial intelligence community into algorithm bias and the equitability of machine learning-driven technologies[21]. Such machine learning-based black box methodologies also underpin most emerging digital water technologies. Hence, there is a need to understand the biases inherent in these methodologies and quantify the associated risk in the context of urban water systems. For instance, a machine learning-based stormwater control system could operate a particular storage asset close to its upper threshold to maximize the overall network's performance. However, this decision increases the flooding risk to the community in the storage asset's vicinity. If such risks are not understood and tackled, they could lead to catastrophic issues in the community. Hence, there is a need to evaluate the performance of these technologies from a social-equity perspective [22], [23]. Though many fundamental socio-technical questions must be answered before addressing equity challenges in water systems, open-source software can help us address some of these challenges. Open technologies enable stakeholders to evaluate the underlying components, turning these black-box approaches into glass-box methodologies. Transparency into the methods can help us better understand the biases inherent in these algorithms and design socio-technical heuristics that can guide the development of equitable digital water systems.

Acknowledgments:

The author would like to acknowledge the support of NSF (grant number # 1737432) and GLPF (grant number # 1035) for funding the development of pystorms and open-storm.org.

Disclaimer:

The views expressed in this post are those of the author and do not represent the employer’s views.

About the author:

Abhiram Mullapudi works in the Hydroinformactics team at Xylem.

Website: https://randomstorms.net

References:

[1] “Smarter Stormwater Systems | Environmental Science & Technology.” https://pubs.acs.org/doi/full/10.1021/acs.est.5b05870 (accessed Apr. 06, 2023).

[2] “South Bend Reduces Combined Sewer Overflow by 80% and Saves $400 Million | Xylem US.” https://www.xylem.com/en-us/support/case-studies-white-papers/south-bend-indiana-reduces-combined-sewer-overflow-80-percent-saves-400-million/ (accessed Apr. 06, 2023).

[3] “Grand Rapids, Michigan saves $1 Billion solving infiltration and inflow problem | Xylem US.” https://www.xylem.com/en-us/support/case-studies-white-papers/grand-rapids-michigan-saves-one-billion-dollars-intelligent-urban-watershed-technology-solves-infiltration-and-inflow-problem/ (accessed Apr. 06, 2023).

[4] S. P. Rimer et al., “pystorms: A simulation sandbox for the development and evaluation of stormwater control algorithms,” Environ. Model. Softw., vol. 162, p. 105635, Apr. 2023, doi: 10.1016/j.envsoft.2023.105635.

[5] G. Fu, Y. Jin, S. Sun, Z. Yuan, and D. Butler, “The role of deep learning in urban water management: A critical review,” Water Res., vol. 223, p. 118973, Sep. 2022, doi: 10.1016/j.watres.2022.118973.

[6] M. Sit, B. Z. Demiray, Z. Xiang, G. J. Ewing, Y. Sermet, and I. Demir, “A comprehensive review of deep learning applications in hydrology and water resources,” Water Sci. Technol., vol. 82, no. 12, pp. 2635–2670, Aug. 2020, doi: 10.2166/wst.2020.369.

[7] A. Mullapudi, “Statistical Learning Approaches For The Control Of Stormwater Systems,” Thesis, 2020. Accessed: Apr. 06, 2023. [Online]. Available: http://deepblue.lib.umich.edu/handle/2027.42/163018

[8] “ImageNet.” https://www.image-net.org/ (accessed Apr. 11, 2023).

[9] “CIFAR-10 and CIFAR-100 datasets.” https://www.cs.toronto.edu/~kriz/cifar.html (accessed Apr. 11, 2023).

[10] “Goodhart’s law,” Wikipedia. Apr. 06, 2023. Accessed: Apr. 06, 2023. [Online]. Available: https://en.wikipedia.org/w/index.php?title=Goodhart%27s_law&oldid=1148500106

[11] R. Saagi, X. Flores-Alsina, S. Kroll, K. V. Gernaey, and U. Jeppsson, “A model library for simulation and benchmarking of integrated urban wastewater systems,” Environ. Model. Softw., vol. 93, pp. 282–295, Jul. 2017, doi: 10.1016/j.envsoft.2017.03.026.

[12] E. Salomons, O. Skulovich, and A. Ostfeld, “Battle of Water Networks DMAs: Multistage Design Approach,” J. Water Resour. Plan. Manag., vol. 143, no. 10, p. 04017059, Oct. 2017, doi: 10.1061/(ASCE)WR.1943-5452.0000830.

[13] “Automated Vehicles for Safety | NHTSA.” https://www.nhtsa.gov/technology-innovation/automated-vehicles-safety (accessed Apr. 06, 2023).

[14] “CIWEM Urban Drainage Group,” CIWEM. https://www.ciwem.org/special-interest-groups/urban-drainage-group (accessed Apr. 06, 2023).

[15] “Linux Foundation - Decentralized innovation, built with trust.” https://www.linuxfoundation.org (accessed Apr. 06, 2023).

[16] N. Eghbal, Working in Public: The Making and Maintenance of Open Source Software. San Francisco: Stripe Press, 2020.

[17] “NumFOCUS: A Nonprofit Supporting Open Code for Better Science,” NumFOCUS. https://numfocus.org/ (accessed Apr. 06, 2023).

[18] B. E. McDonnell, K. Ratliff, M. E. Tryby, J. J. X. Wu, and A. Mullapudi, “PySWMM: The Python Interface to Stormwater Management Model (SWMM),” J. Open Source Softw., vol. 5, no. 52, p. 2292, Aug. 2020, doi: 10.21105/joss.02292.

[19] “OWA-EPANET.” Open Water Analytics, Apr. 04, 2023. Accessed: Apr. 06, 2023. [Online]. Available: https://github.com/OpenWaterAnalytics/EPANET

[20] M. Bartos, B. Wong, and B. Kerkez, “Open storm: a complete framework for sensing and control of urban watersheds,” Environ. Sci. Water Res. Technol., vol. 4, no. 3, pp. 346–358, Mar. 2018, doi: 10.1039/C7EW00374A.

[21] A. D. Selbst, D. Boyd, S. A. Friedler, S. Venkatasubramanian, and J. Vertesi, “Fairness and Abstraction in Sociotechnical Systems,” in Proceedings of the Conference on Fairness, Accountability, and Transparency, in FAT* ’19. New York, NY, USA: Association for Computing Machinery, Jan. 2019, pp. 59–68. doi: 10.1145/3287560.3287598.

[22] S. Fletcher et al., “Equity in Water Resources Planning: A Path Forward for Decision Support Modelers,” J. Water Resour. Plan. Manag., vol. 148, no. 7, p. 02522005, Jul. 2022, doi: 10.1061/(ASCE)WR.1943-5452.0001573.

[23] G. Ewing and I. Demir, “An ethical decision-making framework with serious gaming: a smart water case study on flooding,” J. Hydroinformatics, vol. 23, no. 3, pp. 466–482, May 2021, doi: 10.2166/hydro.2021.097.