Weak Form Scientific Machine Learning: Test Function Construction for System Identification
Abstract. Weak form Scientific Machine Learning (WSciML) is a recently developed framework for data-driven modeling and scientific discovery. It leverages the weak form of equation error residuals to provide enhanced noise robustness in system identification via convolving model equations with test functions, reformulating the problem to avoid direct differentiation of data. The performance, however, relies on wisely choosing a set of compactly supported test functions. In this work, we provide a mathematical motivation for a novel data-driven approach to constructing test functions for optimal weak form system identification. Specifically, we introduce a Single-scale-Local strategy for constructing the test function set. Our approach numerically approximates the integration error introduced by the quadrature and identifies the support size for which the error is minimal, without requiring access to the model parameter values. Through numerical experiments across various models, noise levels, and temporal resolutions, we demonstrate that the selected supports consistently align with regions of both minimal parameter estimation and forward simulation error. We further compare the proposed approach with previously introduced strategies for constructing test function sets, including the orthogonal Multiscale Global approach [Bortz, Messenger, and Dukic, Bull. Math. Biol., 85 (2023), 110] as well as constructions based on Spectral Matching [Messenger and Bortz, J. Comput. Phys., 443 (2021), 110525], demonstrating improved accuracy in parameter recovery and forward simulation, as well as enhanced computational efficiency. Code implementing the proposed method is available at https://github.com/MathBioCU/pyWENDy .
Authors
- April Tran (ORCID: https://orcid.org/0009-0007-5319-7619)
- David M. Bortz (ORCID: https://orcid.org/0000-0003-1163-7317)
Institutions
- University of Colorado Boulder (US)
Publication Details
- Journal
- SIAM Journal on Scientific Computing
- Published
- 2026-07-28
- DOI
- https://doi.org/10.1137/25m1776020
- Citations
- 1
- Primary Topic
- Computational Physics and Python Applications
- Type
- article
- Field-Weighted Citation Impact
- 9.29
Funders
- U.S. Department of Energy
- National Institute of General Medical Sciences