In the detection of insulator defects on transmission lines, the detection precision is still not ideal, primarily attributed to the significant variation in target scale and complex image backgrounds. We propose the multiscale channel information (MCI)-global-local attention (GLA), a plug-in designed for YOLO series models, featuring two modules: the MCI extraction module and the GLA based on context information module (GLA-CI). MCI comprehensively extracts and utilizes multiscale feature map information, while GLA-CI captures both global context information and local spatial details, thereby augmenting the learning capability of networks. Experimental results indicate that the MCI-GLA plug-in improves the average precision (AP) of YOLOv4 to YOLOv8 models in detecting insulator breakage defects by 7.3%, 4.6%, 4.5%, 4.0%, and 5.3%, respectively. In particular, YOLOv7+MCI-GLA exhibits superior precision and inference time compared to other methods on self-constructed and public datasets. The code for this article can be found at https://github.com/falian0527/MCI-GLA .
The zero-shot image classification (ZSIC) is designed to solve the classification problem when the sample is very small, or the category is missing. A common method is to use attribute or word vectors as a priori category features (auxiliary information) and complete the domain transfer from training of seen classes to recognition of unseen classes by building a mapping between image features and a priori category features. However, feature extraction of the whole image lacks discrimination, and the amount of information of single attribute features or word vector features of categories is insufficient, which makes the matching degree between image features and prior class features not high and affects the accuracy of the ZSIC model. To this end, a spatial attention mechanism is designed, and an image feature extraction module based on this attention mechanism is constructed to screen critical features with discrimination. A semantic information fusion method based on matrix decomposition is proposed, which first decomposes the attribute features and then fuses them with the extracted word vector features of a dataset to achieve information expansion. Through the above two improvement measures, the classification accuracy of the ZSIC model for unseen images is improved. The experimental results on public datasets verify the effect and superiority of the proposed methods.