IoT-Enabled Machine Learning Framework for Real-Time Fault Diagnosis and Performance Optimization in Distributed Solar Photovoltaic Systems

Authors

  • O. A. Omisore Department of Electrical and Information Engineering, Landmark University, Omu-Aran, Kwara State, Nigeria Author
  • M. A. Adams Department of Agricultural and Environmental Engineering, Federal University of Technology Akure, Ondo State, Nigeria Author

DOI:

https://doi.org/10.68050/JAMS.2026.1094

Keywords:

solar photovoltaics, fault diagnosis, machine learning, Internet of Things, edge computing, predictive maintenance

Abstract

Photovoltaic (PV) systems lose energy and can create safety hazards when faults such as soiling, partial shading, short circuits and open circuits go undetected, and fixed-threshold monitoring cannot reliably separate these faults from weather-driven variation in output. This study presents an Internet of Things (IoT)-enabled machine learning framework for real-time fault detection and classification in distributed PV installations. A 2.4 kWp monocrystalline testbed (eight 300 W modules in two parallel strings of four) was instrumented with INA219 current and voltage monitors, DS18B20 module-temperature probes and a pyranometer, all read by an ESP32 edge node that transmits data to a cloud time-series database over MQTT. Readings sampled at 1 Hz were aggregated into one-minute values and converted into four diagnostic features, namely the temperature-compensated power, a normalized efficiency index, the fill factor and a fault deviation index, which reference every measurement to standard test conditions. A dataset of 45,000 non-overlapping one-minute records covering five operating states (normal operation, soiling, partial shading, line short circuit, and open circuit or string disconnection) was collected over six months (April 1 – September 30, 2026) at a tropical savanna microgrid testbed and split chronologically into a training set (36,000 records; April 1 – August 18, 2026) and a held-out test set (9,000 records; August 23 – September 30, 2026) separated by a four-day temporal buffer gap. Extreme Gradient Boosting (XGBoost), random forest, support vector machine and artificial neural network classifiers were compared with a conventional threshold-based detector. XGBoost performed best, achieving 98.92% accuracy, 97.84% macro-precision, 97.64% macro-recall, a 97.74% macro-F1 score, and a 0.9996 macro ROC-AUC, against 94.73% accuracy for the threshold detector. Feature extraction and inference on the ESP32 took less than 1.2 s per sampling interval. In field testing the framework reduced mean time to repair by 68%, and a 14.2% increase in annual energy yield is projected. The results indicate that low-cost edge hardware can provide accurate and timely fault diagnosis for distributed PV assets.

Views: 57Downloads: 7

References

1. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32.

https://doi.org/10.1023/A:1010933404324

2. Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794). ACM. https://doi.org/10.1145/2939672.2939785

3. Chen, Z., Han, F., Wu, L., Yu, J., Cheng, S., Lin, P., & Chen, H. (2018). Random forest based intelligent fault diagnosis for PV arrays using array voltage and string currents. Energy Conversion and Management, 178, 250–264.

4. Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273–297. https://doi.org/10.1007/BF00994018

5. International Electrotechnical Commission. (2019). Photovoltaic devices – Part 3: Measurement principles for terrestrial photovoltaic (PV) solar devices with reference spectral irradiance data (IEC 60904-3:2019). IEC.

6. Ilse, K., Micheli, L., Figgis, B. W., Lange, K., Daßler, D., Hanifi, H., Wolfertstetter, F., Naumann, V., Hagendorf, C., Gottschalg, R., & Bagdahn, J. (2019). Techno-economic assessment of soiling losses and mitigation strategies for solar power generation. Joule, 3(10), 2303–2321.

https://doi.org/10.1016/j.joule.2019.08.019

7. Islam, M., Rashel, M. R., Ahmed, M. T., Islam, A. K. M. K., & Tlemçani, M. (2023). Artificial intelligence in photovoltaic fault identification and diagnosis: A systematic review. Energies, 16(21), 7417. https://doi.org/10.3390/en16217417

