Submitted:
18 August 2025
Posted:
19 August 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction
2. Materials and Methods
2.1. Study Context and Area
2.2. Phyiscal Model and Water Allocation Model
2.3. Machine Learning Guided Optimization Framework
- A set of model runs (scenarios) is constructed to form the initial compendium of scenarios for machine learning.
- a.
- The compendium contains numerical description of project parameters (physical model inputs) and evaluation criteria (physical model outputs reflecting project goals), which describe the inputs and results of each scenario.
- b.
- The initial compendium contained 5 initial scenarios created manually by the groundwater modeling team
- 2.
- A machine learning algorithm is trained on the compendium, to predict project parameters that would best meet evaluation criteria.
- a.
- Many different machine learning algorithms with different architecture were run simultaneously, with the aim of more quickly exploring the optimization parameter space and increasing the likelihood of progress towards optimization.
- b.
- Given a set of user-defined desired evaluation criteria, the machine learning algorithm suggests project parameters that are expected to meet evaluation criteria goals.
- c.
- An automated post processing script takes the MLGO suggested project parameters, and transforms them into physical model input files.
- d.
- After assembling the suggested model simulation, MLGO runs the groundwater model scenario.
- 3.
- Results from the groundwater model are post processed with respect to evaluation criteria.
- a.
- The project parameters and resulting evaluation criteria (groundwater model input and output) are then added to the compendium.
- b.
- The process then returns to step #2 and trains the machine learning algorithms on a compendium now inclusive of the new scenarios
2.4. Evaluation Criteria
2.5. Project Parameters
2.6. Machine Learning Algorithms
3. Results
3.1. MLGO Learning Over Time
3.2. Analysis of Machine Learning Algirithms
3.3. Operational Complexity and Challenges
3.4. Principal Component Analysis

