The study builds a digital twin infrastructure for electrical assembly line equipment that includes data collection, transmission and management. Facing multiple sources of data such as electrical quantity and equipment status, data characterization is used for unification. On this basis, two sets of AI diagnosis schemes are introduced. On the one hand, the ID3 decision tree algorithm is utilized to mine interpretable diagnostic rules from historical fault attribute data to achieve fast initial diagnosis. On the other hand, a deep learning model based on bi-directional Long Short-Term Memory Network (LSTM-Bi-RNN) is constructed for the temporal data with backward and forward dependency of equipment operation to realize more accurate predictive diagnosis. The decision tree model constructed based on 9 types of faults and 12-dimensional attributes generates 9 corresponding inference rules, such as heavy gas + three-phase DC resistance imbalance + high no-load loss → disconnection, light gas + chromatographic high-energy discharge + high oil temperature → joint open weld. The LSTM-Bi-RNN model achieves fast convergence in about 300 iterations, and the recognition accuracy reaches about 92%. The diagnostic F1 breaks through 95% in the test of multiple types of timing data such as voltage and current, and the running rate reaches 14.62s for 5000 current data, leading RNN, BiRNN, and comparative models such as VGG and ResNet. Dynamically mapping the physical state of equipment through digital twins and then handing it over to the fusion AI model for analysis is an effective way that can improve the automation of operation and maintenance decisions.