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

Authors

  • Eko Verianto Information Systems, Universitas Cendekia Mitra Indonesia, Indonesia Author
  • Muhammad Arif Alfian Informatics, Universitas Cendekia Mitra Indonesia, Indonesia Author

DOI:

https://doi.org/10.52465/joscex.v7i1.2

Keywords:

LSTM, Temporal encoding, Irregular time series, Forecasting, Power consumption

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.

Downloads

Published

28-03-2026

Issue

Section

Articles

How to Cite

LSTM with temporal encoding for irregular time series forecasting in power consumption. (2026). Journal of Soft Computing Exploration, 7(1), 66-78. https://doi.org/10.52465/joscex.v7i1.2