The application provides a
smart meter visual fault detection method and
system based on multi-task routing and memory retrieval, which comprises: after normalizing and preprocessing a
smart meter image, the image is input into a two-stage
backbone network to extract features. In the
base class training stage, the feature map generates a to-be-detected region feature through a
region proposal network, and the region feature is sent into a multi-task dynamic routing module to adaptively decouple regression and classification task features; the classification features are input into a visual prototype memory regularization module to construct a
memory bank, and the two types of features are jointly input into a task head to output a prediction and calculate a loss. In the new class fine-tuning stage, the task features are extracted through the multi-task dynamic routing; the classification features pass through a visual prototype semantic refinement module to calculate an attention weight, and weighted classification features are obtained, which are input into the task head together with the regression features to output a prediction, calculate a loss, and iteratively optimize the model. Finally, the to-be-detected meter image is input into the trained model to realize fault category detection.