Embedded self-learning kernel