Feature-Normalized k-Nearest Neighbor Classification for Real-Time Photovoltaic Maintenance Monitoring

DOI: https://doi.org/10.33650/jeecom.v8i2.16749
Authors

(1) * Novan Akhiriyanto   (Polytehnic of Energy and Mineral Akamigas)  
        Indonesia
(2)  Arie Susilo   (Polytechnic of Energy and Mineral Akamigas)  
        Indonesia
(3)  Wasis Waskito Adi   (Polytechnic of Energy and Mineral Akamigas)  
        Indonesia
(*) Corresponding Author

Abstract


Photovoltaic (PV) module performance is significantly affected by environmental factors, particularly solar irradiation, panel surface temperature, and soiling, requiring a monitoring and maintenance system responsive to varying PV operating conditions. This study proposes a maintenance condition classification system integrating real time sensor measurement with a feature-normalized k-Nearest Neighbor (k-NN) algorithm to identify four panel conditions (Neglected, PV Normal, Dusty PV, and Hot PV) requiring specific maintenance intervention. The methodological contribution comprises three aspects: an explicit labeling procedure with thresholds derived from empirical analysis of 250 field samples, avoiding circularity between label determination and classification features; a Min-Max normalization scheme ensuring each feature contributes proportionally to the Euclidean distance calculation in k-NN; and stratified 10-fold cross validation providing an unbiased estimate of generalization performance while revealing overfitting risks otherwise hidden in a simple train-test split. Experimental results show that the k=3 configuration achieves 95.2% ± 2.99% accuracy with superior consistency, balancing high accuracy and stability for deployment on power constrained microcontrollers such as the ESP32. The system integrates a Nextion graphical interface for real-time monitoring and condition notification, providing a platform for condition based maintenance decision making in community scale and industrial photovoltaic installations.


Keywords

PV module performance, k-NN algorithm, Min-Max normalization, cross validation, condition based maintenance



Full Text: PDF



References


A. M. Alatwi, H. Albalawi, A. Wadood, H. Anwar, and H. M. El-hageen, “Deep Learning-Based Dust Detection on Solar Panels : A Low-Cost Sustainable Solution for Increased Solar Power Generation,” sustainability, vol. 16, no. 19, pp. 1–16, 2024, doi: https://doi.org/10.3390/su16198664.

W. Priharti, A. F. K. Rosmawati, and I. P. D. Wibawa, “IoT based photovoltaic monitoring system application,” Int. Conf. Eng. Technol. Innov. Res., vol. 1367, pp. 1–10, 2019, doi: 10.1088/1742-6596/1367/1/012069.

A. Mellit, G. M. Tina, and S. A. Kalogirou, “Fault detection and diagnosis methods for photovoltaic systems : A review,” Renew. Sustain. Energy Rev., vol. 91, no. February 2017, pp. 1–17, 2018, doi: 10.1016/j.rser.2018.03.062.

M. M. Rahman, J. Selvaraj, N. A. Rahim, and M. Hasanuzzaman, “Global modern monitoring systems for PV based power generation : A review,” Renew. Sustain. Energy Rev., no. November 2016, pp. 1–17, 2017, doi: 10.1016/j.rser.2017.10.111.

P. Cunningham and S. J. Delany, “k-Nearest Neighbour Classifiers - A Tutorial,” ACM Comput. Surv., vol. 54, no. 6, 2021, doi: https://doi.org/10.1145/3459665.

R. K. Halder, M. N. Uddin, A. Uddin, and S. Aryal, “Enhancing k‑Nearest Neighbor algorithm : a comprehensive review and performance analysis of modifications,” J. Big Data, vol. 11, no. 113, 2024, doi: 10.1186/s40537-024-00973-y.

D. Panwar, S. S. Mishra, A. Kumar, and A. Soni, “A Review of Machine Learning in Photovoltaic System Fabrication and Implementation,” 2024 7th Int. Conf. Contemp. Comput. Informatics, vol. 7, pp. 754–759, 2024, doi: 10.1109/IC3I61595.2024.10828669.

