Heap Spraying is a sort of cyberattack in which the attacker exploits the ability to write a series of bytes in memory for the running application at various locations throughout the heap.
Predictive analytics focuses more on preventive future attacks rather than explaining the reason and areas of attack in the past.