CN113095331A - Visual question answering method, system and equipment for appearance defects of electric equipment and storage medium thereof - Google Patents
Visual question answering method, system and equipment for appearance defects of electric equipment and storage medium thereof Download PDFInfo
- Publication number
- CN113095331A CN113095331A CN202110436318.4A CN202110436318A CN113095331A CN 113095331 A CN113095331 A CN 113095331A CN 202110436318 A CN202110436318 A CN 202110436318A CN 113095331 A CN113095331 A CN 113095331A
- Authority
- CN
- China
- Prior art keywords
- image
- features
- visual question
- sentence
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/32—Normalisation of the pattern dimensions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/46—Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
- G06V10/462—Salient features, e.g. scale invariant feature transforms [SIFT]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Analysis (AREA)
Abstract
本发明提供一种电力设备外观缺陷的视觉问答方法,包括步骤:获取电力设备外观缺陷的图像,并对所述图像进行预处理;对处理后的所述图像进行特征提取,得到图像特征;根据所述图像,获取与所述图像相关的问题信息,并对所述问题信息进行特征提取,得到文本特征;基于双线性池化网络,将所述图像特征与所述文本特征进行融合,得到多模态特征;建立视觉问答模型并对其进行训练,得到训练后的所述视觉问答模型;将所述多模态特征输入训练后的所述视觉问答模型中,以得到视觉问答结果。本发明提供的一种电力设备外观缺陷的视觉问答方法,能通过图像对电力设备的外观缺陷进行筛选和评估,从而能够实时监控电力设备的运行状态。
The invention provides a visual question and answer method for appearance defects of electric equipment, comprising the steps of: acquiring an image of appearance defects of electric equipment, and preprocessing the image; extracting features from the processed image to obtain image features; For the image, obtain the problem information related to the image, and perform feature extraction on the problem information to obtain text features; based on the bilinear pooling network, the image features and the text features are fused to obtain Multimodal features; establishing and training a visual question answering model to obtain the trained visual question answering model; inputting the multimodal features into the trained visual question answering model to obtain a visual question answering result. The present invention provides a visual question and answer method for appearance defects of electric equipment, which can screen and evaluate appearance defects of electric equipment through images, so that the running state of electric equipment can be monitored in real time.
Description
技术领域technical field
本发明涉及视觉问答技术领域,尤其涉及一种电力设备外观缺陷的视觉问答方法、系统、设备及其存储介质。The present invention relates to the technical field of visual question and answer, in particular to a visual question and answer method, system, device and storage medium for appearance defects of electric equipment.
背景技术Background technique
近年来,伴随着我国工业、科技产业规模的不断扩大和城市范围的不断扩张,民用、商用与军用电力能源需求与日俱增,我国的电网规模为满足日益增长的需求也在不断升级和扩充。目前,我国的设备覆盖范围非常大,各种变电设备的数量也是巨大的,如电力站、导线、杆塔等数量大量增加,而且分布范围广、距离远。如此长的输电线路几乎完全处于室外环境,非常容易受到恶劣天气、动植物入侵以及漂浮物等因素的影响,而导致设备出现故障、老化、破损等现象。一方面需要有经验的运维人员来进行缺陷识别,另一方面单纯依赖人工,难以做到实时地或预防性地获取设备的缺陷状况。同时还需要花费巨大的人力成本和维护费用,对前线工人的生命安全也存在威胁。因此,为提高无人值守或少人值守电力站人员和设备的安全性,需要实时监控变电设备的运行状态及故障隐患。In recent years, with the continuous expansion of the scale of my country's industrial and technological industries and the continuous expansion of urban areas, the demand for civil, commercial and military power energy is increasing day by day, and the scale of my country's power grid is also constantly upgrading and expanding to meet the growing demand. At present, my country's equipment coverage is very large, and the number of various substation equipment is also huge, such as power stations, wires, towers, etc. Such a long transmission line is almost completely in an outdoor environment, and is very vulnerable to factors such as bad weather, animal and plant invasion, and floating objects, which can lead to equipment failure, aging, and damage. On the one hand, experienced operation and maintenance personnel are needed to identify defects, and on the other hand, it is difficult to obtain the defect status of equipment in real time or preventively by relying solely on manual labor. At the same time, it also requires huge labor costs and maintenance costs, and there is also a threat to the life safety of frontline workers. Therefore, in order to improve the safety of personnel and equipment in unattended or less-attended power stations, it is necessary to monitor the operating status and hidden faults of substation equipment in real time.
随着电力站智能化程度的提升以及智能运检技术的逐步普及,开始出现利用图像识别、文本挖掘等人工智能技术辅助开展设备健康状态判断。目前,电力站运维人员通常采用照相机、摄像机等手持终端设备对站内主要电气设备进行图像采集;除此之外,大量的巡检机器人、分布式摄像头已经布置于电力站,负责图像的采集和现场的监控。视觉图像能够反映设备存在的缺陷问题,通常包括漏油、锈蚀、断路器开合及零部件损坏等。然而,目前电力设备外观缺陷还只是停留在感知智能的阶段,即计算机具备类似于人类的视觉和听觉等方面的能力,比如,听到了什么,对应语音识别;看到了什么,对应图像的分类检测和语义分割。但还未上升到认知智能阶段,即强调知识、推理等技能,要求机器能理解、会思考。认知智能,涉及语义理解、知识表达、联想推理、智能问答、自主学习等方面。它与人的语言、知识、逻辑相关,是人工智能的最高阶段,而作为认知智能应用之一的视觉问答在电力设备外观缺陷的研究几乎仍是空白。With the improvement of the intelligence of power stations and the gradual popularization of intelligent inspection technology, the use of artificial intelligence technologies such as image recognition and text mining to assist in judging the health status of equipment has begun to appear. At present, power station operation and maintenance personnel usually use hand-held terminal equipment such as cameras and video cameras to collect images of the main electrical equipment in the station; in addition, a large number of inspection robots and distributed cameras have been arranged in the power station, responsible for image collection and On-site monitoring. Visual images can reflect equipment defects, often including oil leaks, rust, circuit breakers, and damaged components. However, at present, the appearance defects of electrical equipment are still in the stage of perceptual intelligence, that is, the computer has the ability of vision and hearing similar to human beings, for example, what is heard, corresponding to speech recognition; what is seen, corresponding to the classification and detection of images and semantic segmentation. However, it has not yet risen to the stage of cognitive intelligence, that is, emphasizing knowledge, reasoning and other skills, requiring machines to understand and think. Cognitive intelligence involves semantic understanding, knowledge expression, associative reasoning, intelligent question answering, autonomous learning, etc. It is related to human language, knowledge, and logic, and is the highest stage of artificial intelligence. As one of cognitive intelligence applications, visual question answering is still almost blank in the research on appearance defects of electrical equipment.
VQA(视觉问答,Visual Question Answering)指的是,给定一张图片和一个与该图片相关的自然语言问题,计算机能产生一个正确的回答。显然,这是一个典型的多模态问题,融合了CV(计算机视觉,Computer Vision)与NLP(自然语言处理,Natural LanguageProcessing)的技术,计算机需要同时学会理解图像和文字。正因如此,直到相关技术取得突破式发展的2015年,VQA的概念才被正式提出。虽然视觉问答在近两年中获得了极大的发展,但仍然存在有两大问题。首先是训练数据的不足:现有的智能视觉问答数据集的数据规模虽然达到了100万左右,但与传统的图像分类、目标检测等任务相比仍具有巨大的差距;此外,智能视觉问答的模型参数往往数以千万级,小量的训练数据往往未能充分发挥模型的性能。另一个问题是机器提供的问题答案不具备解释性:由于深度学习模型的黑盒设计,导致机器的做出回答的理由与原因往往难以给出;使之涉及视觉问答在工业届中的推广与使用的相关研究还非常少。VQA (Visual Question Answering) means that given a picture and a natural language question related to the picture, the computer can generate a correct answer. Obviously, this is a typical multimodal problem that combines CV (Computer Vision, Computer Vision) and NLP (Natural Language Processing, Natural Language Processing) technologies, and computers need to learn to understand images and text at the same time. Because of this, the concept of VQA was not formally proposed until 2015, when related technologies achieved breakthrough development. Although visual question answering has been greatly developed in the past two years, there are still two major problems. The first is the lack of training data: although the data scale of the existing intelligent visual question answering dataset has reached about 1 million, it still has a huge gap compared with traditional tasks such as image classification and target detection; Model parameters are often in the tens of millions, and a small amount of training data often fails to give full play to the performance of the model. Another problem is that the answers provided by the machine are not explanatory: due to the black-box design of the deep learning model, the reasons and reasons for the machine's answer are often difficult to give; it involves the promotion of visual question answering in the industry and the There are very few related studies used.
因此,为了解决现有技术中大量人工操作导致的高误检和漏检、及传统巡检设备无法提供输电线路、输变电设备隐患的评估与分析的问题,本发明设计了一种电力设备外观缺陷的视觉问答方法、系统、设备及其存储介质。Therefore, in order to solve the problems of high false detection and missed detection caused by a large number of manual operations in the prior art, and the traditional inspection equipment cannot provide the evaluation and analysis of hidden dangers of power transmission lines and power transmission and transformation equipment, the present invention designs a power equipment. Visual question answering method, system, device and storage medium for appearance defect.
发明内容SUMMARY OF THE INVENTION
鉴于以上所述现有技术的缺点,本发明的目的在于提供一种电力设备外观缺陷的视觉问答方法、系统、设备及其存储介质,用于解决现有技术中大量人工操作导致的高误检和漏检、及传统巡检设备无法提供输电线路、输变电设备隐患的评估与分析的问题。In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a visual question and answer method, system, device and storage medium for the appearance defects of power equipment, which are used to solve the high false detection caused by a large number of manual operations in the prior art. and missed inspections, and traditional inspection equipment cannot provide assessment and analysis of hidden dangers of transmission lines and power transmission and transformation equipment.
为实现上述目的及其他相关目的,本发明提供了一种电力设备外观缺陷的视觉问答方法,包括步骤:In order to achieve the above-mentioned purpose and other related purposes, the present invention provides a visual question and answer method for appearance defects of electrical equipment, comprising the steps of:
获取电力设备外观缺陷的图像,并对所述图像进行预处理;acquiring an image of the appearance defect of the power equipment, and preprocessing the image;
对处理后的所述图像进行特征提取,得到图像特征;Perform feature extraction on the processed image to obtain image features;
根据所述图像,获取与所述图像相关的问题信息,并对所述问题信息进行特征提取,得到文本特征;According to the image, obtain problem information related to the image, and perform feature extraction on the problem information to obtain text features;
基于双线性池化网络,将所述图像特征与所述文本特征进行融合,得到多模态特征;Based on a bilinear pooling network, the image features and the text features are fused to obtain multimodal features;
建立视觉问答模型并对其进行训练,得到训练后的所述视觉问答模型;establishing a visual question answering model and training it to obtain the trained visual question answering model;
将所述多模态特征输入训练后的所述视觉问答模型中,以得到视觉问答结果。The multimodal feature is input into the trained visual question answering model to obtain a visual question answering result.
于本发明的一实施例中,所述对所述图像进行预处理包括步骤:In an embodiment of the present invention, the preprocessing of the image includes the steps of:
对所述图像进行筛选,以去除不包含检测对象的图像;screening the images to remove images that do not contain detection objects;
对筛选后的所述图像进行暗通道去雾和自适应伽玛校正处理,以提升所述图像的清晰度和对比度;Performing dark channel dehazing and adaptive gamma correction processing on the screened image to improve the clarity and contrast of the image;
对处理后的所述图像进行位置变换及色彩变换,以增强所述图像的信息;performing position transformation and color transformation on the processed image to enhance the information of the image;
对变换后的所述图像进行裁剪,使得所述图像的规格尺寸满足对所述图像进行特征提取时的规格尺寸要求;Cropping the transformed image so that the size of the image satisfies the size requirement when extracting features from the image;
对裁剪后的所述图像进行标记,以得到标记图像;Marking the cropped image to obtain a marked image;
对所述标记图像进行人工检验,以去除所述标记图像中的异常数据。Manual inspection of the labeled image is performed to remove abnormal data in the labeled image.
于本发明的一实施例中,所述对处理后的所述图像进行特征提取,得到图像特征包括步骤:In an embodiment of the present invention, performing feature extraction on the processed image to obtain image features includes the following steps:
通过基于卷积神经网络的目标检测模型对处理后的所述图像进行检测,以识别所述图像中的物体;Detecting the processed image through a target detection model based on a convolutional neural network to identify objects in the image;
根据识别出的所述物体,对所述图像进行特征提取,以得到所述图像特征。According to the identified object, feature extraction is performed on the image to obtain the image feature.
于本发明的一实施例中,所述对所述问题信息进行特征提取,得到文本特征包括步骤:In an embodiment of the present invention, performing feature extraction on the problem information to obtain text features includes the steps of:
对语料进行向量化,得到词向量;Vectorize the corpus to get word vectors;
根据所述词向量,通过LSTM-Attention神经网络的文本向量层对所述问题信息进行向量化,得到句子序列;According to the word vector, the question information is vectorized through the text vector layer of the LSTM-Attention neural network to obtain a sentence sequence;
将所述句子序列输入LSTM网络中,通过所述LSTM网络对所述句子序列进行语义编码,得到隐层输出信息,表示为:The sentence sequence is input into the LSTM network, and the sentence sequence is semantically encoded by the LSTM network to obtain the output information of the hidden layer, which is expressed as:
hit=LSTM(xit),t∈[1,m]h it = LSTM(x it ), t∈[1, m]
其中,m为所述句子序列中词语的个数,xit为t时刻输入所述LSTM网络的所述词语,hit为t时刻所述LSTM网络输出的所述隐层输出信息;Wherein, m is the number of words in the sentence sequence, x it is the word input into the LSTM network at time t, h it is the output information of the hidden layer output by the LSTM network at time t;
通过所述LSTM-Attention神经网络的词语Attention层,对所述隐层输出信息进行非线性变换及归一化操作,得到词级别隐层输出的权重系数,并根据所述权重系数得到词语注意力机制矩阵,表示为:Through the word Attention layer of the LSTM-Attention neural network, the output information of the hidden layer is nonlinearly transformed and normalized to obtain the weight coefficient of the word-level hidden layer output, and the word attention is obtained according to the weight coefficient. Mechanism matrix, expressed as:
其中,αit为所述词级别隐层输出的权重系数,si为所述词语注意力机制矩阵的句子向量;Wherein, α it is the weight coefficient output by the word-level hidden layer, and s i is the sentence vector of the word attention mechanism matrix;
将所述句子向量输入所述LSTM网络中,所述LSTM网络根据上一时刻的所述隐层输出信息对所述句子向量进行更新,得到更新后的所述句子向量;Inputting the sentence vector into the LSTM network, and the LSTM network updates the sentence vector according to the output information of the hidden layer at the previous moment to obtain the updated sentence vector;
通过所述LSTM-Attention神经网络的句子Attention层,对更新后的所述句子向量进行非线性变换及归一化操作,得到句子级别隐层输出的权重系数,并根据所述权重系数得到句子注意力机制矩阵,表示为:Through the sentence Attention layer of the LSTM-Attention neural network, nonlinear transformation and normalization are performed on the updated sentence vector to obtain the weight coefficient of the sentence-level hidden layer output, and the sentence attention is obtained according to the weight coefficient. The force mechanism matrix, expressed as:
其中,αi为所述句子级别隐层输出的权重系数,hi为更新后的所述句子向量;Wherein, α i is the weight coefficient output by the sentence-level hidden layer, and hi is the updated sentence vector;
根据所述词语注意力机制矩阵和所述句子注意力机制矩阵,对所述问题信息进行特征提取,得到所述文本特征。According to the word attention mechanism matrix and the sentence attention mechanism matrix, feature extraction is performed on the question information to obtain the text feature.
于本发明的一实施例中,所述将所述句子序列输入LSTM网络中,通过所述LSTM网络对所述句子序列进行语义编码,得到隐层输出信息还包括步骤:In an embodiment of the present invention, the step of inputting the sentence sequence into an LSTM network, and performing semantic encoding on the sentence sequence through the LSTM network to obtain the output information of the hidden layer further includes the steps:
将所述句子序列作为所述LSTM网络的输入节点数据;Using the sentence sequence as the input node data of the LSTM network;
通过所述LSTM网络对所述句子序列的前后信息进行学习,以得到所述句子序列之间的前后信息;Learning the before and after information of the sentence sequence through the LSTM network to obtain the before and after information between the sentence sequences;
根据所述前后信息,对所述句子序列进行语义编码。Semantic encoding is performed on the sentence sequence according to the context information.
于本发明的一实施例中,所述基于双线性池化网络,将所述图像特征与所述文本特征进行融合,得到多模态特征包括步骤:In an embodiment of the present invention, the method of fusing the image feature and the text feature based on a bilinear pooling network to obtain a multimodal feature includes the following steps:
将所述图像特征和所述文本特征映射到相同的特征空间,使所述图像特征的维度与所述文本特征的维度相匹配;mapping the image feature and the text feature to the same feature space, so that the dimension of the image feature matches the dimension of the text feature;
将维度相匹配的所述图像特征和所述文本特征输入所述双线性池化网络,以输出融合后的所述多模态特征,表示为:The image features and the text features whose dimensions are matched are input into the bilinear pooling network to output the fused multimodal features, which are expressed as:
q=Fusion(m,n)q=Fusion(m,n)
其中,m为所述图像特征,n为所述文本特征,Fusion表示特征融合,q为所述多模态特征。Among them, m is the image feature, n is the text feature, Fusion represents feature fusion, and q is the multimodal feature.
于本发明的一实施例中,所述将所述多模态特征输入训练后的所述视觉问答模型中,以得到视觉问答结果包括步骤:In an embodiment of the present invention, inputting the multimodal features into the trained visual question answering model to obtain a visual question answering result includes the steps:
将所述多模态特征输入训练后的所述视觉问答模型中;Inputting the multimodal feature into the trained visual question answering model;
根据所述多模态特征,确定待选答案,且所述待选答案组成待选域;According to the multi-modal feature, the answer to be selected is determined, and the answer to be selected constitutes a domain to be selected;
预测正确答案在所述待选域上的概率分布;predict the probability distribution of the correct answer on the candidate field;
根据所述概率分布,将最大概率所对应的所述待选答案作为所述视觉问答的结果。According to the probability distribution, the candidate answer corresponding to the maximum probability is used as the result of the visual question answering.
本发明还提供了一种电力设备外观缺陷的视觉问答系统,包括:The present invention also provides a visual question answering system for appearance defects of electrical equipment, including:
图像获取模块,用于获取电力设备外观缺陷的图像,并对所述图像进行预处理;an image acquisition module, used for acquiring an image of the appearance defect of the power equipment, and preprocessing the image;
图像特征提取模块,用于对处理后的所述图像进行特征提取,得到图像特征;an image feature extraction module, configured to perform feature extraction on the processed image to obtain image features;
文本特征提取模块,用于根据所述图像,获取与所述图像相关的问题信息,并对所述问题信息进行特征提取,得到文本特征;a text feature extraction module, configured to obtain problem information related to the image according to the image, and perform feature extraction on the problem information to obtain text features;
特征融合模块,用于基于双线性池化网络,将所述图像特征与所述文本特征进行融合,得到多模态特征;a feature fusion module, configured to fuse the image features and the text features based on a bilinear pooling network to obtain multimodal features;
模型建立模块,用于建立视觉问答模型并对其进行训练,得到训练后的所述视觉问答模型;a model building module, used to build a visual question answering model and train it to obtain the trained visual question answering model;
视觉问答模块,用于将所述多模态特征输入训练后的所述视觉问答模型中,以得到视觉问答结果。The visual question answering module is used for inputting the multimodal feature into the trained visual question answering model to obtain a visual question answering result.
于本发明的一实施例中,一种电力设备外观缺陷的视觉问答设备包括:处理器,所述处理器与存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时实现如上所述的电力设备外观缺陷的视觉问答方法。In an embodiment of the present invention, a visual question answering device for appearance defects of electrical equipment includes: a processor, the processor is coupled to a memory, the memory stores program instructions, and when the program instructions stored in the memory are When the processor is executed, the visual question answering method for the appearance defect of the electrical equipment as described above is realized.
于本发明的一实施例中,一种计算机可读存储介质,其特征在于:包括程序,当所述程序在计算机上运行时,使得计算机执行如上所述的电力设备外观缺陷的视觉问答方法。In one embodiment of the present invention, a computer-readable storage medium is characterized by comprising a program, which when the program runs on a computer, enables the computer to execute the above-mentioned visual question and answer method for appearance defects of electrical equipment.
如上所述,本发明提供的一种电力设备外观缺陷的视觉问答方法、系统、设备及其存储介质,通过标记的电力设备场景图像,提取图像特征,并与问题信息的文本特征进行融合,以得到相应的答案预测,问答效果好;其次,通过所述方法也能对变电设备的运行状态进行实时监控,防止出现误检、漏检的现象,提高了工作效率。As described above, the present invention provides a visual question answering method, system, device, and storage medium for electrical equipment appearance defects. The image features are extracted from the marked power equipment scene images, and fused with the text features of the problem information to obtain The corresponding answer prediction is obtained, and the question and answer effect is good; secondly, the method can also monitor the running state of the substation equipment in real time, prevent the phenomenon of false detection and missed detection, and improve the work efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明提供的一种电力设备外观缺陷的视觉问答方法的流程示意图。FIG. 1 is a schematic flowchart of a visual question and answer method for appearance defects of electrical equipment provided by the present invention.
图2为本发明实施例中步骤S1的流程示意图。FIG. 2 is a schematic flowchart of step S1 in an embodiment of the present invention.
图3为本发明实施例中步骤S3的流程示意图。FIG. 3 is a schematic flowchart of step S3 in an embodiment of the present invention.
图4为本发明实施例中步骤S33的流程示意图。FIG. 4 is a schematic flowchart of step S33 in the embodiment of the present invention.
图5为本发明实施例中步骤S6的流程示意图。FIG. 5 is a schematic flowchart of step S6 in an embodiment of the present invention.
图6为本发明提供的一种电力设备外观缺陷的视觉问答系统的原理结构示意图。FIG. 6 is a schematic structural diagram of the principle and structure of a visual question answering system for appearance defects of electrical equipment provided by the present invention.
元件标号说明Component label description
11 图像获取模块 14 特征融合模块11
12 图像特征提取模块 15 模型建立模块12 Image
13 文本特征提取模块 16 视觉问答模块13 Text
具体实施方式Detailed ways
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The embodiments of the present invention are described below through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other under the condition of no conflict.
需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the drawings provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic way, so the drawings only show the components related to the present invention rather than the number, shape and number of components in actual implementation. For dimension drawing, the type, quantity and proportion of each component can be changed at will in actual implementation, and the component layout may also be more complicated.
如图1所示,本发明提供了一种电力设备外观缺陷的视觉问答方法,包括步骤:As shown in Figure 1, the present invention provides a visual question and answer method for appearance defects of electrical equipment, comprising the steps of:
S1、获取电力设备外观缺陷的图像,并对图像进行预处理;S1. Obtain an image of the appearance defect of the power equipment, and preprocess the image;
S2、对处理后的图像进行特征提取,得到图像特征;S2. Perform feature extraction on the processed image to obtain image features;
S3、根据图像,获取与图像相关的问题信息,并对问题信息进行特征提取,得到文本特征;S3. Obtain problem information related to the image according to the image, and perform feature extraction on the problem information to obtain text features;
S4、基于双线性池化网络,将图像特征与文本特征进行融合,得到多模态特征;S4. Based on bilinear pooling network, image features and text features are fused to obtain multimodal features;
S5、建立视觉问答模型并对其进行训练,得到训练后的视觉问答模型;S5. Establish a visual question answering model and train it to obtain a trained visual question answering model;
S6、将多模态特征输入训练后的视觉问答模型中,以得到视觉问答结果。S6. Input the multimodal feature into the trained visual question answering model to obtain a visual question answering result.
如图2所示,进一步地,步骤S1还包括:As shown in Figure 2, further, step S1 also includes:
S11、对图像进行筛选,以去除不包含检测对象的图像;S11. Screen the images to remove images that do not contain the detection object;
S12、对筛选后的图像进行暗通道去雾和自适应伽玛校正处理,以提高图像的清晰度和对比度;S12. Perform dark channel dehazing and adaptive gamma correction processing on the filtered image to improve the clarity and contrast of the image;
S13、对处理后的图像进行位置变换及色彩变换,以增强图像的信息;S13, performing position transformation and color transformation on the processed image to enhance the information of the image;
S14、对变换后的图像进行裁剪,使得图像的规格尺寸满足对图像进行特征提取时的规格尺寸要求;S14. Crop the transformed image so that the size of the image meets the size requirements for the feature extraction of the image;
S15、对裁剪后的图像进行标记,以得到标记图像;S15, marking the cropped image to obtain a marked image;
S16、对标记图像进行人工检验,以去除标记图像中的异常数据。S16. Perform manual inspection on the marked image to remove abnormal data in the marked image.
在本发明的一实施例中,对于步骤S11,对图像进行筛选,以去除不包含检测对象的图像,其中,检测对象包括玻璃绝缘子、复合绝缘子、导线、悬垂线夹、防震锤、杆塔、螺栓、线路走廊及其他相关异物和缺陷。In an embodiment of the present invention, for step S11, the images are screened to remove images that do not contain detection objects, wherein the detection objects include glass insulators, composite insulators, wires, suspension clamps, anti-vibration hammers, towers, bolts , line corridors and other related foreign objects and defects.
在本发明的一实施例中,对于步骤S12,使用去雾算法对存在雾气的图像进行暗通道去雾,以提高图像的清晰度,同时对成像较差的图像进行自适应伽玛校正处理,以提高图像的对比度,从而提高图像后续进行分割和信息量化的准确率。In an embodiment of the present invention, for step S12, a dehazing algorithm is used to perform dark channel dehazing on the image with fog, so as to improve the clarity of the image, and at the same time, adaptive gamma correction processing is performed on the image with poor imaging, In order to improve the contrast of the image, the accuracy of subsequent image segmentation and information quantification can be improved.
在本发明的一实施例中,对于步骤S13,在保证图像的基本特征不变时,对图像进行位置变换及色彩变换,以增强图像的信息。其中,位置变换包括旋转、平移、水平镜像;旋转指以图像中的任意一点为旋转中心,对图像的所有像素进行相同角度的旋转,无像素点位置进行零值填充,由于图像中包含导线、绝缘子这样的连续目标,对图像进行旋转能够在不改变目标特征的情况下,扩充目标的角度多样性;平移指将所有像素点在竖直和水平方向进行随机步进的移动,以扩充目标空间位置的多样性;水平镜像指以图像的中心轴为对称,对两侧像素点进行位置互换,这样能够扩充图像拍摄方向的多样性。在本实施例中,色彩变换包括色彩抖动、对比度调整、亮度调整、饱和度调整;色彩抖动指在图像的RGB三通道中,随机选择一个通道的值进行上下浮动变换,在本实施例中,浮动变换的范围不超过20,例如16;而对比度、亮度及饱和度的调整,主要是通过模拟现实场景中日照光强度的变化实现的。In an embodiment of the present invention, for step S13, when the basic features of the image are guaranteed to remain unchanged, position transformation and color transformation are performed on the image to enhance the information of the image. Among them, position transformation includes rotation, translation, and horizontal mirroring; rotation refers to taking any point in the image as the rotation center, and rotating all pixels of the image by the same angle, and filling zero-value positions without pixel points. For continuous targets such as insulators, rotating the image can expand the angular diversity of the target without changing the characteristics of the target; translation refers to moving all pixels in random steps in the vertical and horizontal directions to expand the target space The diversity of positions; horizontal mirroring refers to the symmetry of the central axis of the image, and the positions of the pixels on both sides are exchanged, which can expand the diversity of image shooting directions. In this embodiment, the color transformation includes color dithering, contrast adjustment, brightness adjustment, and saturation adjustment; color dithering refers to randomly selecting the value of one channel in the three RGB channels of the image to perform up-down floating transformation. In this embodiment, The range of floating transformation does not exceed 20, such as 16; and the adjustment of contrast, brightness and saturation is mainly achieved by simulating the changes of sunlight intensity in real scenes.
在本发明的一实施例中,进一步地,步骤S2还包括:In an embodiment of the present invention, further, step S2 further includes:
S21、通过基于卷积神经网络的目标检测模型对处理后的图像进行检测,以识别图像中的物体;S21. Detect the processed image through a target detection model based on a convolutional neural network to identify objects in the image;
S22、根据识别出的物体,对图像进行特征提取,以得到图像特征。S22. Perform feature extraction on the image according to the recognized object to obtain image features.
在本发明的一实施例中,使用基于卷积神经网络的目标检测模型Faster-RCNN识别图像中的物体,并根据识别出的物体,对图像进行特征提取,得到图像特征。表示为;In an embodiment of the present invention, an object detection model based on a convolutional neural network, Faster-RCNN, is used to identify objects in an image, and according to the identified objects, feature extraction is performed on the image to obtain image features. Expressed as;
Vh=RCNN(I) (1)V h =RCNN(I) (1)
其中,I为图像,RCNN表示对图像进行检测识别,Vh为提取的图像特征。Among them, I is the image, RCNN represents the detection and recognition of the image, and V h is the extracted image feature.
在本实施例中,提取到的图像特征表示为一个K×2048的矩阵,其表示每个图像包括K个向量,每个向量的维度是2048维。In this embodiment, the extracted image features are represented as a K×2048 matrix, which indicates that each image includes K vectors, and the dimension of each vector is 2048 dimensions.
如图3所示,进一步地,步骤S3还包括:As shown in Figure 3, further, step S3 also includes:
S31、对语料进行向量化,得到词向量;S31, vectorize the corpus to obtain word vectors;
S32、根据词向量,通过LSTM-Attention神经网络的文本向量层对问题信息进行向量化,得到句子序列;S32. According to the word vector, vectorize the question information through the text vector layer of the LSTM-Attention neural network to obtain a sentence sequence;
S33、将句子序列输入LSTM网络中,通过LSTM网络对句子序列进行语义编码,得到隐层输出信息;S33. Input the sentence sequence into the LSTM network, and perform semantic encoding on the sentence sequence through the LSTM network to obtain the output information of the hidden layer;
S34、通过LSTM-Attention神经网络的词语Attention层,对隐层输出信息进行非线性变换及归一化操作,得到词级别隐层输出的权重系数,并根据所述权重系数得到词语注意力机制矩阵;S34. Through the word Attention layer of the LSTM-Attention neural network, the output information of the hidden layer is nonlinearly transformed and normalized to obtain the weight coefficient of the word-level hidden layer output, and the word attention mechanism matrix is obtained according to the weight coefficient. ;
S35、将词语注意力机制矩阵中的句子向量输入LSTM网络中,LSTM网络根据上一时刻的隐层输出信息对句子向量进行更新,得到更新后的句子向量;S35. Input the sentence vector in the word attention mechanism matrix into the LSTM network, and the LSTM network updates the sentence vector according to the output information of the hidden layer at the previous moment to obtain the updated sentence vector;
S36、通过LSTM-Attention神经网络的句子Attention层,对更新后的句子向量进行非线性变换及归一化操作,得到句子级别隐层输出的权重系数,并根据所述权重系数得到句子注意力机制矩阵;S36. Perform nonlinear transformation and normalization operations on the updated sentence vector through the sentence Attention layer of the LSTM-Attention neural network to obtain the weight coefficient of the sentence-level hidden layer output, and obtain the sentence attention mechanism according to the weight coefficient. matrix;
S37、根据词语注意力机制矩阵和句子注意力机制矩阵,对问题信息进行特征提取,得到文本特征。S37. According to the word attention mechanism matrix and the sentence attention mechanism matrix, feature extraction is performed on the question information to obtain text features.
在本发明的一实施例中,对于步骤S31,使用word2vec中的Skip-Gram无监督模型对语料进行向量化,得到词向量。之后再根据所述词向量,通过LSTM-Attention神经网络的文本向量化层实现问题信息的向量化。In an embodiment of the present invention, for step S31, the Skip-Gram unsupervised model in word2vec is used to vectorize the corpus to obtain word vectors. Then, according to the word vector, the problem information is vectorized through the text vectorization layer of the LSTM-Attention neural network.
如图4所示,进一步地,步骤S33还包括:As shown in Figure 4, further, step S33 also includes:
S331、将句子序列作为LSTM网络的输入节点数据;S331. Use the sentence sequence as the input node data of the LSTM network;
S332、通过LSTM网络对句子序列的前后信息进行学习,以得到句子序列之间的前后信息;S332, learning the before and after information of the sentence sequence through the LSTM network, so as to obtain the before and after information between the sentence sequences;
S333、根据所述前后信息,对句子序列进行语义编码。S333. Perform semantic coding on the sentence sequence according to the before and after information.
在本发明的一实施例中,首先将句子序列(xi1,xi2,…,xit)作为LSTM网络的输入节点数据,其中,xi1,xi2,…,xit为句子序列中的每个词语,之后LSTM网络便会根据输入的数据对句子序列的前后信息进行学习,得到句子序列之间的前后信息,根据得到的前后信息,对句子序列进行语义编码,在不同时刻LSTM网络会输出对应节点的隐层输出信息,表示为:In an embodiment of the present invention, the sentence sequence (x i1 , x i2 ,..., x it ) is first used as the input node data of the LSTM network, wherein x i1 , x i2 ,..., x it are the sentences in the sentence sequence For each word, the LSTM network will then learn the before and after information of the sentence sequence according to the input data, obtain the before and after information between the sentence sequences, and perform semantic coding on the sentence sequence according to the obtained before and after information. Output the hidden layer output information of the corresponding node, which is expressed as:
hit=LSTM(xit),t∈[1,m] (2)h it = LSTM(x it ), t∈[1, m] (2)
其中,m为句子序列中词语的个数,xit为t时刻输入LSTM网络的词语,hit为t时刻LSTM网络输出的隐层输出信息。Among them, m is the number of words in the sentence sequence, x it is the word input to the LSTM network at time t, and h it is the output information of the hidden layer output by the LSTM network at time t.
在本发明的一实施例中,对于步骤S34,由于每一个词语对于问题信息的贡献度是不同的,为了实现对重要词语的特征进行提取,通过LSTM-Attention神经网络的词语Attention层,对隐层输出信息进行非线性变换及归一化操作,以得到词级别隐层输出的权重系数,表示为:In an embodiment of the present invention, for step S34, since the contribution of each word to the problem information is different, in order to extract the features of important words, the word Attention layer of the LSTM-Attention neural network is used to extract hidden words. The layer output information is nonlinearly transformed and normalized to obtain the weight coefficient of the word-level hidden layer output, which is expressed as:
uit=tanh(Wwhit+bw) (3)u it =tanh(W w h it +b w ) (3)
其中,tanh为非线性函数,Ww为LSTM网络隐层的权重,bw为LSTM网络隐层的偏置,uit为隐层输出信息hit经非线性变换后得到的隐含表示,uw为随机初始化的注意力机制矩阵,αit为词级别隐层输出的权重系数。Among them, tanh is a nonlinear function, W w is the weight of the hidden layer of the LSTM network, b w is the bias of the hidden layer of the LSTM network, u it is the implicit representation obtained by nonlinear transformation of the hidden layer output information h it , u w is the randomly initialized attention mechanism matrix, and α it is the weight coefficient output by the word-level hidden layer.
之后根据所述词级别隐层输出的权重系数和隐层输出信息,得到词语注意力机制矩阵,表示为:Then, according to the weight coefficient output of the word-level hidden layer and the output information of the hidden layer, the word attention mechanism matrix is obtained, which is expressed as:
si=∑tαithit (5)s i =∑ t α it h it (5)
其中,si为词语注意力机制矩阵中的句子向量。where si is the sentence vector in the word attention mechanism matrix.
在本发明的一实施例中,对于步骤S36,由于不同的句子对问题信息重要程度的贡献度也是不同的,因此通过LSTM-Attention神经网络的句子Attention层,对更新后的句子向量进行非线性变换及归一化操作,以得到句子级别隐层输出的权重系数,表示为:In an embodiment of the present invention, for step S36, since the contribution of different sentences to the importance of the question information is also different, the sentence Attention layer of the LSTM-Attention neural network is used to nonlinearly perform the updated sentence vector. Transform and normalize operations to obtain the weight coefficient of the sentence-level hidden layer output, which is expressed as:
ui=tanh(Wwhi+bw) (6)u i =tanh(W w h i +b w ) (6)
其中,hi为经LSTM网络更新后的句子向量,ui为更新后的句子向量hi经非线性变换后得到的隐含表示,us为随机初始化的句子注意力机制矩阵,αi为句子级别隐层输出的权重系数。Among them, hi is the sentence vector updated by the LSTM network, ui is the implicit representation obtained by nonlinear transformation of the updated sentence vector hi , u s is the randomly initialized sentence attention mechanism matrix, α i is The weight coefficients for the output of the sentence-level hidden layer.
之后根据所述句子级别隐层输出的权重系数和更新后的句子向量,得到句子注意力机制矩阵,表示为:Then, according to the weight coefficient output by the sentence-level hidden layer and the updated sentence vector, the sentence attention mechanism matrix is obtained, which is expressed as:
v=∑iαihi (8)v=∑ i α i h i (8)
其中,si为词语注意力机制矩阵中的句子向量。where si is the sentence vector in the word attention mechanism matrix.
在本发明的一实施例中,根据词语注意力机制矩阵和句子注意力机制矩阵,对问题信息进行特征提取,得到文本特征后,为了将高维度的文本特征压缩到低维度,增强数据的非线性能力,在Softmax分类层之前添加一个非线性层,将该特征向量映射为长度为c的向量,最后再经Softmax分类层计算各对应类别的分布概率,表示为:In an embodiment of the present invention, according to the word attention mechanism matrix and the sentence attention mechanism matrix, feature extraction is performed on the question information, and after text features are obtained, in order to compress high-dimensional text features into low-dimensional, the non-dimensionality of the data is enhanced. Linear ability, add a nonlinear layer before the Softmax classification layer, map the feature vector to a vector of length c, and finally calculate the distribution probability of each corresponding category through the Softmax classification layer, which is expressed as:
其中,为提取出的文本特征向量,wc、bc分别为非线性层的权重和偏置,yi为输出的概率分布。in, is the extracted text feature vector, w c , b c are the weights and biases of the nonlinear layer, respectively, and y i is the output probability distribution.
在本发明的一实施例中,进一步地,步骤S4还包括:In an embodiment of the present invention, further, step S4 further includes:
S41、将图像特征和文本特征映射到相同的特征空间,使图像特征的维度与文本特征的维度相匹配;S41, map the image feature and the text feature to the same feature space, so that the dimension of the image feature matches the dimension of the text feature;
S42、将维度相匹配的图像特征和文本特征输入双线性池化网络中,以得到融合后的多模态特征。S42 , inputting the image features and text features with matching dimensions into a bilinear pooling network to obtain a fused multimodal feature.
使用双线性池化网络进行特征融合时,需要不同特征的维度相匹配,故先将图像特征和文本特征映射到相同的特征空间,使它们具有相同的维度,之后再将两个特征输入双线性池化网络中,以得到融合后的多模态特征,表示为:When using the bilinear pooling network for feature fusion, the dimensions of different features need to be matched, so the image features and text features are first mapped to the same feature space so that they have the same dimension, and then the two features are input into the bilinear feature space. In the linear pooling network, the fused multimodal features are obtained, which are expressed as:
q=Fusion(m,n) (10)q=Fusion(m,n) (10)
其中,m为图像特征,n为文本特征,Fusion表示特征融合,q为融合后的多模态特征。Among them, m is the image feature, n is the text feature, Fusion represents feature fusion, and q is the fused multimodal feature.
如图5所示,进一步地,步骤S6还包括:As shown in Figure 5, further, step S6 also includes:
S61、将融合后的多模态特征输入训练后的视觉问答模型中;S61. Input the fused multimodal features into the trained visual question answering model;
S62、根据多模态特征,确定待选答案,且所述待选答案组成待选域;S62, according to the multimodal feature, determine the answer to be selected, and the answer to be selected constitutes the domain to be selected;
S63、预测正确答案在待选域上的概率分布;S63, predict the probability distribution of the correct answer on the field to be selected;
S64、根据概率分布,将最大概率所对应的待选答案作为视觉问答的结果。S64. According to the probability distribution, the candidate answer corresponding to the maximum probability is used as the result of the visual question answering.
在本发明的一实施例中,多模态特征输入训练后的视觉问答模型后,会确定待选答案,而所述待选答案会组成待选域,先预测正确答案落在这些待选域上的概率分布,之后便可将最大概率对应的待选答案作为最终视觉问答的结果,表示为:In an embodiment of the present invention, after the multimodal features are input into the trained visual question answering model, the answers to be selected will be determined, and the answers to be selected will form the fields to be selected, and the correct answers will be predicted to fall in these fields to be selected first Then the candidate answer corresponding to the maximum probability can be used as the result of the final visual question and answer, which is expressed as:
其中,I为获取的图像,Q为与图像相关的问题信息,为正确答案,M为待选域,P为概率分布。Among them, I is the acquired image, Q is the problem information related to the image, is the correct answer, M is the field to be selected, and P is the probability distribution.
上面方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包含相同的逻辑关系,都在本发明的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该发明的保护范围内。The step division of the above method is only for the purpose of describing clearly, and can be combined into one step or split some steps during implementation, and decomposed into multiple steps, as long as they contain the same logical relationship, they are all within the protection scope of the present invention; Adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are within the protection scope of this invention.
如图6所示,本发明还提供了一种电力设备外观缺陷的视觉问答系统,包括:图像获取模块11、图像特征提取模块12、文本特征提取模块13、特征融合模块14、模型建立模块15及视觉问答模块16。图像获取模块11用于获取电力设备外观缺陷的图像,并对所述图像进行预处理;图像特征提取模块12用于对处理后的所述图像进行特征提取,得到图像特征;文本特征提取模块13用于根据所述图像,获取与所述图像相关的问题信息,并对所述问题信息进行特征提取,得到文本特征;特征融合模块14用于基于双线性池化网络,将所述图像特征与所述文本特征进行融合,得到多模态特征;模型建立模块15用于建立视觉问答模型并对其进行训练,得到训练后的所述视觉问答模型;视觉问答模块16用于将所述多模态特征输入训练后的所述视觉问答模型中,以得到视觉问答结果。As shown in FIG. 6 , the present invention also provides a visual question answering system for appearance defects of electrical equipment, including: an
进一步地,文本特征提取模块13还包括:向量化单元、文本向量单元、语义编码单元、词语Attention单元、更新单元、句子Attention单元以及特征提取单元。向量化单元用于对语料进行向量化,得到词向量;文本向量单元用于根据词向量,通过LSTM-Attention神经网络的文本向量层对问题信息进行向量化,得到句子序列;语义编码单元用于将句子序列输入LSTM网络中,通过LSTM网络对句子序列进行语义编码,得到隐层输出信息;词语Attention单元用于通过LSTM-Attention神经网络的词语Attention层,对隐层输出信息进行非线性变换及归一化操作,得到词级别隐层输出的权重系数,并根据权重系数得到词语注意力机制矩阵;更新单元用于将句子向量输入LSTM网络中,LSTM网络根据上一时刻的所述隐层输出信息对句子向量进行更新,得到更新后的所述句子向量;句子Attention单元用于通过LSTM-Attention神经网络的句子Attention层,对更新后的句子向量进行非线性变换及归一化操作,得到句子级别隐层输出的权重系数,并根据权重系数得到句子注意力机制矩阵;特征提取单元用于根据词语注意力机制矩阵和句子注意力机制矩阵,对问题信息进行特征提取,得到文本特征。Further, the text
需要说明的是,为了突出本发明的创新部分,本实施例中并没有将与解决本发明所提出的技术问题关系不太密切的模块引入,但这并不表明本实施例中不存在其它的模块。It should be noted that, in order to highlight the innovative part of the present invention, this embodiment does not introduce modules that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other modules in this embodiment. module.
此外,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本发明所提供的实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In addition, those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the embodiments provided by the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, or can be implemented in the form of software functional units.
所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁盘或者光盘等各种可以存储程序代码的介质。If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.
在本发明的一实施例中,一种农机循迹控制设备包括:处理器,所述处理器与存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时,可实现所述电力设备外观缺陷的视觉问答方法。In an embodiment of the present invention, an agricultural machinery tracking control device includes: a processor, the processor is coupled to a memory, the memory stores program instructions, and when the program instructions stored in the memory are processed by the processor When executed, the visual question answering method for the appearance defect of the electrical equipment can be realized.
如上所述,本发明提供的一种电力设备外观缺陷的视觉问答方法、系统、设备及其存储介质,通过标记的电力设备场景图像,提取图像特征,并与问题信息的文本特征进行融合,以得到相应的答案预测,问答效果好;其次,通过所述方法也能对变电设备的运行状态进行实时监控,防止出现误检、漏检的现象,提高了工作效率。所以,本发明有效克服了现有技术中的种种缺点而具高度产业利用价值。As described above, the present invention provides a visual question answering method, system, device, and storage medium for electrical equipment appearance defects. The image features are extracted from the marked power equipment scene images, and fused with the text features of the problem information to obtain The corresponding answer prediction is obtained, and the question and answer effect is good; secondly, the method can also monitor the running state of the substation equipment in real time, prevent the phenomenon of false detection and missed detection, and improve the work efficiency. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。The above-mentioned embodiments merely illustrate the principles and effects of the present invention, but are not intended to limit the present invention. Anyone skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed in the present invention should still be covered by the claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110436318.4A CN113095331A (en) | 2021-04-22 | 2021-04-22 | Visual question answering method, system and equipment for appearance defects of electric equipment and storage medium thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110436318.4A CN113095331A (en) | 2021-04-22 | 2021-04-22 | Visual question answering method, system and equipment for appearance defects of electric equipment and storage medium thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113095331A true CN113095331A (en) | 2021-07-09 |
Family
ID=76679495
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110436318.4A Pending CN113095331A (en) | 2021-04-22 | 2021-04-22 | Visual question answering method, system and equipment for appearance defects of electric equipment and storage medium thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113095331A (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113297370A (en) * | 2021-07-27 | 2021-08-24 | 国网电子商务有限公司 | End-to-end multi-modal question-answering method and system based on multi-interaction attention |
CN113611004A (en) * | 2021-08-06 | 2021-11-05 | 寰宇鹏翔航空科技(深圳)有限公司 | Data preprocessing method, device, system and storage medium |
CN113989592A (en) * | 2021-10-28 | 2022-01-28 | 三一建筑机器人(西安)研究院有限公司 | A method, device and electronic device for extending semantically segmented image samples |
CN114155422A (en) * | 2021-11-24 | 2022-03-08 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for realizing visual question answering |
CN114170477A (en) * | 2021-11-30 | 2022-03-11 | 华东师范大学 | A Multimodal Fusion Mechanical Defect Detection Method Based on Attention Graph Convolutional Network |
CN114186039A (en) * | 2021-11-26 | 2022-03-15 | 北京百度网讯科技有限公司 | A visual question answering method, device and electronic device |
CN114267003A (en) * | 2022-03-02 | 2022-04-01 | 城云科技(中国)有限公司 | Road damage detection method, device and application |
CN114330097A (en) * | 2021-11-26 | 2022-04-12 | 中国华能集团清洁能源技术研究院有限公司 | Heterogeneous data and deep learning wind power cluster power prediction method and device |
CN114401135A (en) * | 2022-01-14 | 2022-04-26 | 国网河北省电力有限公司电力科学研究院 | Internal threat detection method based on LSTM-Attention user and entity behavior analysis technology |
CN114463594A (en) * | 2021-11-19 | 2022-05-10 | 中国华能集团清洁能源技术研究院有限公司 | Multi-mode deep learning power generation equipment abnormity integrated identification method and equipment |
CN114691680A (en) * | 2022-03-07 | 2022-07-01 | 盛景智能科技(嘉兴)有限公司 | Maintenance case information query method, device, electronic device and storage medium |
CN114937041A (en) * | 2022-07-25 | 2022-08-23 | 聊城市博源节能科技有限公司 | Method and system for detecting defects of copper bush of oil way of automobile engine |
CN114972792A (en) * | 2022-06-06 | 2022-08-30 | 平安科技(深圳)有限公司 | Question-answering method, device, equipment and storage medium based on bimodal feature fusion |
CN117173530A (en) * | 2023-11-02 | 2023-12-05 | 中国科学院自动化研究所 | Target abnormality detection method and device |
CN118297898A (en) * | 2024-04-01 | 2024-07-05 | 天津大学 | Multi-mode defect quality detection method and system |
CN118379602A (en) * | 2024-06-25 | 2024-07-23 | 浙江大学 | Method and system for enhancing semiconductor defect analysis by semantic and visual interpretation |
CN118982833A (en) * | 2024-07-24 | 2024-11-19 | 国家电投集团河北电力有限公司 | New energy power data processing method and device |
WO2025100343A1 (en) * | 2023-11-06 | 2025-05-15 | 東京エレクトロン株式会社 | Information processing method, information processing device, and computer program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107480206A (en) * | 2017-07-25 | 2017-12-15 | 杭州电子科技大学 | A kind of picture material answering method based on multi-modal low-rank bilinearity pond |
CN108890652A (en) * | 2018-06-28 | 2018-11-27 | 全球能源互联网研究院有限公司 | A kind of Intelligent Mobile Robot and method for inspecting substation equipment |
-
2021
- 2021-04-22 CN CN202110436318.4A patent/CN113095331A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107480206A (en) * | 2017-07-25 | 2017-12-15 | 杭州电子科技大学 | A kind of picture material answering method based on multi-modal low-rank bilinearity pond |
CN108890652A (en) * | 2018-06-28 | 2018-11-27 | 全球能源互联网研究院有限公司 | A kind of Intelligent Mobile Robot and method for inspecting substation equipment |
Non-Patent Citations (4)
Title |
---|
李学明: "计算机视觉原理与应用", 北京:北京邮电大学出版社, pages: 162 - 164 * |
赵勤鲁 等: "基于LSTM⁃Attention神经网络的文本特征提取方法", 《现代电子技术》 * |
赵勤鲁 等: "基于LSTM⁃Attention神经网络的文本特征提取方法", 《现代电子技术》, vol. 41, no. 8, 12 April 2018 (2018-04-12), pages 168 - 169 * |
鲜荣 等: "基于多模态双向导向注意的视觉问答", 《太赫兹科学与电子信息学报》, 28 February 2021 (2021-02-28) * |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113297370B (en) * | 2021-07-27 | 2021-11-16 | 国网电子商务有限公司 | End-to-end multimodal question answering method and system based on multi-interaction attention |
CN113297370A (en) * | 2021-07-27 | 2021-08-24 | 国网电子商务有限公司 | End-to-end multi-modal question-answering method and system based on multi-interaction attention |
CN113611004A (en) * | 2021-08-06 | 2021-11-05 | 寰宇鹏翔航空科技(深圳)有限公司 | Data preprocessing method, device, system and storage medium |
CN113989592A (en) * | 2021-10-28 | 2022-01-28 | 三一建筑机器人(西安)研究院有限公司 | A method, device and electronic device for extending semantically segmented image samples |
CN114463594A (en) * | 2021-11-19 | 2022-05-10 | 中国华能集团清洁能源技术研究院有限公司 | Multi-mode deep learning power generation equipment abnormity integrated identification method and equipment |
CN114155422A (en) * | 2021-11-24 | 2022-03-08 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for realizing visual question answering |
CN114330097A (en) * | 2021-11-26 | 2022-04-12 | 中国华能集团清洁能源技术研究院有限公司 | Heterogeneous data and deep learning wind power cluster power prediction method and device |
CN114186039A (en) * | 2021-11-26 | 2022-03-15 | 北京百度网讯科技有限公司 | A visual question answering method, device and electronic device |
CN114170477A (en) * | 2021-11-30 | 2022-03-11 | 华东师范大学 | A Multimodal Fusion Mechanical Defect Detection Method Based on Attention Graph Convolutional Network |
CN114170477B (en) * | 2021-11-30 | 2025-04-11 | 华东师范大学 | A multimodal fusion mechanical defect detection method based on attention graph convolutional network |
CN114401135A (en) * | 2022-01-14 | 2022-04-26 | 国网河北省电力有限公司电力科学研究院 | Internal threat detection method based on LSTM-Attention user and entity behavior analysis technology |
CN114267003A (en) * | 2022-03-02 | 2022-04-01 | 城云科技(中国)有限公司 | Road damage detection method, device and application |
CN114691680A (en) * | 2022-03-07 | 2022-07-01 | 盛景智能科技(嘉兴)有限公司 | Maintenance case information query method, device, electronic device and storage medium |
CN114972792A (en) * | 2022-06-06 | 2022-08-30 | 平安科技(深圳)有限公司 | Question-answering method, device, equipment and storage medium based on bimodal feature fusion |
CN114937041A (en) * | 2022-07-25 | 2022-08-23 | 聊城市博源节能科技有限公司 | Method and system for detecting defects of copper bush of oil way of automobile engine |
CN117173530A (en) * | 2023-11-02 | 2023-12-05 | 中国科学院自动化研究所 | Target abnormality detection method and device |
CN117173530B (en) * | 2023-11-02 | 2024-02-13 | 中国科学院自动化研究所 | Target abnormality detection method and device |
WO2025100343A1 (en) * | 2023-11-06 | 2025-05-15 | 東京エレクトロン株式会社 | Information processing method, information processing device, and computer program |
CN118297898A (en) * | 2024-04-01 | 2024-07-05 | 天津大学 | Multi-mode defect quality detection method and system |
CN118379602A (en) * | 2024-06-25 | 2024-07-23 | 浙江大学 | Method and system for enhancing semiconductor defect analysis by semantic and visual interpretation |
CN118982833A (en) * | 2024-07-24 | 2024-11-19 | 国家电投集团河北电力有限公司 | New energy power data processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113095331A (en) | Visual question answering method, system and equipment for appearance defects of electric equipment and storage medium thereof | |
CN111325323B (en) | A method for automatic generation of power transmission and transformation scene description by fusing global information and local information | |
CN112132197B (en) | Model training, image processing method, device, computer equipment and storage medium | |
CN107274451A (en) | Isolator detecting method and device based on shared convolutional neural networks | |
CN115240075B (en) | Construction and training method of electric power vision multi-granularity pre-training large model | |
CN111027631B (en) | X-ray image classification and identification method for judging crimping defects of high-voltage strain clamp | |
CN117557775A (en) | Substation power equipment detection method and system based on infrared and visible light fusion | |
CN112967248B (en) | Method, apparatus, medium and program product for generating defect image samples | |
CN114821155A (en) | A multi-label classification method and system based on deformable NTS-NET neural network | |
CN113312499A (en) | Power safety early warning method and system based on knowledge graph | |
CN112668638A (en) | Image aesthetic quality evaluation and semantic recognition combined classification method and system | |
CN113536944A (en) | Image recognition-based distribution line inspection data recognition and analysis method | |
CN112767351B (en) | Substation equipment defect detection method based on sensitive position dependence analysis | |
CN118279664A (en) | Identification method and system for mountain fire of corridor of power transmission line | |
Kyem et al. | Weather-adaptive synthetic data generation for enhanced power line inspection using stargan | |
CN119444672A (en) | A Transmission Line Insulator Defect Detection Method Based on Adaptive Hybrid Attention | |
CN112669264A (en) | Artificial intelligence defect identification method and system for unmanned aerial vehicle routing inspection of distribution network line | |
CN117788979A (en) | Model pre-training method, model pre-training device, computer device, and storage medium | |
CN116485802A (en) | Insulator flashover defect detection method, device, equipment and storage medium | |
CN111402223B (en) | Transformer substation defect problem detection method using transformer substation video image | |
CN116416603A (en) | AR-based cable connection assembly quality analysis system | |
Li et al. | A fault diagnosis system based on case decision technology for uav inspection of power lines | |
Markovic et al. | Exploring power line arc detection using YOLOv8 computer vision models | |
Alotaibi et al. | Vision Inspection of Power Lines with Deep Learning | |
CN119763050B (en) | Inspection method and system for power grid system faults |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210709 |