This paper presents an algorithm for detecting anomalies in temporal data using a combination of K-means clustering and the C5.0 decision tree algorithm. The K-means algorithm is first applied to partition the dataset into clusters, after which the C5.0 decision tree is used for classification of instances as normal or anomalous. The proposed method demonstrates effective classification accuracy on the tested dataset.