AKM$^2$D : An Adaptive Framework for Online Sensing and Anomaly Quantification