This paper designs a device for analyzing and identifying electrical appliances. In this system, STM32F103 single chip microcomputer is used as the main control chip, and HT7038 as the core electric quantity detection device. Connect HT7038 with current transformer and voltage transformer to analyze and calculate circuit parameters such as voltage, current and power, so as to determine the types of electrical appliances connected to the circuit. Kalman filter algorithm and KNN algorithm are used to eliminate the noise of voltage and current and improve the accuracy of identification. The test shows that the system can accurately measure the current and active power characteristic parameters of large and small current electrical appliances, identify the working state of electrical appliances, and display the data on the screen in real time. The system has a wide measuring range, high learning ability and recognition ability, fast response speed and high accuracy.