Abstract
The study aims to present the effectiveness of anomaly detection algorithms in lighting systems based on analyzing records from electricity meters. The road lighting management system operates continuously and in real time, requiring online anomaly detection algorithms. The paper examines two machine learning-based algorithms: Autoencoder with LSTM-type recurrent neural network and Transformer. The results obtained for these algorithms are compared with a simple mechanism for comparing energy consumption in consecutive periods. Classification metrics such as error matrix, sensitivity, precision, and F1-score were used to evaluate the performance of the algorithms. The analysis showed that the Autoencoder algorithm achieves better accuracy (F1-score = 0.9565) and requires significantly fewer computing resources than the Transformer algorithm. Although less efficient (F1-score = 0.8125), the Transformer algorithm also demonstrates the ability to detect anomalies in the road lighting system effectively. Implementing the Autoencoder algorithm on an actual ILED platform allows anomaly detection with a delay of 15 minutes, which is sufficient to take corrective action. The conclusions of this study indicate the significant advantage of machine learning-based algorithms in anomaly detection in lighting systems, which can significantly improve the reliability and efficiency of urban lighting management.