I've read around that random bursts of affection can be the result of a female trying to recover from the moral/guilt of cheating or betraying a partner.

When can this be true, how would I identify it, and how can I identify that it's something other than infidelity pushing this random affection?