Sistema de predicción de generación fotovoltaica mediante redes neuronales LSTM e integración con scada industrial para optimización energética
Photovoltaic generation prediction system using LSTM neural networks and integration with industrial scada for energy optimization
DOI:
https://doi.org/10.53591/iti.v18i26.3547Palabras clave:
energía fotovoltaica, LSTM, predicción, SCADA, GrafanaResumen
Contexto: La variabilidad de la generación fotovoltaica representa un desafío para la supervisión y la optimización energética en sistemas industriales. La incorporación de modelos predictivos basados en inteligencia artificial permite estimar la potencia generada a partir de variables históricas, eléctricas y ambientales. Método: Se desarrolló un modelo LSTM para la predicción de la potencia fotovoltaica con dos horas de anticipación, integrado con una arquitectura IoT-SCADA compuesta por ESP32, MQTT, Node-RED, InfluxDB y Grafana. Se emplearon datos horarios de un año (2025) de un prototipo instalado en Pifo, Ecuador, con variables de voltaje, corriente, temperatura, humedad, iluminancia y potencia organizadas en ventanas de 24 horas. El modelo se entrenó con una partición cronológica 70/30 y se comparó con tres modelos de referencia. Resultados: En el conjunto de prueba, el modelo obtuvo un MAE de 2,4235 W, un RMSE de 4,1055 W y un R² de 0,9513, con errores inferiores a los de la persistencia, la persistencia estacional y la regresión lineal. La integración con el entorno SCADA permitió visualizar en tiempo real la potencia real, la potencia predicha y la energía proyectada. Conclusiones: Como prueba de concepto, la integración de un modelo LSTM en una arquitectura IoT-SCADA de bajo costo resultó viable para la predicción horaria y la supervisión de la generación fotovoltaica, y constituye la base para estrategias de optimización energética cuya evaluación se plantea como trabajo futuro.
Referencias
Al-Dahidi, S., Madhiarasan, M., Al-Ghussain, L., Abubaker, A. M., Ahmad, A. D., Alrbai, M., Aghaei, M., Alahmer, H., Alahmer, A., Baraldi, P., & Zio, E. (2024). Forecasting solar photovoltaic power production: A comprehensive review and innovative data-driven modeling framework. Energies, 17(16), 4145. https://doi.org/10.3390/en17164145
Calderón, D., Folgado, F. J., González, I., & Calderón, A. J. (2024). Implementation and experimental application of industrial IoT architecture using automation and IoT hardware/software. Sensors, 24(24), 8074. https://doi.org/10.3390/s24248074
Campos, F. D., Sousa, T. C., & Barbosa, R. S. (2024). Short-term forecast of photovoltaic solar energy production using LSTM. Energies, 17(11), 2582. https://doi.org/10.3390/en17112582
Dhaked, D. K., Dadhich, S., & Birla, D. (2023). Power output forecasting of solar photovoltaic plant using LSTM. Energy and Built Environment. https://doi.org/10.1016/j.enbenv.2023.04.001
Dimitriadis, C. N., Passalis, N., & Georgiadis, M. C. (2025). A deep learning framework for photovoltaic power forecasting in multiple interconnected countries. Sustainable Energy Technologies and Assessments, 77, 104330. https://doi.org/10.1016/j.seta.2025.104330
Ekinci, E. (2024). A comparative study of LSTM-ED architectures in forecasting day-ahead solar photovoltaic energy using weather data. Computing, 106. https://doi.org/10.1007/s00607-024-01266-1
Graham, E., Fulghum, N., & Altieri, K. (2025). Global electricity review 2025. Ember. https://ember-energy.org/latest-insights/global-electricity-review-2025/
Harrou, F., Kadri, F., & Sun, Y. (2020). Forecasting of photovoltaic solar power production using LSTM approach. En Advanced statistical modeling, forecasting, and fault detection in renewable energy systems. IntechOpen. https://doi.org/10.5772/intechopen.91248
Hasan, K., Yousuf, S. B., Tushar, M. S. H. K., Das, B. K., Das, P., & Islam, M. S. (2022). Effects of different environmental and operational factors on the PV performance: A comprehensive review. Energy Science & Engineering, 10(2), 656–675. https://doi.org/10.1002/ese3.1043
Jailani, N. L. M., Dhanasegaran, J. K., Alkawsi, G., Alkahtani, A. A., Phing, C. C., Baashar, Y., Capretz, L. F., Al-Shetwi, A. Q., & Tiong, S. K. (2023). Investigating the power of LSTM-based models in solar energy forecasting. Processes, 11(5), 1382. https://doi.org/10.3390/pr11051382
Khan, W., Walker, S., & Zeiler, W. (2022). Improved solar photovoltaic energy generation forecast using deep learning-based ensemble stacking approach. Energy, 240, 122812. https://doi.org/10.1016/j.energy.2021.122812
La Fata, A., Moser, G., de Moura, R. A. R., & Procopio, R. (2025). Near real-time photovoltaic power forecasting through recurrent neural network using timely open-access data. Energies, 18(23), 6220. https://doi.org/10.3390/en18236220
Ledmaoui, Y., El Maghraoui, A., El Aroussi, M., Saadane, R., Chebak, A., & Chehri, A. (2023). Forecasting solar energy production: A comparative study of machine learning algorithms. Energy Reports, 10, 1004–1012. https://doi.org/10.1016/j.egyr.2023.07.042
Lim, S. C., Huh, J. H., Hong, S. H., Park, C. Y., & Kim, J. C. (2022). Solar power forecasting using CNN-LSTM hybrid model. Energies, 15(21), 8233. https://doi.org/10.3390/en15218233
Liu, C. H., Gu, J. C., & Yang, M. T. (2021). A simplified LSTM neural network for one day-ahead solar power forecasting. IEEE Access, 9, 17174–17195. https://doi.org/10.1109/ACCESS.2021.3053638
Liu, W., & Mao, Z. (2024). Short-term photovoltaic power forecasting with feature extraction and attention mechanisms. Renewable Energy, 226, 120437. https://doi.org/10.1016/j.renene.2024.120437
Luo, X., Zhang, D., & Zhu, X. (2021). Deep learning based forecasting of photovoltaic power generation by incorporating domain knowledge. Energy, 225, 120240. https://doi.org/10.1016/j.energy.2021.120240
Malakar, S., Goswami, S., & Bhowmik, P. (2021). Designing a long short-term network for short-term forecasting of global horizontal irradiance. SN Applied Sciences, 3, 477. https://doi.org/10.1007/s42452-021-04421-x
Mimouni, A., Chahet, Y., El Amrani, A., El Amraoui, M., Azeroual, M., & Bejjit, L. (2026). Applications of IoT and machine learning in photovoltaic (PV) systems: A comprehensive review. Sustainability, 18(4), 2005. https://doi.org/10.3390/su18042005
Mohamad Radzi, P. N. L., Akhter, M. N., Mekhilef, S., & Mohamed Shah, N. (2023). Review on the application of photovoltaic forecasting using machine learning for very short- to long-term forecasting. Sustainability, 15(4), 2942. https://doi.org/10.3390/su15042942
Piantadosi, G., Dutto, S., Galli, A., De Vito, S., Sansone, C., & Di Francia, G. (2024). Photovoltaic power forecasting: A Transformer based framework. Energy and AI, 18, 100444. https://doi.org/10.1016/j.egyai.2024.100444
Pinal, E. M. L., Das, A., & Schlüter, S. (2026). A low-cost IoT device for environmental monitoring and embedded solar forecasting with on-device incremental learning. Electronics, 15(17), 3911. https://doi.org/10.3390/electronics15173911
REN21. (2024). Renewables 2024 global status report: Energy supply. REN21 Secretariat. https://www.ren21.net/gsr-2024/
Salman, D., Direkoglu, C., Kusaf, M., & Fahrioglu, M. (2024). Hybrid deep learning models for time series forecasting of solar power. Neural Computing and Applications, 36(16), 9095–9112. https://doi.org/10.1007/s00521-024-09558-5
Shukla, G., Shukla, A. K., Shukla, K. N., & Dixit, S. (2026). IoT-enabled solar PV systems: Real-time monitoring and efficiency optimization. Results in Optics, 22, 100949. https://doi.org/10.1016/j.rio.2025.100949
Tang, Y., Yang, K., Zhang, S., & Zhang, Z. (2022). Photovoltaic power forecasting: A hybrid deep learning model incorporating transfer learning strategy. Renewable and Sustainable Energy Reviews, 162, 112473. https://doi.org/10.1016/j.rser.2022.112473
Tang, Y., Yang, K., Zhang, S., & Zhang, Z. (2024). Photovoltaic power forecasting: A dual-attention gated recurrent unit framework incorporating weather clustering and transfer learning strategy. Engineering Applications of Artificial Intelligence, 130, 107398. https://doi.org/10.1016/j.engappai.2023.107398
Uddin, S. U., Baig, M. J. A., & Iqbal, M. T. (2022). Design and implementation of an open-source SCADA system for a community solar-powered reverse osmosis system. Sensors, 22(24), 9631. https://doi.org/10.3390/s22249631
Wang, K., Qi, X., & Liu, H. (2019). Photovoltaic power forecasting based LSTM-convolutional network. Energy, 189, 116225. https://doi.org/10.1016/j.energy.2019.116225
Wang, Y., Yao, Y., Zou, Q., Zhao, K., & Hao, Y. (2024). Forecasting a short-term photovoltaic power model based on improved snake optimization, convolutional neural network, and bidirectional long short-term memory network. Sensors, 24(12), 3897. https://doi.org/10.3390/s24123897