| Principal Component | Description | Relevance to Recommendation/Alternative |
|---|---|---|
| 1 | High volumes of District to City transfers originating from pumping near existing PWS injection wells are correlated with a lower supply gap | All 4 Alternatives prioritize utilizing District wells near existing PWS injection wells to provide water to the City during dry periods |
| 2 | Lower levels of injection at existing PWS injection wells are correlated with sustainability problems. | 3 of 4 Alternatives do not reduce injection volumes at existing PWS injection wells. Alternative 4 reduces injection at existing wells by only 6%. |
| 3 | New PWS injection wells and ASR wells which are screened solely in one aquifer are correlated with feasibility issues | Alternatives 2-4, which add ASR and/or PWS infrastructure, screen all new wells across 2 aquifers. |
| 4 | Installation of a new ASR well, PWS injection well, or PWS extraction well in a given aquifer screening is correlated with additional infrastructure expansion in that same aquifer screening | Alternatives 3-4 add pairs of ASR and PWS injection wells screened in the same aquifer. |
| 5 | Increased ASR and PWS injection and increased ASR extraction is corelated with lower transfer volumes, sustainability, increased feasibility issues at new sites, and decreased feasibility issues at existing sites | 3 of 4 Alternatives include some infrastructure expansion which reduces the need for District to City District transfers |
4. Discussion
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ASR | Aquifer Storage and Recovery |
| PWS | Pure Water Soquel |
| MLGO | Machine Learning Guided Optimization |
| GSFLOW | Groundwater Surface Water Flow Model |
| ML | Machine Learning |
| PCA | principal component analysis |
| RF | Random Forest |
| NN | Neural Network |
| SGMA | Sustainable Groundwater Management Act |
| WY | Water Year |
References
- Malekzadeh, M.; Kardar, S.; Shabanlou, S. Simulation of groundwater level using MODFLOW, extreme learning machine and Wavelet-Extreme Learning Machine models. Groundw. Sustain. Dev. 2019, 9. [Google Scholar] [CrossRef]
- Chen, C.; He, W.; Zhou, H.; Xue, Y.; Zhu, M. A comparative study among machine learning and numerical models for simulating groundwater dynamics in the Heihe River Basin, northwestern China. Sci. Rep. 2020, 10, 1–13. [Google Scholar] [CrossRef] [PubMed]
- Tao, H.; Hameed, M.M.; Marhoon, H.A.; Zounemat-Kermani, M.; Heddam, S.; Kim, S.; Sulaiman, S.O.; Tan, M.L.; Sa’aDi, Z.; Mehr, A.D.; et al. Groundwater level prediction using machine learning models: A comprehensive review. Neurocomputing 2022, 489, 271–308. [Google Scholar] [CrossRef]
- Asher, M.J.; Croke, B.F.W.; Jakeman, A.J.; Peeters, L.J.M. A review of surrogate models and their application to groundwater modeling. Water Resour. Res. 2015, 51, 5957–5973. [Google Scholar] [CrossRef]
- Dai, T.; Maher, K.; Perzan, Z. Machine learning surrogates for efficient hydrologic modeling: Insights from stochastic simulations of managed aquifer recharge. J. Hydrol. 2025, 652. [Google Scholar] [CrossRef]
- Marshall, S.R.; Tran, T.-N.; Tapas, M.R.; Nguyen, B.Q. Integrating artificial intelligence and machine learning in hydrological modeling for sustainable resource management. Int. J. River Basin Manag. 2025, 1–17. [Google Scholar] [CrossRef]
- Fang, Z.; Ke, H.; Ma, Y.; Zhao, S.; Zhou, R.; Ma, Z.; Liu, Z. Design optimization of groundwater circulation well based on numerical simulation and machine learning. Sci. Rep. 2024, 14, 1–14. [Google Scholar] [CrossRef] [PubMed]
- Wu, F.; Yang, X.; Ma, Y.; Zhang, Q.; Zhang, Z.; Yuan, X.; Liu, H.; Liu, Z.; Zhong, J.; Zheng, J.; et al. Machine-learning guided optimization of laser pulses for direct-drive implosions. High Power Laser Sci. Eng. 2022, 1–10. [Google Scholar] [CrossRef]
- Mid-County Groundwater Management Agency (MGA). (2019). Santa Cruz Mid-County Groundwater Basin Groundwater Sustainability Plan, Midhttps://www.midcountygroundwater.org/sites/default/files/uploads/MGA_Draft_GSP_Cover_Acknowledgments_Abbv_7-12-2019.
- Montgomery & Associates (M&A). (2024). Santa Cruz Mid-County Basin Optimization Study, Summary of Groundwater Modeling Supporting Alternative Selection (Technical Memorandum 3). Montgomery & Associates: Tucson, AZ, USA.
- Ansel, J., Yang, E., He, H., Gimelshein, N., Jain, A., Voznesensky, M., Bao, B., Bell, P., Berard, D., Burovski, E., et al. (2024). PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph Compilation. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS '24), San Diego, CA, USA, 27 April–1 May 2024; Volume 2. [CrossRef]
- Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., ... & Duchesnay, E. (2011). Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12, 2825–2830. Available online: https://jmlr.csail.mit.edu/papers/v12/pedregosa11a.html.
- Hengl, T.; Nussbaum, M.; Wright, M.N.; Heuvelink, G.B.M.; Gräler, B. Random forest as a generic framework for predictive modeling of spatial and spatio-temporal variables. PeerJ 2018, 6, e5518. [Google Scholar] [CrossRef] [PubMed]
- Wang, Y., & King, R. D. (2023). Extrapolation is not the same as interpolation. In Discovery Science, DS 2023, Bifet, A., Lorena, A. C., Ribeiro, R. P., Gama, J., & Abreu, P. H. (Eds.), Lecture Notes in Computer Science, Springer: Cham, Switzerland, Volume 14276, pp. 276–289. [CrossRef]
- Brazdil, P., Giraud-Carrier, C., Soares, C., & Vilalta, R. (2022). Metalearning: Applications to Automated Machine Learning and Data Mining. Springer Nature: Cham, Switzerland.
- White, J., Welter, D., & Doherty, J. (2019). PEST++ Version 4.2.1 Documentation. U.S. Department of the Interior, Bureau of Reclamation: Denver, CO, USA.










