  Enhancements in the invariant mass distribution or scattering cross-section
are usually associated with resonances. However, the nature of exotic signals
found near hadron-hadron thresholds remain a puzzle today. In fact, a purely
kinematic triangle mechanism is also capable of producing similar structures,
but do not correspond to any unstable quantum state. In this paper, we report
for the first time, that a deep neural network can be trained to distinguish
triangle singularity from pole-based enhancements. We also identify the type of
dynamic pole structure that can be misidentified as triangle enhancement. We
apply our method to confirm that the $P_\psi^N(4312)^+$ state is not due to a
single triangle singularity, and is more favored towards a pole-based
interpretation based solely on pure line-shape analysis. Lastly, we argue how
our method can be used as a model-selection framework to help in classifying
other exotic hadron candidates.
