Journal of Soft Computing Exploration
Vol. 7 No. 1 (2026): March 2026

LSTM with temporal encoding for irregular time series forecasting in power consumption

Eko Verianto (Information Systems, Universitas Cendekia Mitra Indonesia, Indonesia)
Muhammad Arif Alfian (Informatics, Universitas Cendekia Mitra Indonesia, Indonesia)



Article Info

Publish Date
28 Mar 2026

Abstract

Power consumption data obtained from sensors are often recorded at irregular time intervals due to network disruptions, device errors, or power outages, resulting in irregular time series that make forecasting difficult. This study aims to develop an electricity consumption forecasting model based on Long Short-Term Memory (LSTM) and Temporal Encoding.  LSTM was chosen because it has an effective gating mechanism for capturing temporal dependencies in time series data, while Temporal Encoding explicitly represents time information to handle irregular time intervals without data imputation.  The methods in this study include data collection via four electrical current sensors, followed by data aggregation every 10 minutes, and feature engineering using sinusoidal encoding and a time difference encoder. The features were normalized using min-max scaling, organized into a multivariate sequence using a sliding window, and divided using a holdout scheme. The model was trained using LSTM and evaluated using Mean Squared Error (MSE). The results show training MSE values of 9.89210-4, 7.34910-4, 9.53510-4 and 1.90610-3, while the testing MSE values are 4.56610-3, 2.99310-3, 1.09410-2 and 1.20910-2 for each node. These findings indicate that temporal encoding performs well on the training data, but the model's generalization ability remains limited.

Copyrights © 2026






Journal Info

Abbrev

journal

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management Electrical & Electronics Engineering

Description

The journal focuses on publishing high-quality, original research and review articles in the field of Soft Computing, Informatics and Computer Science, emphasizing the development, application, and rigorous evaluation of Advanced Computational Methods, Artificial Intelligence (AI), Machine Learning ...