Abstract:To improve the accuracy of photovoltaic power output forecasting under variable weather conditions, a hybrid prediction approach integrating DBSCAN, Kmeans, physics-informed neural networks (PINN), and InformerStack is proposed. Abnormal samples are first detected and separated by DBSCAN, and meteorological data are divided into extreme weather and regular weather categories. Subsequently, Kmeans clustering combined with physical thresholds is applied to further refine the classification of regular weather conditions. Based on the relationship between meteorological features and photovoltaic output under different weather categories, appropriate input feature sets are selected. Furthermore, the advantages of PINN in embedding physical constraints are combined with the capability of InformerStack in long-sequence modeling to fully exploit the influence of meteorological factors on photovoltaic output. Comparative experiments on measured data demonstrate that the proposed method significantly outperforms traditional models in prediction accuracy under variable weather scenarios. The research results show that the root mean square error is reduced from 0.248 63 with the Informer model to 0.119 26 using the proposed method. It is concluded that the integrated framework combining clustering techniques, physics informed constraints, and deep temporal modeling can effectively enhance the robustness and reliability of photovoltaic power output forecasting.