Machine Learning.
use the auto encoder approach it can be learned that way as well. kullback leibler divergence Paper from this website Measurement of the distance between distributions, KL divergence. (Closely related to histogram, as well as statistical independence. More info here.) Image from this website Above