Similar problem, https://arxiv.org/pdf/2311.00212
- Samuel E. Otto, Nicholas Zolman, J. Nathan Kutz, Steven L. Brunton, A Unified Framework to Enforce, Discover, and Promote Symmetry in Machine Learning https://arxiv.org/abs/2311.00212
see section 6.
Note: the paper is in the context of machine learning, but they develop the results generically.