An algorithm detecting anomalies out of observation based on learned models