In this paper, based on the high-frequency monitoring of current in the circuit via smart sockets and electrical situation data of the customer obtained, the current transition sequence and the univariate regression model for the feature of the current transition sequence are proposed. Based on the ε-fragment for the current steady sequence and fragment for the current stable sequence, a mining method for current transition sequence discovery is designed. And further, a univariate regression model is proposed to describe each current transition sequence. And with the univariate regression model, each current transition sequence in variable length is mapped into the feature space for the current transition sequence with fixed dimension. Furthermore, a microenvironment-based particle swarm optimization (MPSO) algorithm is given to optimize the univariate regression features for the current transition sequences. The experimental results show that using the current transition sequence features proposed in this paper for electrical device state recognition can achieve an average accuracy of 97.93%. Compared with the PSO algorithm and CAPSO algorithm, the MPSO algorithm used in this paper achieves the same accuracy with fewer particles and significantly reduces usage time.