X. Wu, C. Yang, W. Han, and Z. Pan, “Integrated design of solar photovoltaic power generation technology and building construction based on the Internet of Things,” Alexandria Eng. J., vol. 61, no. 4, pp. 2775–2786, 2022, doi: 10.1016/j.aej.2021.08.003.

V. Tran, B. Thai, H. Pham, V. Nguyen, and V. Nguyen, “A Proposed Approach to Utilizing Esp32 Microcontroller for Data Acquisition,” J. Eng. Technol. Sci., vol. 56, no. 4, pp. 474–488, 2024, doi: 10.5614/j.eng.technol.sci.2024.56.4.4.

K. Maharana, S. Mondal, and B. Nemade, “A review : Data pre-processing and data augmentation techniques,” Glob. Transitions Proc., vol. 3, no. 1, pp. 91–99, 2022, doi: 10.1016/j.gltp.2022.04.020.

M. Ahsan, M. A. P. Mahmud, P. K. Saha, K. D. Gupta, and Z. Siddique, “Effect of Data Scaling Methods on Machine Learning Algorithms and Model Performance,” technologies, pp. 5–9, 2021.

R. Kohavi and S. Edu, “A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection,” Proc. 14th IJCAI, vol. 2, pp. 1137–1143, 1995.

M. Kim and K. Hwang, “An empirical evaluation of sampling methods for the classification of imbalanced data,” PLoS One, vol. 17, no. 7, pp. 1–22, 2022, doi: 10.1371/journal.pone.0271260.

A. Tharwat, “Classification assessment methods,” Appl. Comput. Informatics, vol. 17, no. 1, pp. 168–192, 2021, doi: 10.1016/j.aci.2018.08.003.

U. Naeem, K. Chadda, S. Vahaji, J. Ahmad, X. Li, and E. Asadi, “Aerial Imaging-Based Soiling Detection System for Solar Photovoltaic Panel Cleanliness Inspection,” sensors, vol. 25, no. 738, pp. 1–24, 2025, doi: https://doi.org/10.3390/s25030738.

C. Sun, Y. Zou, C. Qin, B. Zhang, and X. Wu, “Temperature effect of photovoltaic cells : a review,” Adv. Compos. Hybrid Mater., vol. 5, pp. 2675–2699, 2022, doi: 10.1007/s42114-022-00533-z.

T. N. Olayiwola and S. Hyun, “Photovoltaic Modeling : A Comprehensive Analysis of the I – V Characteristic Curve,” sustainability, vol. 16, no. 1, pp. 1–27, 2024, doi: https://doi.org/10.3390/su16010432.

L. E. O. Breiman, “Random Forests,” Mach. Learn., vol. 45, pp. 5–32, 2001, doi: https://doi.org/10.1023/A:1010933404324.

R. M. Elavarasan, G. M. Shafiullah, and S. Padmanaban, “A Comprehensive Review on Renewable Energy Development , Challenges and Policies of leading Indian States with an International Perspective,” IEEE Access, pp. 1–27, 2017, doi: 10.1109/ACCESS.2020.2988011.

M. Shafique, M. Naseer, and C. Kyrkou, “Robust Machine Learning Systems : Challenges , Current Trends , Perspectives , and the Road Ahead,” IEEE Des. Test, vol. 37, no. 2, pp. 30–57, 2020, doi: https://doi.org/10.1109/MDAT.2020.2971217.


Dimensions, PlumX, and Google Scholar Metrics

10.33650/jeecom.v8i2.16749


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Novan Akhiriyanto, Arie Susilo, Wasis Waskito Adi

 
This work is licensed under a Creative Commons Attribution License (CC BY-SA 4.0)

Journal of Electrical Engineering and Computer (JEECOM)
Published by LP3M Nurul Jadid University, Indonesia, Probolinggo, East Java, Indonesia.