Activation-kernel extraction through machine learning