Predictive maintenance is a treatment for the actual operation of the equipment to optimize the company's operations. The output of predictive program maintenance is data, this treatment includes the type of "condition based maintenance" where changes in the condition of the machine or equipment are detected so that proactive actions are taken before the occurrence of machine damage. The K-nearest Neighbor (K-NN) algorithm is a simple supervised machine learning algorithm that is used to solve problems based on classification and regression. K-NN works by finding the query distance and all database examples, selecting a certain number of examples (K) adjacent to the query, then selecting the frequent label (in classification) or the average label (in regression). The purpose of this algorithm is to classify new object conditions based on attributes and samples from the training database. So that a predictive analysis is carried out on the damage to generating equipment using the machine learning application method of the Nearest Neighbor type or the classification of conditions used to predict the age or condition of an equipment by modeling according to the standard Operation & Maintenance of equipment. By doing predictive analysis, maintenance will lead to condition based maintenance so that the KPI (Key Performance Indicator) of operating performance in the form of increasing values, such as Capacity Factor (CF), Equivalent Availbility Factor (EAF) becomes optimal and prevents the generator from tripping suddenly. which is called sudden outage frequency (SdOF), as well as more efficient maintenance costs.