Objective To investigate the risk factors of early onset epilepsy(ES)and late onset epi-lepsy(LS)after cerebral hemorrhage and establish prewarning models.Methods A retrospective analysis was performed on 87 patients with post-cerebral hemorrhage seizures admitted to Department of Neurosur-gery,Nanyang Central Hospital from June 2022~August 2024.The patients were divided into ES(41 ca-ses)and LS(46 cases)groups according to seizure onset time.In addition,52 patients without seizures after cerebral hemorrhage were selected as a simple cerebral hemorrhage group.Three groups were compared for general data,laboratory indicators and imaging indicators.Logistic regression was applied to analyze inde-pendent risk factors of ES and LS and establish prewarning models.Receiver operating characteristic(ROC)curve analysis was used to evaluate the predictive performance of ES and LS prewarning models.Results National Institute of Health Stroke Scale(NIHSS)scores and craniotomy proportions were higher in ES and LS groups than those in simple cerebral hemorrhage group(P<0.05).The proportions of the patients with the history of cerebral hemorrhage were higher in ES and LS groups than that in simple cerebral hemorrhage group(P<0.05).Low-density lipoprotein levels in both ES and LS groups were lower than those in simple cerebral hemorrhage group(P<0.05).The proportions of the patients with cortical involvement and multi-ple lesions were higher in ES and LS groups than those in simple cerebral hemorrhage group(P<0.05).The proportion of the patients with lesions located in the frontal and temporal lobes of the brain was higher in LS group than that in simple cerebral hemorrhage and the ES groups(P<0.05).Logistic regression analysis showed that the history of cerebral hemorrhage(OR=1.372,95%CI:2.435~3.782),multiple lesions(OR=2.164,95%CI:3.293~9.284)and high NIHSS score(OR=2.747,95%CI:1.253~6.732)were risk factors for ES after cerebral hemorrhage(P<0.05),and cortex involvement(OR=1.793,95%CI:1.073~6.295)and lobar(frontal and temporal)hemorrhage(OR=1.478,95%CI:4.435~11.782)were risk factors for LS after intracerebral hemorrhage(P<0.05).ROC analysis results showed that AUC of prewarning model for ES after cerebral hemorrhage was 0.869(95%CI:0.858~0.922,P<0.05),and AUC of prewarning model for LS after cerebral hemorrhage was 0.893(95%CI:0.867~0.943,P<0.05).Conclusion History of cerebral hemorrhage,multiple lesions and high NIHSS score are risk factors for ES after cerebral hemorrhage.Cortex involvement and lobar(frontal and temporal)hemorrhage are risk factors for LS after cerebral hemorrhage.