In the training cohort, univariate logistic regression analyses identified that higher WBC counts, TBIL, ALT, AST, eGFR, PT, PTA, INR, CPT score, MELD score, comorbid shock, hepatic failure, HE and ascites were significantly associated with the failure of endoscopic hemostasis. This evidence concerns the gene GPT and Hepatic failure.