In conclusion, PathHDNN provided an effective pathway hierarchical-informed framework for accurately predicting patient responses to immunotherapy and identified key pathways yielding valuable insights into the biological mechanisms underlying treatment responses, which is essential for advancing precision medicine.