Skip to main content
Engineering AI-Assisted Client-Side Scientific Workflows: WebGPU Inference Architecture and Framework for Privacy-Preserving Hydrological Analysis

Engineering AI-Assisted Client-Side Scientific Workflows: WebGPU Inference Architecture and Framework for Privacy-Preserving Hydrological Analysis

This is a Preprint and has not been peer reviewed. This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Authors

Nikhil Singh, Ramteja Sajja, Yusuf Sermet, Ibrahim Demir

Abstract

Deep learning has demonstrated strong potential for improving hydrological predictions, yet its practical adoption remains limited by software complexity, infrastructure requirements, data governance constraints, and fragmented analytical workflows. This study presents Hydro AI Lab, an AI-assisted client-side scientific workflow platform that enables end-to-end hydrological analysis, including data ingestion, model training, evaluation, and AI-assisted interpretation, entirely on the user’s device without reliance on cloud infrastructure. The system is built on a four-layer architecture comprising a user interface layer, a framework-free deep learning engine, geospatial visualization layer, and a browser-native large language model (LLM) assistant powered by WebGPU. We introduced a WebGPU-based inference pipeline tailored for scientific workflows, incorporating tokenization, parallel prefill, autoregressive decoding with KV cache, 4-bit quantization, and a structured context injection mechanism that embeds analytical results directly into LLM interactions. Empirical benchmarks demonstrate real-time inference performance of 21 to 95 tokens per second across multiple model sizes on commodity hardware. Design decisions are informed by published usability evidence from related hydrological decision support systems. The results demonstrate that privacy-preserving, locally executable scientific AI workflow is feasible and practical, offering a scalable pathway toward more accessible, reproducible, and deployable machine learning workflows in hydrology and related environmental domains.

DOI

https://doi.org/10.31223/X5VB78

Subjects

Artificial Intelligence and Robotics, Environmental Sciences, Hydrology, Software Engineering

Keywords

Client-Side Artificial Intelligence, WebGPU, Hydrological Modelling, Privacy-Preserving Machine Learning, Scientific Workflow System

Dates

Published: 2026-05-30 14:56

Last Updated: 2026-05-30 14:56

License

CC BY Attribution 4.0 International

Additional Metadata

Conflict of interest statement:
The authors declare that they have no competing interests.

Data Availability:
The platform is hosted at https://hydroinformatics.tulane.edu/lab/hydroailab/ with source code at https://github.com/uihilab/HydroAILab. Released under the Apache-2.0 license.

Metrics

Views: 12

Downloads: 0