8. Khandeparkar, V., & Ramu, S. K. (2025). Effectiveness of supervised machine learning models for electrical fault detection in solar PV systems. Scientific Reports, 15, 34919.

https://doi.org/10.1038/s41598-025-18802-4

9. King, D. L., Boyson, W. E., & Kratochvil, J. A. (2004). Photovoltaic array performance model (Report No. SAND2004-3535). Sandia National Laboratories. https://doi.org/10.2172/919131

10. Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations (ICLR 2015). https://arxiv.org/abs/1412.6980

11. Madeti, S. R., & Singh, S. N. (2017). Monitoring system for photovoltaic plants: A review. Renewable and Sustainable Energy Reviews, 67, 1180–1207. https://doi.org/10.1016/j.rser.2016.09.088

12. Mellit, A., Benghanem, M., Kalogirou, S., & Massi Pavan, A. (2023). An embedded system for remote monitoring and fault diagnosis of photovoltaic arrays using machine learning and the internet of things. Renewable Energy, 208, 399–408. https://doi.org/10.1016/j.renene.2023.03.096

13. Mellit, A., & Kalogirou, S. (2021). Artificial intelligence and internet of things to improve efficacy of diagnosis and remote sensing of solar photovoltaic systems: Challenges, recommendations and future directions. Renewable and Sustainable Energy Reviews, 143, Article 110889.

https://doi.org/10.1016/j.rser.2021.110889

14. Mellit, A., & Kalogirou, S. (2022). Assessment of machine learning and ensemble methods for fault diagnosis of photovoltaic systems. Renewable Energy, 184, 1074–1090.

https://doi.org/10.1016/j.renene.2021.11.125

15. Mellit, A., Tina, G. M., & Kalogirou, S. A. (2018). Fault detection and diagnosis methods for photovoltaic systems: A review. Renewable and Sustainable Energy Reviews, 91, 1–17.

https://doi.org/10.1016/j.rser.2018.03.062

16. OASIS. (2014). MQTT version 3.1.1 (OASIS Standard).

http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html

17. Pillai, D. S., & Rajasekar, N. (2018). A comprehensive review on protection challenges and fault diagnosis in PV systems. Renewable and Sustainable Energy Reviews, 91, 18–40.

https://doi.org/10.1016/j.rser.2018.03.082

18. Snoek, J., Larochelle, H., & Adams, R. P. (2012). Practical Bayesian optimization of machine learning algorithms. In Advances in Neural Information Processing Systems 25 (pp. 2951–2959).

Curran Associates.

19. Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437.

https://doi.org/10.1016/j.ipm.2009.03.002

20. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. (2014). Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(56), 1929–1958.

21. Tsanakas, J. A., Ha, L., & Buerhop, C. (2016). Faults and infrared thermographic diagnosis in operating c-Si photovoltaic modules: A review of research and future challenges. Renewable and Sustainable Energy Reviews, 62, 695–709. https://doi.org/10.1016/j.rser.2016.04.079

22. Yang, N.-C., & Ismail, H. (2022). Voting-based ensemble learning algorithm for fault detection in photovoltaic systems under different weather conditions. Mathematics, 10(2), 285.

https://doi.org/10.3390/math10020285

23. Zhao, Y., Ball, R., Mosesian, J., de Palma, J.-F., & Lehman, B. (2015). Graph-based semi-supervised learning for fault detection and classification in solar photovoltaic arrays. IEEE Transactions on Power Electronics, 30(5), 2848–2858. https://doi.org/10.1109/TPEL.2014.2364203

Downloads

Published

2026-12-02

Issue

Section

JAMS - Volume 1, Issue 4 (November 2026)

How to Cite

IoT-Enabled Machine Learning Framework for Real-Time Fault Diagnosis and Performance Optimization in Distributed Solar Photovoltaic Systems (O. A. Omisore & M. A. Adams, Trans.). (2026). Journal of Advanced Multidisciplinary Studies (JAMS), 1(IV), Page 1722-1734. https://doi.org/10.68050/JAMS.2026.1094

Similar Articles

41-50 of 161

You may also start an advanced similarity search for this article.