gomei was simply describing the situation he was expreriencing at that moment and he explictly stated that the second he
thinks about an attack kokushibo knows about it, there are multiple abilities showcased by the STW that weren't explained properly either such as kokushibo reading muichiro's genetic information and deducing his lineage
he also deduced his age just by looking at him
so nothing is stopping him from reading their toughts by looking at the brain's electrical signals and deducing what kind of technique they will use the second they think about it, this is also a from of analytical prediction