Photovoltaic Digital Twins: Mathematical Modeling vs. Neural Networks for Energy Management in Smart Buildings
Source abstract
Abstract
Efficiently controlling and managing photovoltaic installations for self-consumption is key to making optimal use of these systems. The first step to achieving that control is modeling the generation of electricity by photovoltaic panels with digital twins. This paper presents an experimental evaluation of four photovoltaic power prediction models in a real-world environment using high-resolution, annual data from a university facility. A mathematical model and three neural network models (MLP, LSTM, and GRU) are compared under standardized metrics. The results demonstrate that the Multilayer Perceptron (MLP) achieves the highest overall accuracy and seasonal consistency. It outperforms the other three models, particularly in scenarios where the relationships between meteorological variables and power generation are predominantly static. However, the mathematical model maintains a competitive performance in conditions of low variability, such as in the summer and autumn. The seasonal analysis reveals the importance of selecting and adjusting models according to operational and climatic contexts. This study’s main contribution is identifying the MLP as the most efficient option for implementing digital twins in photovoltaic installation control. This facilitates real-time monitoring, optimization, and predictive maintenance and contributes to smart, sustainable energy management in buildings to align with climate neutrality guidelines.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Photovoltaic System Optimization Techniques · Solar Radiation and Photovoltaics · Building Energy and Comfort Optimization
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Industrial Engineering, University of Extremadura, Avda. de Elvas s/n, 06006 Badajoz, Spain
Funding
Spanish Ministry of Science and Innovation
References (62)
Show source-provided references
1. (2025, April 22). European Parliament European Green Pact: Key to a Climate-Neutral and Sustainable EU. Available online: https://www.europarl.europa.eu/topics/es/article/20200618STO81513/pacto-verde-europeo-clave-para-una-ue-climaticamente-neutral-y-sostenible.
2. (2025, April 22). European Parliament Energy Efficiency of Buildings: New Law to Decarbonise the Sector. Available online: https://www.europarl.europa.eu/news/es/press-room/20240308IPR19003/eficiencia-energetica-de-los-edificios-nueva-ley-para-descarbonizar-el-sector.
3. (2025, June 25). European Parliament and the Council of the European Union DIRECTIVE (EU) 2024/1275. Available online: http://data.europa.eu/eli/dir/2024/1275/oj.
4. An Overview on Building-Integrated Photovoltaics: Technological Solutions, Modeling, and Control10.1016/j.enbuild.2024.114867 ↗
5. Predicting Photovoltaic Power Production Using High-Uncertainty Weather Forecasts10.1016/j.apenergy.2023.120989 ↗
6. Al-Dahidi, S., Madhiarasan, M., Al-Ghussain, L., Abubaker, A.M., Ahmad, A.D., Alrbai, M., Aghaei, M., Alahmer, H., Alahmer, A., and Baraldi, P. (2024). Forecasting Solar Photovoltaic Power Production: A Comprehensive Review and Innovative Data-Driven Modeling Framework. Energies, 17.10.3390/en17164145 ↗
7. Dimitrova Angelova, D., Carmona Fernández, D., Calderón Godoy, M., Antonio, J., Moreno, Á., and Félix González González, J. (2024). A Review on Digital Twins and Its Application in the Modeling of Photovoltaic Installations. Energies, 17.10.20944/preprints202401.1585.v1 ↗
8. Digital Twin Modeling10.1016/j.jmsy.2022.06.015 ↗
9. Zahedi, F., Alavi, H., Majrouhi Sardroud, J., and Dang, H. (2024). Digital Twins in the Sustainable Construction Industry. Buildings, 14.10.3390/buildings14113613 ↗
10. Integrating Digital Twin Technology in Energy Management: A Review of Smart Building Solutions10.9734/jerr/2025/v27i41477 ↗
11. Digital Twins for Smart Building at the Facility Management Stage: A Systematic Review of Enablers, Applications and Challenges10.1108/SASBE-10-2023-0298 ↗
12. Digital Twin: Vision, Benefits, Boundaries, and Creation for Buildings10.1109/ACCESS.2019.2946515 ↗
13. Yitmen, I., Almusaed, A., Hussein, M., and Almssad, A. (2025). AI-Driven Digital Twins for Enhancing Indoor Environmental Quality and Energy Efficiency in Smart Building Systems. Buildings, 15.10.3390/buildings15071030 ↗
14. Miao, L., Zhao, J., Ma, J., Wei, X., and Hu, Y. (2024, January 13–15). Study on Optimization and Scheduling Strategies of Distributed Energy Storage Based on Digital Twin. Proceedings of the 2024 4th International Conference on Smart Grid and Energy Internet, SGEI 2024, Shenyang, China.10.1109/SGEI63936.2024.10914292 ↗
15. Antil, H. (2024). Mathematical Opportunities in Digital Twins (MATH-DT). arXiv.
16. Digital Twins: State of the Art Theory and Practice, Challenges, and Open Research Questions
17. From Simple Digital Twin to Complex Digital Twin Part I: A Novel Modeling Method for Multi-Scale and Multi-Scenario Digital Twin10.1016/j.aei.2022.101706 ↗
18. Data-Driven Physics-Based Digital Twins via a Library of Component-Based Reduced-Order Models10.1002/nme.6423 ↗
19. Data-Driven Physics-Informed Neural Networks: A Digital Twin Perspective10.1016/j.cma.2024.117075 ↗
20. Artificial Neural Network-Based Digital Twin for a Flat Plate Solar Collector Field10.1016/j.engappai.2024.108387 ↗
21. Jessie, B., Fahimi, B., and Balsara, P. (2024, January 19–21). Development of Adaptive Digital Twin for DC-DC Converters Using Artificial Neural Networks. Proceedings of the 2024 IEEE Transportation Electrification Conference and Expo, ITEC 2024, Chicago, IL, USA.10.1109/ITEC60657.2024.10599091 ↗
22. Deep Convolutional Neural Network Object Net Model Based Cognitive Digital Twin for Trust in Human–Robot Collaborative Manufacturing
23. Multi-Fidelity Neural Optimization Machine for Digital Twins10.1007/s00158-022-03443-2 ↗
24. Hybrid Digital Twins: A Primer on Combining Physics-Based and Data Analytics Approaches10.1109/MS.2021.3134042 ↗
25. Cáceres, M., Avila, C., and Rivera, E. (2024). Thermodynamics-Informed Neural Networks for the Design of Solar Collectors: An Application on Water Heating in the Highland Areas of the Andes. Energies, 17.10.3390/en17194978 ↗
26. Holt, S., Liu, T., and van der Schaar, M. (2024). Automatically Learning Hybrid Digital Twins of Dynamical Systems. arXiv.
27. Solar Photovoltaic Power Prediction Using Artificial Neural Network and Multiple Regression Considering Ambient and Operating Conditions10.1016/j.enconman.2023.117186 ↗
28. Review of Deep Learning Algorithms and Architectures10.1109/ACCESS.2019.2912200 ↗
29. Digital Twin Empowered PV Power Prediction10.35833/MPCE.2023.000351 ↗
30. Walters, M., and Venayagamoorthy, G.K. (2024, January 5–8). Digital Twin for Solar Photovoltaic Power Estimations Based on an Ensemble of Recurrent Neural Networks. Proceedings of the 2024 IEEE 19th Conference on Industrial Electronics and Applications, ICIEA 2024, Kristiansand, Norway.10.1109/ICIEA61579.2024.10665014 ↗
31. The Impact of Photovoltaic Self-Consumption on the Daily Electricity Demand in Spain: Definition of a Model to Estimate It10.1016/j.heliyon.2024.e32581 ↗
32. Walters, M., Yonce, J., and Venayagamoorthy, G.K. (2023, January 5–8). Data-Driven Digital Twins for Power Estimations of a Solar Photovoltaic Plant. Proceedings of the 2023 IEEE Symposium Series on Computational Intelligence, SSCI 2023, Mexico City, Mexico.10.1109/SSCI52147.2023.10371834 ↗
33. Yonce, J., Walters, M., and Venayagamoorthy, G.K. (2023, January 15–17). Short-Term Prediction of Solar Photovoltaic Power Generation Using a Digital Twin. Proceedings of the 2023 North American Power Symposium (NAPS), Asheville, NC, USA.10.1109/NAPS58826.2023.10318632 ↗
34. Bazakas, C., Kothona, D., Panapakidis, I.P., and Christoforidis, G.C. (2022, January 7–9). Digital Twin Modeling for Photovoltaic Systems Based on Deep Learning. Proceedings of the 13th Mediterranean Conference on Power Generation, Transmission, Distribution and Energy Conversion (MEDPOWER 2022), Valletta, Malta.10.1049/icp.2022.3313 ↗
35. Failure Analysis of Photovoltaic Strings by Constructing a Digital Multi-Twin Integrating Theory, Features, and Vision10.1016/j.engfailanal.2024.108980 ↗
36. Pierce, B.G., Wieser, R.J., Ciardi, T.G., Yao, A.D., French, R.H., Bruckman, L.S., and Li, M. (2024, January 9–14). Comparison of Empirical and Data Driven Digital Twins for a PV+Battery Fleet. Proceedings of the 2024 IEEE 52nd Photovoltaic Specialist Conference (PVSC), Seattle, WA, USA.10.1109/PVSC57443.2024.10749422 ↗
37. Andrade, C.H.T., Vieira, T.F., Araújo, Í.B.Q., Melo, G.C.G., Barboza, E.d.A., Brito, D.B., and Torres, I.C. (2021). Comparing Neural Network Models for Photovoltaic Power Generation Prediction. Congr. Bras. De Inteligência Comput., 1–8.10.21528/CBIC2021-110 ↗
38. Performance Evaluation of Solar Photovoltaic/Thermal System Performance: An Experimental and Artificial Neural Network Approach10.1016/j.csite.2024.104860 ↗
39. de Andrade, C.H.T., de Melo, G.C.G., Vieira, T.F., de Araújo, Í.B.Q., Martins, A.d.M., Torres, I.C., Brito, D.B., and Santos, A.K.X. (2023). How Does Neural Network Model Capacity Affect Photovoltaic Power Prediction? A Study Case. Sensors, 23.10.3390/s23031357 ↗
40. Lazcano, A., Jaramillo-Morán, M.A., and Sandubete, J.E. (2024). Back to Basics: The Power of the Multilayer Perceptron in Financial Time Series Forecasting. Mathematics, 12.10.3390/math12121920 ↗
41. Improved Multistep Ahead Photovoltaic Power Prediction Model Based on LSTM and Self-Attention with Weather Forecast Data10.1016/j.apenergy.2024.122709 ↗
42. Artificial Neural Networks for Photovoltaic Power Forecasting: A Review of Five Promising Models10.1109/ACCESS.2024.3420693 ↗
43. Toward Smart-Building Digital Twins: BIM and IoT Data Integration10.1109/ACCESS.2022.3229370 ↗
44. Digital Twin with Machine Learning for Predictive Monitoring of CO2 Equivalent from Existing Buildings10.1016/j.enbuild.2023.112851 ↗
45. Multivariate Time Series Prediction by RNN Architectures for Energy Consumption Forecasting10.1016/j.egyr.2022.07.139 ↗
46. Das, A., Kolvig-Raun, E.S., and Kjærgaard, M.B. (2020, January 12–17). Accurate Trajectory Prediction in a Smart Building Using Recurrent Neural Networks. Proceedings of the UbiComp/ISWC 2020 Adjunct—Proceedings of the 2020 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2020 ACM International Symposium on Wearable Computers, Virtual Event.10.1145/3410530.3414319 ↗
47. From BIM to Digital Twins: A Systematic Review of the Evolution of Intelligent Building Representations in the AEC-FM Industry
48. Khaled, N., Pattel, B., and Siddiqui, A. (2020). Digital Twin Model Creation of Solar Panels. Digital Twin Development and Deployment on the Cloud, Academic Press.10.1016/B978-0-12-821631-6.00006-2 ↗
49. Validación Del Modelo Matemático de Un Panel Solar Empleando La Herramienta Simulink de Matlab10.19053/20278306.v8.n2.2018.7972 ↗
50. The Value of Using Seasonality and Meteorological Variables to Model Intra-Urban PM2.5 Variation10.1016/j.atmosenv.2018.03.007 ↗
51. Mukisa, N. (2019, January 19–23). Analysis of Solar Cell Temperature Models Used in Solar Photovoltaic Softwares. Proceedings of the 2019 IEEE PES GTD Grand International Conference and Exposition Asia (GTD Asia), Bangkok, Thailand.10.1109/GTDAsia.2019.8715916 ↗
52. Module Temperature Models Assessment of Photovoltaic Seasonal Energy Yield
53. Short-Term Photovoltaic Power Forecasting Based on Signal Decomposition and Machine Learning Optimization10.1016/j.enconman.2022.115944 ↗
54. A Digital Twin Approach for Fault Diagnosis in Distributed Photovoltaic Systems10.1109/TPEL.2019.2911594 ↗
55. An Improved Matlab-Simulink Model of Pv Module Considering Ambient Conditions10.1155/2014/315893 ↗
56. (2024, November 13). JA Solar Datasheet JAM72S20 445/470 MR. Available online: https://cdn.enfsolar.com/z/pp/2023/5/hta54g2cmi1599/JAM72S20-MR.pdf.
57. (2025, June 26). Ministry of Science and Technology BOE-A-2002-18099-Consolidated. State Agency Boletín Oficial del Estado. Available online: https://www.boe.es/eli/es/rd/2002/08/02/842/con.
58. Bishop, C.M. (1995). Neural Networks for Pattern Recognition, Oxford University Press.10.1093/oso/9780198538493.001.0001 ↗
59. Multilayer Feedforward Networks Are Universal Approximators10.1016/0893-6080(89)90020-8 ↗
60. Learning to Forget: Continual Prediction with LSTM10.1162/089976600300015015 ↗
61. Chung, J., Gulcehre, C., Cho, K., and Bengio, Y. (2014). Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv.
62. Jung, S., Moon, J., Park, S., and Hwang, E. (2021). An Attention-Based Multilayer Gru Model for Multistep-Ahead Short-Term Load Forecasting. Sensors, 21.10.3390/s21051639 ↗