Skip to content
Open access

Development of a Real-time Solar Panel Power Prediction Model Using the Long Short-term Memory

Sep 2026 · Jurnal Nasional Teknologi dan Sistem Informasi · 0 citations · 20 references

Abstract

Indonesia’s remote islands face significant challenges in electricity access due to the high cost and logistical difficulties of extending the national grid, leading many communities to rely on expensive and polluting diesel generators. Solar-based microgrids offer a sustainable alternative, yet the intermittent nature of solar energy, driven by fluctuating weather conditions, poses major obstacles to a reliable power supply and efficient system sizing. This study addresses these issues by developing a real-time solar panel power prediction model using Long Short-Term Memory (LSTM) networks. A 50 Wp solar panel system equipped with an INA260 current sensor, a voltage sensor, a DHT-22 temperature sensor, and an ESP32 microcontroller was constructed to collect real-time voltage, current, and temperature data at 10-second intervals. The collected data underwent preprocessing, feature engineering, and transformation into supervised learning sequences for training. Three temporal resolutions of the LSTM model were systematically evaluated: 3-minute, 2-minute, and 1-minute, all with 30 output timesteps. Performance was assessed using rolling-window predictions on the held-out test set with metrics including RMSE, MAPE, and R². Results demonstrated that finer temporal resolution significantly improves forecasting accuracy. The 1-minute variation achieved the best performance with the lowest RMSE and highest R², effectively capturing both diurnal patterns and short-term fluctuations in solar power output. The developed LSTM model enables accurate short-term predictions (30–90 minutes ahead), supporting proactive energy management, including optimized battery charging, load scheduling, and reduced grid dependency. Future work will incorporate additional meteorological variables and seasonal data to improve model robustness further. Three temporal variations of the LSTM model were systematically evaluated: 3-minute, 2-minute, and 1-minute resolutions, all with 30 output timesteps. Performance was assessed using rolling-window predictions on the held-out test set with metrics including RMSE, MAPE, and R². Results demonstrated that finer temporal resolution significantly improves forecasting accuracy. The 1-minute variation achieved the best performance with the lowest RMSE and highest R², effectively capturing both diurnal patterns and short-term fluctuations in solar power output. The developed LSTM model enables accurate short-term predictions (30–90 minutes ahead), supporting proactive energy management such as optimized battery charging, load scheduling, and reduced grid dependency. Future work will incorporate additional meteorological variables and seasonal data to further improve model robustness.

Read PDF

Similar papers

Conference Aug 2026

A Low-Complexity CNN-LSTM Framework for Solar Power Generation Forecasting Using Weather Parameters

Accurate solar power forecasting is very important for operating photovoltaic (PV) systems and using energy resources efficiently. This paper proposes a lowcomplexity CNN+LSTM model to predict both solar power and weather conditions by using real-time data collected from IoTbased sensors. To monitor performance and ant...

A. B, Sharmitha K, Sashini M et al. · 0 citations
Open access Aug 2026

LSTM-Based Daily Power Forecasting for a 1 MWp PV System in Tropical Indonesia: Toward Operational Optimization

Variations in solar irradiance and module temperature significantly affect the performance and operational efficiency of large-scale photovoltaic (PV) power systems, especially in tropical regions. This study investigates the application of a Long Short-Term Memory (LSTM) network for accurate real-time power prediction...

A. Muhtar, S. Baqaruzi, P. Yunesti · 0 citations
#edge computing Sep 2026

A short-term power load prediction method based on Attention-LSTM in the context of optical-computing synergy

Accurate short-term forecasts of the electrical power demand are required for the intelligent operation of the power grid and energy management. With the introduction of more decentralized power units and fluctuating energy demand, power consumption now has considerable non-linearity and time dependency, so the old pre...

Yue-Sheng Zheng, Yao-Ting Chen, Shi-Hao Yin et al. · 0 citations
Conference Aug 2026

Short-Term Wind Power Forecasting Using Transformer-XGBoost Hybrid Model

Accurate wind forecasting is critical to ensure stable and efficient integration of renewable energy resources in modern power systems. However, the inherent variability and non-stationarity of wind pose a significant forecasting problem for modern power system operators to ensure power system stability. A new hybrid f...

Heshan Senapriya, Sakun Rasilka, D. P. Wadduwage · 0 citations
Open access Sep 2026

Bayesian-optimized LSTM networks for accurate day-ahead photovoltaic power prediction

Accurate day-ahead photovoltaic (PV) power forecasting is essential for effective energy management and grid balancing. This study proposes a Bayesian-optimized long short-term memory (LSTM) network for day-ahead PV power prediction. The model was evaluated using a PV-meteorological time-series dataset collected from a...

Enas Ali Ahmed, Muna Hassan Hussein, A. M. Salih · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.