PIPHEN: Physical Interaction Prediction with Hamiltonian Energy Networks