MLP sliding-window forecasting for electricity load prediction: a multi-scale evaluation using an ONNX-based Java framework

Morsidi, Farid and Ariffin, Asma Hanee and Abdul Wahid, Rohaizah (2026) MLP sliding-window forecasting for electricity load prediction: a multi-scale evaluation using an ONNX-based Java framework. Journal of Applied Engineering Design & Simulation (JAEDS), 6 (1): 2. pp. 14-29. ISSN 2805-5756

Official URL: https://jaeds.uitm.edu.my/index.php/jaeds

Identification Number (DOI): 10.24191/jaeds.v6i1.164

Abstract

Deep learning models for time-series forecasting offer significant potential but face deployment challenges. This paper advances a modular framework for deploying ONNX models in Java, building on previous work. The research paper assesses the MLP sliding-window architecture through different time intervals which extends the previous LSTM-based system to establish primary performance standards that future research can use for comparison. The framework incorporates additional features for enhanced evaluation, including five metrics (MAE, RMSE, MAPE, SMAPE, R²), automated archiving, and high-quality graphical exports. Evaluations using electricity consumption data (ETTh1) and benchmark datasets show that the MLP sliding-window model outperforms LSTM in terms of R², MAE, and MAPE, achieving scores of 0.9895, 0.5907, and 7.19%, respectively, indicating high accuracy across various domain. The framework also implements a custom threshold (ε = 1e−10) to handle near-zero values in MAPE calculation, ensuring reliable result storage for reproducibility. The findings reveal that simpler MLP designs can either match or exceed LSTM performance in specific scenarios while offering faster processing and easier implementation. Detailed comparisons and guidelines for deployment are included, along with insights into model selection criteria.

Metadata

Item Type: Article
Creators:
Creators
Email / ID Num.
Morsidi, Farid
farid.mors90@gmail.com
Ariffin, Asma Hanee
asma@fskik.upsi.edu.my
Abdul Wahid, Rohaizah
rohaizah@fskik.upsi.edu.my
Subjects: Q Science > QA Mathematics > Instruments and machines
Q Science > QA Mathematics > Instruments and machines > Electronic Computers. Computer Science
Divisions: Universiti Teknologi MARA, Shah Alam > Faculty of Mechanical Engineering
Journal or Publication Title: Journal of Applied Engineering Design & Simulation (JAEDS)
UiTM Journal Collections: UiTM Journals > Journal of Applied Engineering Design & Simulation (JAEDS)
ISSN: 2805-5756
Volume: 6
Number: 1
Page Range: pp. 14-29
Keywords: Time-series forecasting, Deep learning, ONNX, Multi-layer perceptron, LSTM
Date: March 2026
URI: https://ir.uitm.edu.my/id/eprint/136351
Edit Item
Edit Item

Download

[thumbnail of 136351.pdf] Text
136351.pdf

Download (1MB)

ID Number

136351

Indexing

Altmetric
PlumX
Dimensions

Statistic

Statistic details