This study focuses on analyzing common fault types in photovoltaic (PV) modules, employing fault diagnosis methods based on machine learning technology to enhance the accuracy and efficiency of diagnosing faults in solar power systems. Initially, we collected relevant data from the solar power system and used data analysis techniques to identify system faults, designing a human-machine monitoring interface for practical application. Furthermore, the experimental results proved that the system could accurately identify eight major types of faults, including solar panel output circuits, energy storage batteries, maximum power point tracking (MPPT) controllers, inverters, dust accumulation, loosening of mounting rack screws, damage to the mounting rack foundation, and deformation of the mounting rack structure. Particularly in the detection of dust accumulation, we developed a new method of estimating power generation from multiple regression analysis (MRA), which closely aligns the estimated power output with the actual power output, highlighting the significant impact of dust accumulation on the efficiency of solar power systems. Next, by integrating voltmeters and support vector machines (SVM) into the solar PV array modules, we are able to quickly and accurately measure and locate short-circuit and open-circuit faults in bypass diodes. Ultimately, the proposed PV fault diagnosis strategy includes diagnostics for dust accumulation and mounting frame faults, making it particularly suitable for areas with severe air pollution and frequent earthquakes, providing a comprehensive fault diagnosis solution.