Researchers Boris Kryuk and Tanisha Kiratsata developed HCTide, a framework integrating ocean physics directly into the PyTorch architecture. The model uses a solver-in-the-loop approach to ensure energy conservation within machine precision limits, addressing common issues in physics-informed neural networks where energy balance is often violated.

The framework utilizes the adjoint-state method to compute gradients through the global ocean solver. By reusing LU factorization from the forward pass, the system achieves high computational efficiency. Training 170 models with 17,154 parameters each took approximately 100 minutes on a single Apple M4 Pro CPU, demonstrating that computational costs remain stable regardless of network size.

During testing with 226 global tide gauge stations from the 2018 UHSLC archive, the neural network outperformed classical physical models in standard random cross-validation. However, a subsequent physical audit revealed that the model had learned a geographic bias between hemispheres rather than actual physical laws, highlighting the risks of overfitting in clustered spatial data.

The HCTide architecture restricts the output of the friction velocity and self-attraction coefficients to ensure physical consistency. By using a smooth limiting layer, the model prevents numerical instability and ensures that the dissipation operator remains positive and non-degenerate across all parameter configurations.