In summary, based on machine learning and bioinformatics, the present study identified an immune-related prognostic ceRNA regulatory pathway that H19 might regulate the immune cell infiltration in carcinogenesis of GC through miR-378a-5p/SERPINH1 signaling. The gene discussed is H19; the disease is gastric cancer.