Time series model and anomaly detection in media data