To address the frequent faults in distributed photovoltaic (PV) arrays and the limitations of traditional random forest (RF) methods in diagnostic accuracy and generalization capability, this paper proposes a fault diagnosis method based on RF that integrates multi-feature optimization and dynamic out-of-bag (OOB) error optimization. First, a PV array simulation model is constructed in MATLAB/Simulink based on the single-diode equivalent circuit of a PV cell. The model simulates five typical fault types, including short circuit, open circuit, partial shading, aging degradation, and bypass diode failure, and extracts multi-dimensional fault features covering voltage, current, and power etc. Furthermore, the OOB error is introduced as a dynamic evaluation metric during model training to monitor and optimize the ensemble strategy of base learners in real time, thereby improving convergence performance and generalization capability. Simultaneously, a two-stage multi-feature optimization strategy—“permutation importance preliminary screening + principal component analysis secondary dimensionality reduction”—is adopted to screen the most critical fault feature subset from the original high-dimensional features, enhancing model robustness. Experimental results demonstrate that the proposed OOB-RF model achieves a fault diagnosis accuracy of 95.44% on the test set, which is 8.12 percentage points higher than that of the traditional RF model, while the overfitting index is significantly reduced by 51.26%. The proposed method exhibits superior classification accuracy and stability, providing an effective solution for the intelligent operation and maintenance of distributed PV systems.
Publications
- Article type
- Year
Year
Open Access
Issue
Distributed Energy 2026, 11(5): 120-128
Published: 25 October 2026
Downloads:0
Total 1
京公网安备11010802044758号