Post Injury Epilepsy (PIE) occurs several months after a stroke in at least 10% of patients. Scientists at Ben Gurion University have been able to detect likely PIE sufferers using EEG (electroencephalographic) recordings of theta brain waves. Early treatment with medication can prevent attacks.
https://aabgu.org/discovered-biomarker-predicts-post-injury-epilepsy/