| Group | Evaluation Criteria | Operationalization and Description |
|---|---|---|
| Sustainability | Seawater Intrusion | Cumulative 5-year running average head below MT at seawater intrusion RMP |
| Depletion of Interconnected Surface Water | Cumulative monthly head below MT at interconnected surface water RMP | |
| Chronic Lowering of Groundwater Level | Cumulative monthly head below MT at interconnected surface water RMP | |
| Feasibility | ASR injection elevations | Cumulative head above infeasible elevations (0 or 10 feet above ground surface depending on location) |
| ASR seepage face losses | Cumulative number of days when simulated seepage face losses occur | |
| Pure Water Soquel injection elevations | Cumulative head above infeasible elevations (0 feet above ground surface) | |
| Supply | Cumulative supply gap | Cumulative supply gap that occurs across the projected scenario |
| Maximum monthly supply gap | Maximum monthly supply gap that occurs across the projected scenario |
| Group | Parameter | Description | Minimum | Maximum |
|---|---|---|---|---|
| ASR | Site location for new ASR wells | ASR sites are numbered 1-5 as shown on Figure 13 | 1 (Site 1) | 5 (Site 5) |
| Layering for new ASR wells | Layering reflects model layers 7-9, and combinations of layers 7/8 and layers 9/10. | 7 (Layer 7, Purisima A) | 11 (Layer 8 and Layer 9 Purisima AA and Tu) | |
| Injection and extraction weights for existing and new ASR wells | Weights are used to develop a desired relative injection or extraction percentage, for the water allocation model | 0 (no injection/ extraction) | 50 (maximum weight for injection/ extraction) | |
| Injection and extraction maximum runtimes | Determines the maximum injection or extraction capacity | 1 (predicted sustainable and feasible capacity informed by previous work) | 5 (aspirational capacity identified by City staff) | |
| O’Neill as ASR | Binary check for whether the District O’Neill production well should be operated as an ASR well or exclusively as a District production well | 0 (District production well) | 1 (ASR well) | |
| Pure Water Soquel (injection wells) | Site location for new PWS injection wells | PWS sites are numbered 1-23 as shown on Figure 13 | 1 (Site 1) | 23 (Site 23) |
| Layering for new PWS injection | Layering reflects model layers 7-9, and combinations of layers 7/8 and layers 8/9 | 7 (Layer 7, Purisima A) | 11 (Layer 8 and Layer 9 Purisima AA and Tu) | |
| Injection weights for new and existing PWS injection wells | Weights are used to develop a desired relative injection percentage, for the water allocation model | 0 (no injection/ extraction) | 50 (maximum weight for injection/ extraction) | |
| Pure Water Soquel (new District extraction wells) | Added PWS injection volume | Additional volumes of injection, in addition to planned 1,500 AFY | 0 (no added injection) | 7 (additional injection of 1,500 AFY) |
| Site location for new SqCWD extraction wells | Sites are numbered 1-23 as shown on Figure 13 | 1 (Site 1) | 23 (Site 23) | |
| Layering for new SqCWD extraction | Layering reflects model layers 7-9, and combinations of layers 7/8 and layers 8/9. | 7 (Layer 7, Purisima A) | 11 (Layer 8 and Layer 9 Purisima AA and Tu) | |
| Extraction weights for new PWS extraction wells | Weights are used to develop a desired relative extraction percentage, for the water allocation model | 0 (no extraction) | 50 (maximum weight for extraction) | |
| Added PWS extraction volume | Additional volumes of extraction applied at new PWS extraction wells | 0 (no added extraction) | 7 (additional extraction of 1,500 AFY) | |
| Transfers | Transfers priorities for District to City transfers | The order in which pumping is increased to support District to City transfers across the District’s production wells | 1 (1st in order) | 19 (last in order) or 20 (no increases allowed) |
| Max runtimes for transfers | Maximum runtimes allowed for wells supporting transfers from District to City | 1 (12 hours per day) | 5 (21.6 hours per day) | |
| Reduction priorities for City to District transfers | The order in which pumping is decreased to support City to District transfers across the District’s production wells | 1 (1st in order) | 19 (last in order) or 20 (no decreases allowed) | |
| Limit transfers | Binary check for whether transfers are limited to existing intertie capacity or unlimited | 0 (transfers limited) | 1 (transfers not limited) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).