There is nothing to predict. From the random theory, cicadas fly to the body, just like flies, cockroaches, bees, dragonflies and so on. It's all an accident.
However, cicadas have a high status in the hearts of ancient people, and they are even considered as a symbol of the existence of immortality and resurrection. If cicadas fly into their homes, it is said that this is a good omen. Cicada has always been regarded as a symbol of purity, lofty and spirituality. So for many people, this means something good will happen.
Extended information
Every year, from June to July, the pupa will turn into an adult and then lay eggs in a few days. It usually takes one to two years from the beginning of the egg to the process of the nymph living underground until the last time it is hatched into an adult and released in the tree.
Among cicadas, their larvae are also called "nymph". Their male cicada will make a sound to attract the female cicada to mate with him. It is inserting its ovipositor tube at the tip of its apex into the tree to lay eggs. It will not hatch until the next year, and then it will break out of the soil after living in the soil for several years or even more.