Data-Driven Self-Supervised Learning for the Discovery of Solution Singularity for Partial Differential Equations