Nothing Special   »   [go: up one dir, main page]

CN117854014B - A comprehensive method for automatically capturing and analyzing abnormal phenomena - Google Patents

A comprehensive method for automatically capturing and analyzing abnormal phenomena Download PDF

Info

Publication number
CN117854014B
CN117854014B CN202410264045.3A CN202410264045A CN117854014B CN 117854014 B CN117854014 B CN 117854014B CN 202410264045 A CN202410264045 A CN 202410264045A CN 117854014 B CN117854014 B CN 117854014B
Authority
CN
China
Prior art keywords
data
image
abnormal
time
temperature
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.)
Active
Application number
CN202410264045.3A
Other languages
Chinese (zh)
Other versions
CN117854014A (en
Inventor
张颖
曹舒
黄天富
王文静
吴志武
陈子琳
陈适
郭银婷
童承鑫
林雨欣
王春光
林彤尧
黄汉斌
涂彦昭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Fujian Electric Power Co Ltd
Marketing Service Center of State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Fujian Electric Power Co Ltd
Marketing Service Center of State Grid Fujian Electric Power Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Fujian Electric Power Co Ltd, Marketing Service Center of State Grid Fujian Electric Power Co Ltd filed Critical State Grid Fujian Electric Power Co Ltd
Priority to CN202410264045.3A priority Critical patent/CN117854014B/en
Publication of CN117854014A publication Critical patent/CN117854014A/en
Application granted granted Critical
Publication of CN117854014B publication Critical patent/CN117854014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/478Contour-based spectral representations or scale-space representations, e.g. by Fourier analysis, wavelet analysis or curvature scale-space [CSS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/50Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to an automatic capturing and analyzing method for comprehensive abnormal phenomena, which adjusts the updating speed of a background model through a dynamic learning rate, adapts to environmental illumination and dynamic background change, integrates various background modeling methods and dynamic weight coefficients, and realizes accurate background modeling and foreground extraction; through feature segmentation and multi-level network structure feature extraction, the fine structure and the large-scale structure of the image are comprehensively described, and the feature description accuracy is improved; by combining acoustic data preprocessing and characteristic parameter extraction, the image technology is assisted to detect the abnormality, so that the capturing accuracy of the abnormality is improved; the abnormal motion and state of the equipment are timely found out by analyzing the equipment motion data in real time, and the response speed and instantaneity of the system are improved; the abnormal electric energy and temperature parameters of the equipment are captured and analyzed through a real-time abnormality index analysis algorithm, so that comprehensive equipment state analysis is realized.

Description

一种综合异常现象自动捕捉与分析方法A comprehensive method for automatically capturing and analyzing abnormal phenomena

技术领域Technical Field

本发明涉及捕捉和数据分析技术领域,主要涉及一种综合异常现象自动捕捉与分析方法。The invention relates to the technical field of capture and data analysis, and mainly to a method for automatically capturing and analyzing comprehensive abnormal phenomena.

背景技术Background Art

异常现象是指在某一特定环境或条件下,系统、设备或软件的行为偏离了预期或正常的行为;传统的异常现象捕捉方法主要依赖于人工观察和检测。例如,系统管理员或维护人员通过查看系统日志、监控仪表板或直接观察系统行为来捕捉异常;传统的异常现象捕捉和分析方法主要依赖于人工,存在效率低、准确性差、及时性差、复杂性高、主观性强的问题,随着计算机技术和数据分析技术的发展,越来越多的自动化工具和方法被应用于异常现象的捕捉和分析,这些技术提供了更高的效率、更好的准确性和更强的自动化能力。Anomalies refer to the behavior of a system, device, or software that deviates from the expected or normal behavior under a specific environment or condition. Traditional methods of capturing anomalies mainly rely on manual observation and detection. For example, system administrators or maintenance personnel capture anomalies by viewing system logs, monitoring dashboards, or directly observing system behavior. Traditional methods of capturing and analyzing anomalies mainly rely on manual labor, which has problems such as low efficiency, poor accuracy, poor timeliness, high complexity, and strong subjectivity. With the development of computer technology and data analysis technology, more and more automated tools and methods are being applied to the capture and analysis of anomalies. These technologies provide higher efficiency, better accuracy, and stronger automation capabilities.

例如KR102595182B1《图像异常检测方法》提供了一种“使用在工厂中产生的对象的图像来检测对象中的异常的方法,并且图像建模单元接收对象的输入图像并产生输出图像。建模生成步骤,多重分布步骤,用于根据图像建模生成步骤计算多个参数,并生成由多个参数组成的多重分布,以及异常检测单元,多重分布步骤的多重分布和异常检测单元多重分布可以包括异常确定步骤以使用阈值来检测对象或图像中的异常”,但该方法主要基于图像数据进行异常检测,而不考虑其他数据源,这意味着在某些情况下,可能会忽略了其他感知数据,如声音、振动等对异常检测的贡献,导致检测准确性的下降;且该方法仅使用图像建模和多重分布来确定异常,在复杂的场景中,可能无法完全捕捉和区分各种异常类型。For example, KR102595182B1 "Image Anomaly Detection Method" provides a "method for detecting anomalies in an object using an image of an object generated in a factory, and an image modeling unit receives an input image of the object and generates an output image. A modeling generation step, a multiple distribution step, for calculating multiple parameters according to the image modeling generation step, and generating a multiple distribution composed of multiple parameters, and an anomaly detection unit, a multiple distribution of the multiple distribution step and an anomaly detection unit The multiple distribution may include an anomaly determination step to use a threshold to detect anomalies in an object or image", but this method mainly performs anomaly detection based on image data without considering other data sources, which means that in some cases, the contribution of other perceptual data such as sound, vibration, etc. to anomaly detection may be ignored, resulting in a decrease in detection accuracy; and this method only uses image modeling and multiple distributions to determine anomalies, and in complex scenarios, it may not be able to fully capture and distinguish various types of anomalies.

发明内容Summary of the invention

为了解决现有技术所存在的上述问题,本申请提供了一种综合异常现象自动捕捉与分析方法。In order to solve the above problems existing in the prior art, the present application provides a method for automatically capturing and analyzing comprehensive abnormal phenomena.

本申请的技术方案如下:The technical solution of this application is as follows:

一种综合异常现象自动捕捉与分析方法,所述方法包括:A method for automatically capturing and analyzing comprehensive abnormal phenomena, the method comprising:

选择监控设备对试验过程中的试验设备进行实时监测,获得监控设备实时数据,对所述监控设备实时数据进行数据预处理,其中,所述监控设备实时数据包括图像数据、声波数据、运动数据以及电参数和温度数据;Selecting a monitoring device to monitor the test device in real time during the test, obtaining real-time data of the monitoring device, and performing data preprocessing on the real-time data of the monitoring device, wherein the real-time data of the monitoring device includes image data, sound wave data, motion data, and electrical parameters and temperature data;

根据数据预处理后的声波数据进行声波异常检测,若声波异常,则对数据预处理后的图像数据进行背景建模并提取前景,利用所述前景进行特征提取,并根据提取的特征进行异常识别,并记录存在异常时的声波数据和图像数据;Performing acoustic anomaly detection based on the acoustic wave data after data preprocessing, if the acoustic wave is abnormal, performing background modeling on the image data after data preprocessing and extracting foreground, extracting features using the foreground, and identifying anomalies based on the extracted features, and recording the acoustic wave data and image data when the anomaly exists;

根据数据预处理后的运动数据进行异常运动检测,根据数据预处理后的电参数和温度数据对异常参数进行捕捉,并记录存在异常时的运动数据、电参数和温度数据;Perform abnormal motion detection based on the motion data after data preprocessing, capture abnormal parameters based on the electrical parameters and temperature data after data preprocessing, and record the motion data, electrical parameters and temperature data when the abnormality exists;

根据存在异常时的声波数据、图像数据、运动数据、电参数和温度数据判断存在的异常是否具有规律性,生成对应的分析评估。Based on the sound wave data, image data, motion data, electrical parameters and temperature data when the abnormality occurs, it is determined whether the existing abnormality has regularity, and a corresponding analysis and evaluation is generated.

优选的,根据数据预处理后的声波数据进行声波异常检测具体为:Preferably, the acoustic wave anomaly detection is performed according to the acoustic wave data after data preprocessing as follows:

利用傅里叶变换将数据预处理后的声波数据转换到频域,并在频域信号中提取频率成分和幅值作为声波的特性参数;The pre-processed acoustic wave data is converted into the frequency domain using Fourier transform, and the frequency components and amplitudes are extracted from the frequency domain signals as characteristic parameters of the acoustic wave;

计算提取的声波特性参数与试验设备正常工作状态下的声波特性参数之间的欧氏距离并进行比较;预设声波阈值,当计算出的欧氏距离超过声波阈值时,判定为异常声波。The Euclidean distance between the extracted acoustic wave characteristic parameters and the acoustic wave characteristic parameters under normal working conditions of the test equipment is calculated and compared; a sound wave threshold is preset, and when the calculated Euclidean distance exceeds the sound wave threshold, it is determined to be an abnormal sound wave.

优选的,对数据预处理后的图像数据进行背景建模具体为:Preferably, background modeling is performed on the image data after data preprocessing as follows:

对数据预处理后的图像数据进行灰度化处理,获得图像的灰度值,利用所述图像的灰度值初始化背景模型,以公式表达为:The image data after data preprocessing is grayed to obtain the gray value of the image, and the background model is initialized using the gray value of the image, which is expressed as:

;

式中,是第i个像素点在第一张图像的灰度值,作为背景模型的初始值,所述第一张图像源于图像数据序列;In the formula, is the gray value of the i-th pixel in the first image, which serves as the initial value of the background model , the first image is derived from an image data sequence;

根据图像的灰度值计算动态学习率,以公式表达为:Calculate dynamic learning rate based on the grayscale value of the image , expressed as:

;

式中,为第i个像素点在时间的动态学习率;为基础学习率;为调节参数;为第i个像素点在时间的图像的灰度值;为第i个像素点在时间的图像的灰度值;In the formula, is the i-th pixel at time Dynamic learning rate; is the basic learning rate; To adjust the parameters; is the i-th pixel at time The gray value of the image; is the i-th pixel at time The gray value of the image;

分别计算第i个像素点在图像窗口内的平均灰度值和中值灰度值,以公式表达为:Calculate the i-th pixel in the image window respectively The average grayscale value and median grayscale value within are expressed as follows:

;

;

式中,是图像序列中图像的图像窗口内的第i个像素点的平均灰度值;是图像序列中图像的图像窗口内的第i个像素点的中值灰度值;In the formula, is the image window of an image in the image sequence The average gray value of the i-th pixel in ; is the image window of an image in the image sequence The median gray value of the i-th pixel in ;

建立高斯混合模型来表示第i个像素点的灰度值的概率分布,以公式表达为:A Gaussian mixture model is established to represent the probability distribution of the gray value of the i-th pixel, which is expressed as:

;

式中,是第i个像素点的灰度值的概率分布;是高斯分量的数量;是第个高斯分量的权重、均值和方差。In the formula, is the probability distribution of the gray value of the i-th pixel; is the number of Gaussian components; It is The weights, means and variances of the Gaussian components.

优选的,提取前景具体为:Preferably, the extraction prospects are specifically:

结合动态学习率、均值、中值和高斯混合模型,综合更新图像数据中每个像素点的背景模型,以公式表达为:Combining the dynamic learning rate, mean, median and Gaussian mixture model, the background model of each pixel in the image data is comprehensively updated, which can be expressed as:

;

式中,是权重系数;In the formula, is the weight coefficient;

对图像序列中每一张图像,将像素点的灰度值与综合更新后的背景模型进行比较,若差值大于阈值,则判定为前景,以公式表达为:For each image in the image sequence, the grayscale value of the pixel is compared with the comprehensively updated background model. If the difference is greater than the threshold, it is determined to be the foreground, which can be expressed as:

;

式中,为在时间时第i个像素点是否为前景的二值表示,1表示是前景,0表示是背景;In the formula, For in time When , the binary value indicates whether the i-th pixel is the foreground, 1 indicates it is the foreground, and 0 indicates it is the background;

重复执行计算动态学习率、均值和中值背景建模、高斯混合模型建模、综合更新背景模型和提取前景的步骤,实时更新背景模型并提取前景。The steps of calculating a dynamic learning rate, mean and median background modeling, Gaussian mixture model modeling, comprehensively updating the background model and extracting the foreground are repeatedly executed to update the background model and extract the foreground in real time.

优选的,利用所述前景进行特征提取具体为对提取的前景图像进行特征分割,包括对前景图像进行二值化处理后对前景图像连通区域进行标记,并利用多层次网络结构对已标记的连通区域进行微观层次和宏观层次的特征提取,其中,所述微观层次特征包括局部密度和局部异质性,所述宏观层次特征包括区域对比度和区域均匀性,将微观层次和宏观层次的特征组合成综合特征向量。Preferably, the feature extraction using the foreground is specifically to perform feature segmentation on the extracted foreground image, including marking the connected areas of the foreground image after binarization of the foreground image, and performing micro-level and macro-level feature extraction on the marked connected areas using a multi-level network structure, wherein the micro-level features include local density and local heterogeneity, and the macro-level features include regional contrast and regional uniformity, and the micro-level and macro-level features are combined into a comprehensive feature vector.

优选的,根据提取的特征进行异常识别具体为:Preferably, the abnormality identification is performed according to the extracted features as follows:

利用余弦相似度计算综合特征向量和异常现象特征向量的相似度,如果相似度超过预设阈值,则标记综合特征向量对应图像区域存在异常现象,并构建异常现象图像数据集,完成初步筛选;The cosine similarity is used to calculate the similarity between the comprehensive feature vector and the abnormal phenomenon feature vector. If the similarity exceeds the preset threshold, the image area corresponding to the comprehensive feature vector is marked as having an abnormal phenomenon, and an abnormal phenomenon image dataset is constructed to complete the preliminary screening.

利用阈值分割和形态学操作对异常现象图像数据集进行定位标记,对每个定位标记的目标区域提取图像特征,构建异常特征库,将所述图像特征和异常特征库进行特征匹配确认目标区域是否存在对应的异常现象。The abnormal phenomenon image dataset is located and marked using threshold segmentation and morphological operations, image features are extracted from the target area of each location mark, an abnormal feature library is constructed, and feature matching is performed between the image features and the abnormal feature library to confirm whether there is a corresponding abnormal phenomenon in the target area.

优选的,所述特征匹配具体为:Preferably, the feature matching is specifically:

利用巴氏距离计算图像特征与异常特征库的颜色直方图的相似度,并比较颜色矩的差异;The similarity between the image features and the color histogram of the abnormal feature library is calculated using the Bhattacharyya distance. , and compare the differences in color moments;

利用差值法计算图像特征与异常特征库中异常发生时的频率差异The difference method is used to calculate the frequency difference between the image features and the abnormality feature library when the abnormality occurs ;

应用动态时间规整算法计算图像特征与异常特征库中异常时变特性的相似度The dynamic time warping algorithm is used to calculate the similarity between image features and abnormal time-varying characteristics in the abnormal feature library. ;

定义权重因子,满足Defining weight factors ,satisfy ;

利用颜色直方图的相似度、频率差异和时变特性的相似度计算综合相似度,以公式表达为:Using the similarity of color histograms , frequency difference Similarity to time-varying characteristics Calculate the comprehensive similarity, expressed as:

;

式中,为综合相似度,分别为颜色、频率和时变特性的权重;In the formula, is the comprehensive similarity, are the weights of color, frequency, and time-varying characteristics, respectively;

预设图像相似阈值,如果,则判定为存在对应的异常现象;Preset image similarity threshold ,if , it is determined that the corresponding abnormal phenomenon exists;

通过图像特征与异常特征库的匹配,确认目标区域是否存在异常现象。By matching the image features with the abnormal feature library, it is confirmed whether there are abnormal phenomena in the target area.

优选的,根据数据预处理后的运动数据进行异常运动检测具体为:Preferably, abnormal motion detection is performed based on the motion data after data preprocessing as follows:

根据试验设备正常运动的三维空间定位历史数据,建立异常运动检测模型,基于正常运动数据的统计特性,计算正常运动范围,并设定正常运动范围的阈值;According to the historical data of the three-dimensional spatial positioning of the normal movement of the test equipment, an abnormal movement detection model is established, and based on the statistical characteristics of the normal movement data, the normal movement range is calculated and the threshold of the normal movement range is set;

根据试验设备正常运动数据和异常运动数据的历史数据以及设定的正常运动范围阈值,利用支持向量机算法,训练异常运动检测模型,获得训练完成的异常运动检测模型;According to the historical data of normal motion data and abnormal motion data of the test equipment and the set normal motion range threshold, the abnormal motion detection model is trained by using the support vector machine algorithm to obtain the trained abnormal motion detection model;

将数据预处理后的实时运动数据输入到训练完成的异常运动检测模型中,当异常运动检测模型判断试验设备运动数据超出正常范围,则试验设备出现异常运动。The real-time motion data after data preprocessing is input into the trained abnormal motion detection model. When the abnormal motion detection model determines that the motion data of the test equipment exceeds the normal range, the test equipment has abnormal motion.

优选的,根据数据预处理后的电参数和温度数据对异常参数进行捕捉具体为:Preferably, the abnormal parameters are captured according to the electrical parameters and temperature data after data preprocessing as follows:

设定电流、电压和温度的初始阈值Set initial thresholds for current, voltage, and temperature ;

初始化异常指数,以公式表达为:Initialize exception index , expressed as:

;

获取数据预处理后的电能参数数据和温度数据,包括电流、电压和温度Obtain the electrical energy parameter data and temperature data after data preprocessing, including current ,Voltage and temperature ;

计算电流、电压和温度的实时偏差,以公式表达为:Calculates real-time deviations in current, voltage, and temperature , , , expressed as:

;

;

;

式中,分别代表电流、电压和温度与对应阈值的偏差;In the formula, , , Represent the deviation of current, voltage and temperature from the corresponding threshold respectively;

计算偏差的平方和以及各参数的变化率,以公式表达为:Calculate the sum of squares of the deviations and the rate of change of each parameter, expressed as:

式中,是偏差的平方和;分别代表电流、电压和温度的变化率;In the formula, is the sum of squares of deviations; , , Represent the rate of change of current, voltage and temperature respectively;

计算电流、电压和温度之间的相关性系数,以公式表达为:Calculate the correlation coefficient between current, voltage and temperature, expressed as:

;

;

;

式中,分别代表电流与电压、电流与温度、电压与温度之间的相关性系数;In the formula, , , Respectively represent the correlation coefficients between current and voltage, current and temperature, and voltage and temperature;

利用傅里叶变换以及能量谱密度计算获得电流、电压和温度的频域特性The frequency domain characteristics of current, voltage and temperature are obtained by Fourier transform and energy spectral density calculation. ;

基于偏差、变化率、相关性系数和频域特性,计算异常指数,以公式表达为:Calculate anomaly index based on deviation, rate of change, correlation coefficient and frequency domain characteristics , expressed as:

;

式中,为权重系数;是异常指数;In the formula, is the weight coefficient; is the anomaly index;

如果异常指数超过根据经验法预设的警戒值,则判定对应的电能参数数据和温度数据为异常参数。If the abnormal index If the warning value preset according to the empirical method is exceeded, the corresponding electric energy parameter data and temperature data are determined to be abnormal parameters.

优选的,根据存在异常时的声波数据、图像数据、运动数据、电参数和温度数据判断存在的异常是否具有规律性,生成对应的分析评估报告具体为:Preferably, the acoustic wave data, image data, motion data, electrical parameters and temperature data when the abnormality exists are used to determine whether the abnormality exists with regularity, and the corresponding analysis and evaluation report is generated specifically as follows:

通过存在异常时的声波数据、图像数据、运动数据、电参数和温度数据的时间间隔和持续时间确定是否存在特定时间段或时间间隔内的异常集中;Determine whether there is a concentration of abnormalities within a specific time period or time interval by using the time interval and duration of the acoustic wave data, image data, motion data, electrical parameters, and temperature data when the abnormality exists;

通过存在异常时的图像数据中的像素或存在异常时的声波数据对应的传感器的位置,分析异常数据在空间上的分布,确定是否存在特定区域或位置的异常集聚;By analyzing the position of the sensor corresponding to the pixel in the image data when the abnormality exists or the acoustic wave data when the abnormality exists, the spatial distribution of the abnormal data is analyzed to determine whether there is an abnormal cluster in a specific area or position;

通过存在异常时的运动数据、电参数和温度数据,分析对应的变化趋势,存在的异常时的运动数据、电参数和温度数据是否呈现逐渐增加或减少的趋势,或者是否存在周期性的波动;By analyzing the corresponding change trends of the motion data, electrical parameters and temperature data when the abnormality exists, whether the motion data, electrical parameters and temperature data when the abnormality exists show a trend of gradual increase or decrease, or whether there is periodic fluctuation;

根据对应的时间、空间和变化趋势的分析,生成相应的分析评估报告。Generate a corresponding analysis and evaluation report based on the analysis of time, space and change trends.

与现有技术相比,本发明的有益效果是:Compared with the prior art, the present invention has the following beneficial effects:

1)本发明提供了一种综合异常现象自动捕捉与分析方法,在图像数据的背景建模过程中,使用动态学习率、均值、中值和高斯混合模型综合更新背景模型,通过动态学习率的引入,算法能够自适应地调整背景模型的更新速度,从而更好地适应环境光照变化和动态背景变化,通过综合多种背景建模方法,并结合动态权重系数,本发明能够在各种场景下都实现准确的背景建模和前景提取;1) The present invention provides a comprehensive method for automatically capturing and analyzing abnormal phenomena. In the process of background modeling of image data, a dynamic learning rate, mean, median and Gaussian mixture model are used to comprehensively update the background model. By introducing a dynamic learning rate, the algorithm can adaptively adjust the update speed of the background model, thereby better adapting to changes in ambient lighting and dynamic background changes. By integrating multiple background modeling methods and combining dynamic weight coefficients, the present invention can achieve accurate background modeling and foreground extraction in various scenarios.

2)本发明提供了一种综合异常现象自动捕捉与分析方法,通过对前景进行特征分割和多层次网络结构特征提取,实现了对图像内部细微结构和大范围结构的全面描述,采用多种特征提取方法,如局部密度、局部异质性、区域对比度和区域均匀性等,能够准确地揭示图像内部的结构和变化,提高特征的描述准确性;2) The present invention provides a comprehensive method for automatically capturing and analyzing abnormal phenomena. By performing feature segmentation on the foreground and extracting multi-level network structure features, a comprehensive description of the subtle structure and large-scale structure inside the image is achieved. A variety of feature extraction methods, such as local density, local heterogeneity, regional contrast, and regional uniformity, can be used to accurately reveal the structure and changes inside the image and improve the accuracy of feature description.

3)本发明提供了一种综合异常现象自动捕捉与分析方法,异常识别部分通过计算特征向量与异常现象特征向量的余弦相似度,将相似度超过阈值的图像区域标记为可能存在异常现象,进一步通过匹配特征库来准确判断异常现象;3) The present invention provides a comprehensive method for automatically capturing and analyzing abnormal phenomena. The abnormality recognition part calculates the cosine similarity between the feature vector and the feature vector of the abnormal phenomenon, marks the image area where the similarity exceeds the threshold as a possible abnormal phenomenon, and further accurately judges the abnormal phenomenon by matching the feature library;

本发明提供了一种综合异常现象自动捕捉与分析方法,通过三维空间位置数据进行异常运动检测,通过建立模型进行实时分析运动数据,以检测设备的异常;利用电参数和温度数据的分析,引入实时异常指数分析算法计算设备的异常指数,实现了对设备异常参数的实时捕捉与分析,评估设备的工作状态,发现潜在异常问题,提高了方法的响应速度和实时性。The present invention provides a comprehensive abnormal phenomenon automatic capture and analysis method, which performs abnormal motion detection through three-dimensional spatial position data, and analyzes the motion data in real time by building a model to detect the abnormality of the equipment; utilizes the analysis of electrical parameters and temperature data, introduces a real-time abnormal index analysis algorithm to calculate the abnormal index of the equipment, realizes the real-time capture and analysis of the abnormal parameters of the equipment, evaluates the working status of the equipment, discovers potential abnormal problems, and improves the response speed and real-time performance of the method.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明实施例的方法流程图。FIG1 is a flow chart of a method according to an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面对本发明的具体实施方式进行描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。The specific implementation modes of the present invention are described below to facilitate those skilled in the art to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

本发明提供以下技术方案:一种综合异常现象自动捕捉与分析方法。The present invention provides the following technical solution: a method for automatically capturing and analyzing comprehensive abnormal phenomena.

实施例1Example 1

如图1所示,本实施例提供了一种综合异常现象自动捕捉与分析方法,具体步骤包括:As shown in FIG1 , this embodiment provides a method for automatically capturing and analyzing comprehensive abnormal phenomena, and the specific steps include:

S1、选择监控设备对试验过程中的试验设备进行实时监测,获得监控设备实时数据,对所述监控设备实时数据进行数据预处理,其中,所述监控设备实时数据包括图像数据、声波数据、运动数据以及电参数和温度数据;S1. Select a monitoring device to monitor the test device in real time during the test, obtain real-time data of the monitoring device, and perform data preprocessing on the real-time data of the monitoring device, wherein the real-time data of the monitoring device includes image data, sound wave data, motion data, and electrical parameters and temperature data;

所述监控设备包括摄像头、声波传感器、三维传感器、电参数和温度传感器;The monitoring equipment includes a camera, an acoustic wave sensor, a three-dimensional sensor, an electrical parameter and a temperature sensor;

S11、选择分辨率高、响应速度快的摄像头,根据监控区域的大小和形状,确定摄像头的数量和安装位置,并调整摄像头的角度和焦距确保能够覆盖到所有需要监控的区域,进一步,摄像头实时捕捉试验设备运行过程中的图像数据;S11. Select cameras with high resolution and fast response speed, determine the number and installation location of cameras according to the size and shape of the monitoring area, and adjust the angle and focal length of the cameras to ensure that all areas that need to be monitored can be covered. Furthermore, the cameras capture image data in real time during the operation of the test equipment;

S12、选择灵敏度高、抗干扰能力强的声波传感器,安装于试验设备关键部位,进一步的,声波传感器实时捕捉设备运行时产生的声波数据;S12. Select an acoustic wave sensor with high sensitivity and strong anti-interference ability and install it in the key parts of the test equipment. Furthermore, the acoustic wave sensor captures the acoustic wave data generated by the equipment in real time during operation;

S13、选择精度高、稳定性好的三维传感器定位,根据试验设备的大小和形状,确定三维传感器的安装位置,调整三维传感器的参数确保能够准确捕捉试验设备的三维运动,进一步的,三维传感器实时捕捉设备在三维空间中的位置和运动数据;S13, selecting a three-dimensional sensor with high precision and good stability for positioning, determining the installation position of the three-dimensional sensor according to the size and shape of the test equipment, adjusting the parameters of the three-dimensional sensor to ensure that the three-dimensional movement of the test equipment can be accurately captured, and further, the three-dimensional sensor captures the position and movement data of the equipment in three-dimensional space in real time;

S14、选择电参数和温度传感器的安装位置,确保能够准确捕捉设备的电参数和温度数据,进一步的,电参数和温度传感器实时捕捉设备的电参数(电流、电压)和温度数据;S14, selecting an installation position of an electrical parameter and temperature sensor to ensure that the electrical parameter and temperature data of the device can be accurately captured. Furthermore, the electrical parameter and temperature sensor captures the electrical parameters (current, voltage) and temperature data of the device in real time;

当选择并安装完上述监控设备后,对试验环境进行优化,调整光源的位置和灰度,减少阴影和反光,确保图像的清晰度;清理监控区域,确保无无关物体进入摄像头视野,标记设备的边界,避免设备在运动过程中进入摄像头的盲区;根据环境噪音的大小,调整声波传感器的灵敏度,确保声波传感器在各种环境条件下都能够准确捕捉到设备的声波信号;After selecting and installing the above monitoring equipment, optimize the test environment, adjust the position and grayscale of the light source, reduce shadows and reflections, and ensure image clarity; clean the monitoring area to ensure that no irrelevant objects enter the camera's field of view, mark the boundaries of the equipment to prevent the equipment from entering the camera's blind spot during movement; adjust the sensitivity of the acoustic sensor according to the size of the environmental noise to ensure that the acoustic sensor can accurately capture the equipment's acoustic signal under various environmental conditions;

对监控设备实时数据进行数据预处理,包括:Perform data preprocessing on real-time data of monitoring equipment, including:

对图像数据进行简单的去噪处理,得到数据预处理后的图像数据;对声波数据从模拟信号转换为数字信号,并进行滤波处理,去除噪声干扰,得到数据预处理后的声波数据;对运动数据通过对比校准法进行校准并进行滤波处理,得到数据预处理后的运动数据;对电参数与温度数据进行模数转换以及通过对比校准法进行数据校准,得到数据预处理后的电参数和温度数据;Perform simple denoising on the image data to obtain image data after data preprocessing; convert the acoustic wave data from analog signals to digital signals, and perform filtering to remove noise interference to obtain acoustic wave data after data preprocessing; calibrate the motion data by using the comparative calibration method and perform filtering to obtain motion data after data preprocessing; perform analog-to-digital conversion on the electrical parameter and temperature data and perform data calibration by using the comparative calibration method to obtain electrical parameter and temperature data after data preprocessing;

通过对上述数据的数据预处理为后续异常现象捕捉与分析提供数据依据;Preprocessing the above data provides data basis for subsequent abnormal phenomenon capture and analysis;

S2、根据数据预处理后的声波数据进行声波异常检测,并记录存在异常时的声波数据;S2. Performing acoustic wave anomaly detection based on the acoustic wave data after data preprocessing, and recording the acoustic wave data when anomalies exist;

利用傅里叶变换将数据预处理后的声波数据从时域转换到频域,并在频域信号中提取主要的频率成分和其对应的幅值,作为声波的特性参数;计算提取的声波特性参数与正常工作状态下的声波特性参数之间的欧氏距离并进行比较;根据经验法设定一个阈值,当计算出的欧氏距离超过该阈值时,判定为异常声波,辅助图像技术进行异常检测;The pre-processed acoustic wave data is converted from the time domain to the frequency domain using Fourier transform, and the main frequency components and their corresponding amplitudes are extracted from the frequency domain signal as characteristic parameters of the acoustic wave; the Euclidean distance between the extracted acoustic wave characteristic parameters and the acoustic wave characteristic parameters under normal working conditions is calculated and compared; a threshold is set according to the empirical method, and when the calculated Euclidean distance exceeds the threshold, it is determined to be an abnormal acoustic wave, and the auxiliary image technology is used for abnormality detection;

S3、若声波数据异常,则对数据预处理后的图像数据进行背景建模并提取前景,利用所述前景进行特征提取进行异常识别;S3. If the sound wave data is abnormal, background modeling is performed on the image data after data preprocessing and foreground is extracted, and feature extraction is performed using the foreground to identify abnormalities;

S31、背景建模;S31, background modeling;

S311、初始化背景模型;S311, initializing the background model;

对数据预处理后的图像数据进行灰度化处理,得到适合后续处理的图像数据格式,即图像的像素数据;Grayscale processing is performed on the image data after data preprocessing to obtain an image data format suitable for subsequent processing, that is, pixel data of the image;

利用第一张图像的灰度值初始化背景模型,以公式表达为:The background model is initialized using the grayscale value of the first image, expressed as:

;

式中,是第i个像素点在第一张图像的灰度值,作为背景模型的初始值,所述第一张图像源于图像数据序列,上述初始化背景模型为后续背景模型的更新和前景的提取奠定基础;In the formula, is the gray value of the i-th pixel in the first image, which serves as the initial value of the background model , the first image is derived from an image data sequence, and the above-mentioned initialized background model lays the foundation for subsequent background model updating and foreground extraction;

更进一步的,为了能够更好地适应环境光照变化和动态背景变化,提高前景提取的准确性,对于不同图像中的第i个像素点,基于其在图像数据序列中与前一张背景模型的灰度差值,计算动态学习率,以公式表达为:Furthermore, in order to better adapt to changes in ambient lighting and dynamic background changes and improve the accuracy of foreground extraction, for the i-th pixel in different images, the dynamic learning rate is calculated based on the grayscale difference between it and the previous background model in the image data sequence. , expressed as:

;

式中,为第i个像素点在时间的动态学习率,用于控制背景模型的更新速度,源于像素点的灰度变化情况;为基础学习率,是一个根据经验法预设定的常数,用于控制学习率的基础值;为调节参数,是一个根据经验法预设定的常数,控制学习率的变化速度,以适应不同场景的变化;为第i个像素点在时间的图像的灰度值;为第i个像素点在时间的图像的灰度值;In the formula, is the i-th pixel at time The dynamic learning rate is used to control the update speed of the background model, which is derived from the grayscale change of the pixel points; is the basic learning rate, which is a constant preset according to the empirical method and is used to control the basic value of the learning rate; It is a constant preset by empirical method to adjust the parameter, which controls the speed of change of learning rate to adapt to the changes of different scenarios. is the i-th pixel at time The gray value of the image; is the i-th pixel at time The gray value of the image;

S312、进行均值和中值背景建模;S312, performing mean and median background modeling;

分别计算第i个像素点在图像窗口内的平均灰度值和中值灰度值,并将所述平均灰度值和中值灰度值作为背景模型的一部分,以公式表达为:Calculate the i-th pixel in the image window respectively The average grayscale value and median grayscale value in the background are expressed as follows:

;

;

式中,是第i个像素点的平均灰度值,源于图像窗口内的图像序列;是第i个像素点的中值灰度值,源于图像窗口内的图像序列;上述两种方法能够消除背景模型中临时性噪声和光照变化的影响;In the formula, is the average gray value of the i-th pixel, derived from the image window The image sequence within; is the median gray value of the i-th pixel, derived from the image window The above two methods can eliminate the influence of temporary noise and illumination changes in the background model;

S313、进行高斯混合模型建模;S313, performing Gaussian mixture modeling;

建立高斯混合模型来表示第i个像素点的灰度值的概率分布,以公式表达为:A Gaussian mixture model is established to represent the probability distribution of the gray value of the i-th pixel, which is expressed as:

式中,是第i个像素点的灰度值的概率分布,由高斯混合模型表示;是高斯分量的数量,是一个根据经验法预设定的常数;是第个高斯分量的权重、均值和方差,通过EM算法实时更新,以适应背景的动态变化;In the formula, is the probability distribution of the gray value of the i-th pixel, represented by a Gaussian mixture model; is the number of Gaussian components, which is a constant preset by empirical method; It is The weights, means and variances of the Gaussian components are updated in real time through the EM algorithm to adapt to the dynamic changes of the background;

S32、提取前景;S32, extracting foreground;

S321、综合更新背景模型;S321, comprehensively update the background model;

结合动态学习率、均值、中值和高斯混合模型,综合更新图像数据中每个像素点的背景模型,以公式表达为:Combining the dynamic learning rate, mean, median and Gaussian mixture model, the background model of each pixel in the image data is comprehensively updated, which can be expressed as:

;

式中,是权重系数,根据经验法预设定的常数,调节不同模型的贡献度,以实现更为准确的背景建模;In the formula, is the weight coefficient, which adjusts the contribution of different models according to the constants preset by the empirical method to achieve more accurate background modeling;

S322、对于每一张图像,将像素点的灰度值与综合更新后的背景模型进行比较,若差值大于阈值,则判定为前景,以公式表达为:S322. For each image, the grayscale value of the pixel is compared with the comprehensively updated background model. If the difference is greater than the threshold, it is determined to be the foreground, which is expressed as:

式中,为在时间时第i个像素点是否为前景的二值表示,1表示是前景,0表示是背景;通过上述步骤,能够实时提取出图像序列中的动态前景;In the formula, For in time The binary representation of whether the i-th pixel is the foreground, 1 indicates that it is the foreground, and 0 indicates that it is the background. Through the above steps, the dynamic foreground in the image sequence can be extracted in real time;

进一步的,对于图像序列中的每一张图像进行综合的循环更新,并重复执行计算动态学习率、均值和中值背景建模、高斯混合模型建模、综合更新背景模型和提取前景的步骤,以实时更新背景模型并提取前景,确保在各种场景下都能准确识别异常现象;Furthermore, a comprehensive cyclic update is performed for each image in the image sequence, and the steps of calculating a dynamic learning rate, mean and median background modeling, Gaussian mixture modeling, comprehensive updating of the background model, and foreground extraction are repeatedly performed to update the background model and extract the foreground in real time, thereby ensuring that abnormal phenomena can be accurately identified in various scenarios;

本实施例通过引入动态学习率,能够自适应地调整背景模型的更新速度,从而更好地适应环境光照变化和动态背景变化,通过综合多种背景建模方法,并结合动态权重系数,本实施例能够在各种场景下都实现准确的背景建模和前景提取。By introducing a dynamic learning rate, this embodiment can adaptively adjust the update speed of the background model to better adapt to changes in ambient lighting and dynamic background changes. By integrating multiple background modeling methods and combining dynamic weight coefficients, this embodiment can achieve accurate background modeling and foreground extraction in various scenarios.

S33、特征提取;S33, feature extraction;

进一步,对上述步骤获得的前景进行特征分割,具体过程如下:Furthermore, feature segmentation is performed on the foreground obtained in the above steps. The specific process is as follows:

S331、对前景图像进行二值化处理;S331, performing binarization processing on the foreground image;

S3311、阈值选择;S3311, threshold selection;

在图像二值化处理的第一步中,需要选择合适的阈值方法,本实施例提供了两种阈值方法,包括全局阈值法和自适应阈值法,其中:In the first step of the image binarization process, it is necessary to select a suitable threshold method. This embodiment provides two threshold methods, including a global threshold method and an adaptive threshold method, where:

全局阈值法适用于背景和前景灰度差异较大的情况,通过计算整个图像的灰度直方图来选择一个合适的全局阈值T;The global threshold method is suitable for situations where the grayscale difference between the background and foreground is large. An appropriate global threshold T is selected by calculating the grayscale histogram of the entire image.

自适应阈值法则适用于背景和前景灰度差异不一致的情况,自适应阈值法会对于图像中的每个像素,计算其局部邻域的灰度均值或中值作为阈值;The adaptive thresholding method is applicable to the situation where the grayscale difference between the background and foreground is inconsistent. For each pixel in the image, the adaptive thresholding method calculates the grayscale mean or median of its local neighborhood as the threshold;

根据图像的具体情况选择合适的阈值方法;Choose the appropriate threshold method according to the specific situation of the image;

S3312、阈值应用;S3312, threshold application;

有了阈值后,接下来就是应用这个阈值,对图像中的每个像素,根据其灰度值和对应的阈值,确定该像素是属于前景还是背景,从而完成图像的二值化处理;After having the threshold, the next step is to apply this threshold to each pixel in the image, according to its gray value and the corresponding threshold, to determine whether the pixel belongs to the foreground or the background, thus completing the binarization of the image;

S332、连通区域的分析与标记;S332, analysis and marking of connected regions;

初始化图像的标记矩阵,确保所有像素点的标记初始为0,为后续的连通区域标记打下基础;Initialize the label matrix of the image to ensure that the labels of all pixels are initially 0, laying the foundation for subsequent connected area labeling;

从图像的左上角开始,逐行逐列扫描每一个像素,对于每个前景像素,检查其邻域内的像素点的标记情况,进行相应的区域标记和合并;Starting from the upper left corner of the image, scan each pixel row by row and column by column. For each foreground pixel, check the marking status of the pixels in its neighborhood, and perform corresponding region marking and merging.

优选的,在整个扫描过程中,需要记录所有的区域合并信息,确保每个连通区域有一个唯一的标记;Preferably, during the entire scanning process, all region merging information needs to be recorded to ensure that each connected region has a unique label;

进一步的,为准确全面的提取所有连通区域的特征,针对每个已标记的连通区域,本实施例构建了一个多层次网络结构,所述多层次网络结构构建步骤具体为:Furthermore, in order to accurately and comprehensively extract the features of all connected regions, for each marked connected region, this embodiment constructs a multi-level network structure, and the steps of constructing the multi-level network structure are specifically as follows:

在微观层次,定义每个联通区域的像素点为网络的一个节点,其中为像素点在图像中的行和列坐标,计算空间上相邻像素点的灰度差异权重,以公式表达为:At the micro level, define the pixels of each connected area is a node in the network, where For the row and column coordinates of the pixel in the image, calculate the grayscale difference weight of adjacent pixels in space , expressed as:

;

式中,分别是空间上相邻两个像素点的灰度值;是权重调节参数,根据经验法获得;是像素点采集时间差;上述过程构建了图像多层次网络结构的微观结构,通过灰度差异权重揭示像素点间的相似性和差异性,为后续特征提取奠定基础;In the formula, are the grayscale values of two adjacent pixels in space; and is the weight adjustment parameter, obtained by empirical method; is the time difference of pixel acquisition; the above process constructs the microstructure of the multi-level network structure of the image, reveals the similarities and differences between pixels through the grayscale difference weight, and lays the foundation for subsequent feature extraction;

在宏观层次,定义每个子区域为一个子网络,其中为子区域在图像中的行和列索引,计算相邻子区域的灰度差异权重,以公式表达为:At the macro level, define each sub-area is a subnetwork, where is the row and column index of the sub-region in the image, and calculates the grayscale difference weight of adjacent sub-regions , expressed as:

式中,是相邻两个子区域的灰度均值;是权重调节参数,根据经验法获得;是子区域采集时间差,上述过程旨在构建图像多层次网络结构的宏观结构,通过子区域间的灰度差异权重揭示区域间的关联性,为宏观特征提取提供基础;In the formula, is the grayscale mean of two adjacent sub-regions; and is the weight adjustment parameter, obtained by empirical method; is the time difference of sub-region acquisition. The above process aims to construct the macro structure of the multi-level network structure of the image, reveal the correlation between regions through the grayscale difference weights between sub-regions, and provide a basis for macro feature extraction;

进一步的,计算多层次网络结构特征的微观层次特征和宏观层次特征:Furthermore, the micro-level features and macro-level features of the multi-level network structure features are calculated:

在微观层次,计算局部密度和局部异质性,其中:At the microscopic level, local density and local heterogeneity are calculated, where:

局部密度表示节点周围的平均连接权重,以公式表达为:Local density represents nodes The average connection weight around , expressed as:

;

局部异质性表示节点周围连接权重的变异性,以公式表达为:Local heterogeneity represents nodes Variability of surrounding connection weights , expressed as:

;

式中,是节点周围权重的平均值;是节点间的空间距离;是调节参数,根据经验法确定;表示节点的邻居节点的数量,即与节点直接相连的其他节点的总数;上述过程从微观层次提取图像的局部特征,揭示图像内部的细微结构和变化,为综合特征分析奠定基础;In the formula, is the average value of weights around the node; is the spatial distance between nodes; and is the adjustment parameter, determined by empirical method; Representation Node The number of neighbor nodes of the node The total number of other directly connected nodes; The above process extracts the local features of the image from the micro level, reveals the subtle structure and changes inside the image, and lays the foundation for comprehensive feature analysis;

在宏观层次,计算区域对比度和区域均匀性,其中:At the macroscopic level, regional contrast and regional uniformity are calculated, where:

区域对比度表示子网络与其相邻子网络的平均灰度差异,以公式表达为:Regional contrast represents the average grayscale difference between a subnetwork and its adjacent subnetworks , expressed as:

;

区域均匀性表示所有子网络灰度均值的变异性,以公式表达为:Regional uniformity represents the variability of the grayscale mean of all sub-networks , expressed as:

;

式中,是所有子网络灰度均值的平均值;是网络间的空间距离;是调节参数;是子网络的邻近子区域的数量,即与子网络相邻的其他子区域的总数;上述过程从宏观层次提取图像的区域特征,揭示图像的大范围结构和变化,为综合特征分析提供更全面的信息;In the formula, is the average of the grayscale means of all sub-networks; is the spatial distance between networks; and is the adjustment parameter; It is a subnetwork The number of neighboring sub-regions, that is, the number of neighboring sub-regions of the sub-network The total number of other adjacent sub-regions; the above process extracts the regional features of the image from the macro level, reveals the large-scale structure and changes of the image, and provides more comprehensive information for comprehensive feature analysis;

进一步的,将微观层次和宏观层次的特征组合成综合特征向量,以公式表达为:Furthermore, the features at the micro and macro levels are combined into a comprehensive feature vector , expressed as:

;

上述过程是整合不同层次的特征,形成一个综合特征向量,以全面描述图像的多层次结构特性;The above process is to integrate features at different levels to form a comprehensive feature vector to fully describe the multi-level structural characteristics of the image;

最后,为确保每个特征在同一量纲下,对特征向量中的每个特征进行归一化,以公式表达为:Finally, to ensure that each feature is in the same dimension, the feature vector Each feature in Normalized, expressed as:

;

最终,输出由每个归一化后的多层次网络结构图像特征组成的特征向量;上述归一化处理,消除了特征之间的量纲差异,使得每个特征在模型中的贡献均衡,提高模型的稳定性和准确性;Finally, the output is the normalized multi-level network structure image features The feature vector composed of ; The above normalization process eliminates the dimensional differences between features, making the contribution of each feature in the model balanced and improving the stability and accuracy of the model;

本申请通过对前景进行特征分割和多层次网络结构特征提取,实现了对图像内部细微结构和大范围结构的全面描述,采用多种特征提取方法,如局部密度、局部异质性、区域对比度和区域均匀性等,能够准确地揭示图像内部的结构和变化,提高特征的描述准确性。This application achieves a comprehensive description of the subtle and large-scale structures inside the image by performing feature segmentation on the foreground and extracting multi-level network structure features. It uses a variety of feature extraction methods, such as local density, local heterogeneity, regional contrast, and regional uniformity, which can accurately reveal the structure and changes inside the image and improve the accuracy of feature description.

S34、利用步骤S33中提取的特征进行异常识别,并记录存在异常时图像数据;S34, using the features extracted in step S33 to identify abnormalities, and recording image data when abnormalities exist;

S341、初步筛选;S341, preliminary screening;

首先基于步骤S33通过多层次网络结构方法得到每个图像区域的特征向量,对于每个图像区域,使用余弦相似度公式计算其特征向量与异常现象特征向量的相似度,如果相似度超过根据经验法设定的阈值,将该图像区域标记为可能存在异常现象,并构建异常现象图像数据集,以完成初步筛选;First, based on step S33, a feature vector of each image region is obtained by a multi-level network structure method. , for each image region, use the cosine similarity formula to calculate its feature vector and the anomaly feature vector If the similarity exceeds the threshold set by the empirical method, the image area is marked as a possible abnormality, and an abnormality image dataset is constructed to complete the preliminary screening;

优选的,所述异常现象特征向量,通过以下手段得到:Preferably, the abnormal phenomenon feature vector , obtained by the following means:

收集一定数量的已知异常现象的图像样本,对每个异常样本采用多层次网络结构方法进行特征提取,得到每个样本的异常现象特征向量;随着时间的推移和技术的发展,不断收集新的异常样本,并提取其特征向量,更新特征向量库;Collect a certain number of image samples with known abnormal phenomena, use a multi-level network structure method to extract features from each abnormal sample, and obtain the abnormal phenomenon feature vector of each sample. ; As time goes by and technology develops, new abnormal samples are continuously collected, their feature vectors are extracted, and the feature vector library is updated;

S342、异常识别;S342, abnormality identification;

对于异常现象图像数据集中被标记为可能存在异常现象的图像区域,记录其位置、时间等信息;For image areas marked as possibly having abnormal phenomena in the abnormal phenomenon image dataset, record their location, time and other information;

S3421、构建异常特征库,将所述图像特征和异常特征库进行特征匹配确认目标区域是否存在对应的异常现象,特别地,本实施例建立电火花特征库进行电火花异常现象的识别,建立过程具体为:S3421, construct an abnormal feature library, perform feature matching between the image features and the abnormal feature library to confirm whether there is a corresponding abnormal phenomenon in the target area. In particular, this embodiment establishes an electric spark feature library to identify electric spark abnormal phenomena, and the establishment process is specifically as follows:

S34211、进行视觉特性的提取,利用轮廓近似方法和几何矩的计算提取电火花的主要形状特征,同时通过计算电火花区域的面积、周长和形状的紧凑度,量化大小和规则性特性;S34211. Extract visual characteristics, extract the main shape features of the EDM by using the contour approximation method and the calculation of geometric moments, and quantify the size and regularity characteristics by calculating the area, perimeter and shape compactness of the EDM area;

S34212、应用Canny算法和边缘方向直方图,准确描述边缘信息和边缘方向分布;S34212. Apply the Canny algorithm and edge direction histogram to accurately describe edge information and edge direction distribution;

S34213、着重分析颜色特性,在RGB颜色空间下计算并归一化颜色直方图,以消除光照的影响,同时计算一阶、二阶和三阶颜色矩,全面描述电火花的颜色均值、方差和偏度;S34213, focus on analyzing color characteristics, calculate and normalize the color histogram in RGB color space to eliminate the influence of illumination, and calculate the first-order, second-order and third-order color moments to fully describe the color mean, variance and skewness of the EDM;

S34214、测定电火花的闪烁频率,通过设定固定的时间窗口,如1秒,统计窗口内电火花出现的次数,从而计算出闪烁频率,进一步记录频率的变化,分析其稳定性和周期性,为后续的特征匹配提供依据;S34214, determining the flicker frequency of the electric spark, by setting a fixed time window, such as 1 second, counting the number of times the electric spark appears in the window, thereby calculating the flicker frequency, further recording the change of the frequency, analyzing its stability and periodicity, and providing a basis for subsequent feature matching;

S34215、分析电火花的亮度时变特性,计算每一帧图像中电火花区域的平均亮度,并构建亮度的时间序列,应用傅里叶变换,深入分析亮度变化的频率成分,揭示电火花亮度的时变规律;S34215. Analyze the time-varying characteristics of spark brightness, calculate the average brightness of the spark area in each frame of the image, and construct a time series of brightness. Apply Fourier transform to deeply analyze the frequency components of brightness changes and reveal the time-varying law of spark brightness.

通过上述操作,电火花的各项特征被全面提取并储存于特征库中,为后续的电火花识别和异常检测奠定了坚实基础;Through the above operations, the various features of the EDM are fully extracted and stored in the feature library, laying a solid foundation for subsequent EDM recognition and anomaly detection;

S3422、为了进一步确认是否存在电火花异常现象,对初步筛选后的可能是异常现象的图像区域进行更深入的特征提取,并将提取到的特征与电火花特征库中的特征进行匹配,以准确判断这些前景对象是否真的是电火花等异常现象,具体如下:S3422. In order to further confirm whether there is an abnormal phenomenon such as electric spark, a more in-depth feature extraction is performed on the image areas that may be abnormal phenomena after preliminary screening, and the extracted features are matched with the features in the electric spark feature library to accurately determine whether these foreground objects are really abnormal phenomena such as electric spark, as follows:

S34221、对初步筛选后的可能是异常现象的图像区域应用阈值分割和形态学操作进行定位标记,对于每个标记的目标区域,采用与对应异常特征库相同的方法来提取图像特征,本实施例采取与电火花特征库相同的方法提取;S34221. Apply threshold segmentation and morphological operation to the image areas that may be abnormal phenomena after preliminary screening to perform positioning and marking. For each marked target area, use the same method as the corresponding abnormal feature library to extract image features. This embodiment uses the same method as the electric spark feature library to extract;

S34222、进行特征匹配,首先使用巴氏距离Bhattacharyya distance计算图像特征与电火花特征库的颜色直方图的相似度,比较颜色矩的差异;S34222, perform feature matching, first use Bhattacharyya distance to calculate the similarity between the image feature and the color histogram of the EDM feature library , compare the differences in color moments;

利用差值法计算图像特征与电火花特征库中电火花的闪烁频率差异The difference between the image features and the spark frequency in the spark feature library is calculated using the difference method ;

应用动态时间规整算法计算图像特征与电火花特征库中电火花的亮度时变特性的相似度The dynamic time warping algorithm is used to calculate the similarity between the image features and the time-varying characteristics of the brightness of the spark in the spark feature library. ;

进一步,根据经验法定义权重因子,满足Furthermore, the weight factor is defined according to the empirical method ,satisfy ;

计算综合相似度,以公式表达为:Calculate the comprehensive similarity, expressed as:

;

式中,为综合相似度,分别为颜色、闪烁频率和亮度时变特性的权重;In the formula, is the comprehensive similarity, are the weights of the time-varying characteristics of color, flicker frequency, and brightness, respectively;

根据历史数据和经验,设定一个合适的阈值,如果,则判定为存在电火花异常现象;Set an appropriate threshold based on historical data and experience ,if , it is determined that there is an abnormal spark phenomenon;

通过与电火花特征库的匹配,来确认目标区域是否真的存在电火花异常现象;By matching with the spark feature library, it is possible to confirm whether there is spark anomaly in the target area.

本申请通过声波数据的预处理和特性参数提取,辅助图像技术进行异常检测,进一步提高了异常电火花现象的捕捉准确性。This application further improves the accuracy of capturing abnormal electric spark phenomena by preprocessing acoustic wave data and extracting characteristic parameters, and performing abnormality detection with auxiliary image technology.

S4、根据数据预处理后的运动数据进行异常运动检测,并记录存在异常时的运动数据;S4, performing abnormal motion detection according to the motion data after data preprocessing, and recording the motion data when abnormality exists;

根据试验设备正常运动的三维空间定位历史数据,利用现有的神经网络建立异常运动检测模型,所述现有的神经网络包括多层感知器、长短期记忆网络、卷积神经网络或自编码器,并基于正常运动数据的统计特性,计算正常运动范围,并设定正常运动范围的阈值;根据设备正常运动数据和异常运动数据的历史数据以及设定的正常运动范围阈值,利用支持向量机(SVM)算法,训练异常运动检测模型;According to the historical data of the three-dimensional spatial positioning of the normal movement of the test equipment, an abnormal movement detection model is established by using an existing neural network, wherein the existing neural network includes a multi-layer perceptron, a long short-term memory network, a convolutional neural network or an autoencoder, and based on the statistical characteristics of the normal movement data, a normal movement range is calculated, and a threshold of the normal movement range is set; according to the historical data of the normal movement data and the abnormal movement data of the equipment and the set normal movement range threshold, a support vector machine (SVM) algorithm is used to train the abnormal movement detection model;

为了实时分析设备运动数据,及时发现并确认设备的异常运动,将预处理后的实时运动数据输入到异常运动检测模型中,当模型判断设备运动数据超出正常范围,则试验设备出现异常运动;In order to analyze the equipment motion data in real time and promptly discover and confirm the abnormal motion of the equipment, the pre-processed real-time motion data is input into the abnormal motion detection model. When the model determines that the equipment motion data exceeds the normal range, the test equipment has abnormal motion;

S5、根据数据预处理后的电参数和温度数据对异常参数进行捕捉,并记录存在异常时的电参数和温度数据;S5. Capture abnormal parameters according to the electrical parameters and temperature data after data preprocessing, and record the electrical parameters and temperature data when the abnormality exists;

为了更精确地实现瞬时电参数与温度监测,本实施例引入实时异常指数分析算法,所述算法的核心思想是实时计算设备的异常指数,动态地评估设备的工作状态,从而及时发现潜在的异常问题,具体实现过程如下:In order to more accurately realize instantaneous electrical parameter and temperature monitoring, this embodiment introduces a real-time abnormal index analysis algorithm. The core idea of the algorithm is to calculate the abnormal index of the device in real time and dynamically evaluate the working status of the device, so as to timely discover potential abnormal problems. The specific implementation process is as follows:

S51、初始设定,根据设备规范和安全标准,设定初始阈值和权重系数;S51, initial setting, setting the initial threshold and weight coefficient according to the equipment specifications and safety standards;

对电流、电压和温度设定初始阈值:Set initial thresholds for current, voltage, and temperature: , , ;

初始化异常指数Initialize exception index : ;

S52、获取预处理后的电能参数数据和温度数据;时间t预处理后设备的电流、电压和温度S52, obtaining pre-processed electric energy parameter data and temperature data; the current of the device after time t pre-processing ,Voltage and temperature ;

S53、扩展偏差计算,计算实时偏差、偏差平方和和变化率;S53, extended deviation calculation, calculating the real-time deviation, the square sum of the deviation and the rate of change;

计算电流、电压和温度的实时偏差,以公式表达为:Calculates real-time deviations in current, voltage, and temperature , , , expressed as:

;

;

;

式中,分别代表电流、电压和温度与其阈值的偏差,用于评估设备的实时工作状态;In the formula, , , Respectively represent the deviation of current, voltage and temperature from their thresholds, and are used to evaluate the real-time working status of the device;

计算偏差的平方和以及各参数的变化率,以公式表达为:Calculate the sum of squares of the deviations and the rate of change of each parameter, expressed as:

式中,是偏差的平方和,用于量化设备的综合异常程度;分别代表电流、电压和温度的变化率,用于监测设备状态的瞬时变化;In the formula, It is the sum of squares of deviations, used to quantify the overall abnormality of the equipment; , , Represent the rate of change of current, voltage and temperature respectively, and are used to monitor instantaneous changes in equipment status;

S54、相关性与特性分析,计算参数间的相关性系数,分析频域能量特性;S54, correlation and characteristic analysis, calculating the correlation coefficient between parameters and analyzing the frequency domain energy characteristics;

计算电流、电压和温度之间的相关性系数,以公式表达为:Calculate the correlation coefficient between current, voltage and temperature, expressed as:

;

;

;

式中,分别代表电流与电压、电流与温度、电压与温度之间的相关性系数,用于评估各参数之间的相互影响,采用皮尔逊相关系数计算方法;In the formula, , , They represent the correlation coefficients between current and voltage, current and temperature, and voltage and temperature, respectively, and are used to evaluate the mutual influence between various parameters, using the Pearson correlation coefficient calculation method;

利用傅里叶变换以及能量谱密度分析电流、电压和温度的频域特性Analyze the frequency domain characteristics of current, voltage and temperature using Fourier transform and energy spectral density ;

S55、异常指数计算,综合各特性,计算异常指数;S55, abnormal index calculation, combining various characteristics to calculate the abnormal index;

基于偏差、变化率、相关性系数和频域特性,计算异常指数,以公式表达为:Calculate anomaly index based on deviation, rate of change, correlation coefficient and frequency domain characteristics , expressed as:

;

式中,为权重系数,根据经验法获得;是异常指数,综合考虑各参数的偏差、变化率、相关性和频域特性,量化设备的异常程度;In the formula, is the weight coefficient, obtained by empirical method; It is an abnormality index, which comprehensively considers the deviation, rate of change, correlation and frequency domain characteristics of each parameter to quantify the abnormality of the equipment;

S56、异常判定,根据异常指数判定设备状态,动态调整阈值和权重系数;S56, abnormality determination, determining the device status according to the abnormality index, and dynamically adjusting the threshold and weight coefficient;

如果异常指数超过根据经验法预设的警戒值,则判定为异常;If the abnormal index If it exceeds the warning value preset based on experience, it is judged as abnormal;

特别地,可以根据实时工作状态和环境变化,动态调整阈值、权重系数和警戒值,以适应设备的实际运行情况;In particular, the threshold, weight coefficient and warning value can be dynamically adjusted according to the real-time working status and environmental changes to adapt to the actual operation of the equipment;

S6、根据存在异常时的声波数据、图像数据、运动数据、电参数和温度数据判断存在的异常是否具有规律性,生成对应的分析评估报告;S6. Determine whether the abnormality exists in a regular pattern based on the acoustic wave data, image data, motion data, electrical parameters and temperature data when the abnormality exists, and generate a corresponding analysis and evaluation report;

规律性分析包括异常数据的时间模式分析、异常数据的空间分布分析和异常数据的变化趋势分析,其中:Regularity analysis includes time pattern analysis of abnormal data, spatial distribution analysis of abnormal data, and change trend analysis of abnormal data, among which:

通过存在异常时的声波数据、图像数据、运动数据、电参数和温度数据的时间间隔和持续时间确定是否存在特定时间段或时间间隔内的异常集中;Determine whether there is a concentration of abnormalities within a specific time period or time interval by using the time interval and duration of the acoustic wave data, image data, motion data, electrical parameters, and temperature data when the abnormality exists;

通过存在异常时的图像数据中的像素或存在异常时的声波数据对应的传感器的位置,分析异常数据在空间上的分布,确定是否存在特定区域或位置的异常集聚;By analyzing the position of the sensor corresponding to the pixel in the image data when the abnormality exists or the acoustic wave data when the abnormality exists, the spatial distribution of the abnormal data is analyzed to determine whether there is an abnormal cluster in a specific area or position;

通过存在异常时的运动数据、电参数和温度数据,分析对应的变化趋势,存在的异常时的运动数据、电参数和温度数据是否呈现逐渐增加或减少的趋势,或者是否存在周期性的波动;By analyzing the corresponding change trends of the motion data, electrical parameters and temperature data when the abnormality exists, whether the motion data, electrical parameters and temperature data when the abnormality exists show a trend of gradual increase or decrease, or whether there is periodic fluctuation;

根据对应的时间、空间和变化趋势的分析,生成相应的分析评估报告。Generate a corresponding analysis and evaluation report based on the analysis of time, space and change trends.

本申请通过实时分析设备运动数据和电能参数数据,能够及时发现并确认设备的异常运动和异常状态,提高了系统的响应速度和实时性,通过实时异常指数分析算法实现了对设备异常参数的实时捕捉与分析,实现了对设备状态的全面和综合分析。By real-time analysis of equipment motion data and power parameter data, this application can promptly detect and confirm abnormal movement and abnormal status of equipment, thereby improving the response speed and real-time performance of the system. Through the real-time abnormal index analysis algorithm, real-time capture and analysis of abnormal equipment parameters are achieved, thus realizing a comprehensive and integrated analysis of the equipment status.

本实施例的技术方案能够有效解决对各种试验过程中的异常现象捕捉不够全面以及不够准确的技术问题,并且,上述方法经过了一系列的效果调研,通过动态学习率的引入,算法能够自适应地调整背景模型的更新速度,从而更好地适应环境光照变化和动态背景变化,通过综合多种背景建模方法,并结合动态权重系数,该方案能够在各种场景下都实现准确的背景建模和前景提取;通过对前景进行特征分割和多层次网络结构特征提取,实现了对图像内部细微结构和大范围结构的全面描述,采用多种特征提取方法,如局部密度、局部异质性、区域对比度和区域均匀性等,能够准确地揭示图像内部的结构和变化,提高特征的描述准确性;通过声波数据的预处理和特性参数提取,辅助图像技术进行异常检测,进一步提高了异常电火花现象的捕捉准确性;通过实时分析设备运动数据和电能参数数据,能够及时发现并确认设备的异常运动和异常状态,提高了系统的响应速度和实时性,通过实时异常指数分析算法实现了对设备异常参数的实时捕捉与分析,实现了对设备状态的全面和综合分析。The technical solution of this embodiment can effectively solve the technical problem of insufficient and inaccurate capture of abnormal phenomena in various test processes. In addition, the above method has undergone a series of effect surveys. By introducing a dynamic learning rate, the algorithm can adaptively adjust the update speed of the background model, so as to better adapt to changes in ambient light and dynamic background changes. By integrating multiple background modeling methods and combining dynamic weight coefficients, the solution can achieve accurate background modeling and foreground extraction in various scenarios. By performing feature segmentation on the foreground and extracting multi-level network structure features, a comprehensive description of the fine structure and large-scale structure inside the image is achieved. By using multiple feature extraction methods, such as local density, local heterogeneity, regional contrast and regional uniformity, the structure and changes inside the image can be accurately revealed, and the accuracy of feature description can be improved. By preprocessing the acoustic wave data and extracting characteristic parameters, the auxiliary image technology is used for abnormal detection, which further improves the accuracy of capturing abnormal electric spark phenomena. By real-time analysis of equipment motion data and electric energy parameter data, the abnormal motion and abnormal state of the equipment can be discovered and confirmed in time, which improves the response speed and real-time performance of the system. The real-time abnormal index analysis algorithm realizes real-time capture and analysis of abnormal parameters of the equipment, and realizes a comprehensive and integrated analysis of the equipment status.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims (8)

1.一种综合异常现象自动捕捉与分析方法,其特征在于,所述方法包括:1. A method for automatically capturing and analyzing comprehensive abnormal phenomena, characterized in that the method comprises: 步骤1:选择监控设备对试验过程中的试验设备进行实时监测,获得监控设备实时数据,对所述监控设备实时数据进行数据预处理,其中,所述监控设备实时数据包括图像数据、声波数据、运动数据以及电参数和温度数据;Step 1: Select a monitoring device to monitor the test device in real time during the test, obtain real-time data of the monitoring device, and perform data preprocessing on the real-time data of the monitoring device, wherein the real-time data of the monitoring device includes image data, sound wave data, motion data, electrical parameters and temperature data; 步骤2:根据数据预处理后的声波数据进行声波异常检测,若声波异常,则对数据预处理后的图像数据进行背景建模并提取前景,利用所述前景进行特征提取,并根据提取的特征进行异常识别,并记录存在异常时的声波数据和图像数据,其中,对数据预处理后的图像数据进行背景建模具体为:Step 2: Perform acoustic anomaly detection based on the acoustic wave data after data preprocessing. If the acoustic wave is abnormal, perform background modeling on the image data after data preprocessing and extract the foreground, use the foreground to extract features, perform abnormality identification based on the extracted features, and record the acoustic wave data and image data when the abnormality exists. Specifically, the background modeling of the image data after data preprocessing is as follows: 对数据预处理后的图像数据进行灰度化处理,获得图像的灰度值,利用所述图像的灰度值初始化背景模型,以公式表达为:The image data after data preprocessing is grayed to obtain the gray value of the image, and the background model is initialized using the gray value of the image, which is expressed as: ; 式中,是第i个像素点在第一张图像的灰度值,作为背景模型的初始值,所述第一张图像源于图像数据序列;In the formula, is the gray value of the i-th pixel in the first image, which serves as the initial value of the background model , the first image is derived from an image data sequence; 根据图像的灰度值计算动态学习率,以公式表达为:Calculate dynamic learning rate based on the grayscale value of the image , expressed as: ; 式中,为第i个像素点在时间的动态学习率;为基础学习率;为调节参数;为第i个像素点在时间的图像的灰度值;为第i个像素点在时间的图像的灰度值;In the formula, is the i-th pixel at time Dynamic learning rate; is the basic learning rate; To adjust the parameters; is the i-th pixel at time The gray value of the image; is the i-th pixel at time The gray value of the image; 分别计算第i个像素点在图像窗口内的平均灰度值和中值灰度值,以公式表达为:Calculate the i-th pixel in the image window respectively The average grayscale value and median grayscale value within are expressed as follows: ; ; 式中,是图像序列中图像的图像窗口内的第i个像素点的平均灰度值;是图像序列中图像的图像窗口内的第i个像素点的中值灰度值;In the formula, is the image window of an image in the image sequence The average gray value of the i-th pixel in ; is the image window of an image in the image sequence The median gray value of the i-th pixel in ; 建立高斯混合模型来表示第i个像素点的灰度值的概率分布,以公式表达为:A Gaussian mixture model is established to represent the probability distribution of the gray value of the i-th pixel, which is expressed as: ; 式中,是第i个像素点的灰度值的概率分布;是高斯分量的数量;是第个高斯分量的权重、均值和方差;In the formula, is the probability distribution of the gray value of the i-th pixel; is the number of Gaussian components; It is The weights, means and variances of the Gaussian components; 提取前景具体为:The extraction prospects are as follows: 结合动态学习率、均值、中值和高斯混合模型,综合更新图像数据中每个像素点的背景模型,以公式表达为:Combining the dynamic learning rate, mean, median and Gaussian mixture model, the background model of each pixel in the image data is comprehensively updated, which can be expressed as: ; 式中,是权重系数;In the formula, is the weight coefficient; 对图像序列中每一张图像,将像素点的灰度值与综合更新后的背景模型进行比较,若差值大于阈值,则判定为前景,以公式表达为:For each image in the image sequence, the grayscale value of the pixel is compared with the comprehensively updated background model. If the difference is greater than the threshold, it is determined to be the foreground, which can be expressed as: ; 式中,为在时间时第i个像素点是否为前景的二值表示,1表示是前景,0表示是背景;In the formula, For in time When , the binary value indicates whether the i-th pixel is the foreground, 1 indicates it is the foreground, and 0 indicates it is the background; 重复执行计算动态学习率、均值和中值背景建模、高斯混合模型建模、综合更新背景模型和提取前景的步骤,实时更新背景模型并提取前景;Repeat the steps of calculating a dynamic learning rate, mean and median background modeling, Gaussian mixture modeling, comprehensively updating the background model and extracting the foreground, and update the background model and extract the foreground in real time; 步骤3:根据数据预处理后的运动数据进行异常运动检测,根据数据预处理后的电参数和温度数据对异常参数进行捕捉,并记录存在异常时的运动数据、电参数和温度数据;Step 3: Perform abnormal motion detection based on the motion data after data preprocessing, capture abnormal parameters based on the electrical parameters and temperature data after data preprocessing, and record the motion data, electrical parameters and temperature data when the abnormality exists; 步骤4:根据存在异常时的声波数据、图像数据、运动数据、电参数和温度数据判断存在的异常是否具有规律性,生成对应的分析评估报告。Step 4: Determine whether the abnormality is regular based on the acoustic wave data, image data, motion data, electrical parameters and temperature data when the abnormality exists, and generate a corresponding analysis and evaluation report. 2.根据权利要求1所述的一种综合异常现象自动捕捉与分析方法,其特征在于,根据数据预处理后的声波数据进行声波异常检测具体为:2. According to the method for automatically capturing and analyzing comprehensive abnormal phenomena in claim 1, it is characterized in that the acoustic wave abnormality detection is performed according to the acoustic wave data after data preprocessing, specifically: 利用傅里叶变换将数据预处理后的声波数据转换到频域,并在频域信号中提取频率成分和幅值作为声波的特性参数;The pre-processed acoustic wave data is converted into the frequency domain using Fourier transform, and the frequency components and amplitudes are extracted from the frequency domain signals as characteristic parameters of the acoustic wave; 计算提取的声波特性参数与试验设备正常工作状态下的声波特性参数之间的欧氏距离并进行比较;预设声波阈值,当计算出的欧氏距离超过声波阈值时,判定为异常声波。The Euclidean distance between the extracted acoustic wave characteristic parameters and the acoustic wave characteristic parameters under normal working conditions of the test equipment is calculated and compared; a sound wave threshold is preset, and when the calculated Euclidean distance exceeds the sound wave threshold, it is determined to be an abnormal sound wave. 3.根据权利要求1所述的一种综合异常现象自动捕捉与分析方法,其特征在于,利用所述前景进行特征提取具体为对提取的前景图像进行特征分割,包括对前景图像进行二值化处理后对前景图像连通区域进行标记,并利用多层次网络结构对已标记的连通区域进行微观层次和宏观层次的特征提取,其中,所述微观层次特征包括局部密度和局部异质性,所述宏观层次特征包括区域对比度和区域均匀性,将微观层次和宏观层次的特征组合成综合特征向量。3. According to the method for automatic capture and analysis of comprehensive abnormal phenomena described in claim 1, it is characterized in that the feature extraction using the foreground is specifically to perform feature segmentation on the extracted foreground image, including marking the connected areas of the foreground image after binarization of the foreground image, and using a multi-level network structure to perform micro-level and macro-level feature extraction on the marked connected areas, wherein the micro-level features include local density and local heterogeneity, and the macro-level features include regional contrast and regional uniformity, and the micro-level and macro-level features are combined into a comprehensive feature vector. 4.根据权利要求3所述的一种综合异常现象自动捕捉与分析方法,其特征在于,根据提取的特征进行异常识别具体为:4. The method for automatically capturing and analyzing comprehensive abnormal phenomena according to claim 3 is characterized in that the abnormality identification based on the extracted features is specifically: 利用余弦相似度计算综合特征向量和异常现象特征向量的相似度,如果相似度超过预设阈值,则标记综合特征向量对应图像区域存在异常现象,并构建异常现象图像数据集,完成初步筛选;The cosine similarity is used to calculate the similarity between the comprehensive feature vector and the abnormal phenomenon feature vector. If the similarity exceeds the preset threshold, the image area corresponding to the comprehensive feature vector is marked as having an abnormal phenomenon, and an abnormal phenomenon image dataset is constructed to complete the preliminary screening. 利用阈值分割和形态学操作对异常现象图像数据集进行定位标记,对每个定位标记的目标区域提取图像特征,构建异常特征库,将所述图像特征和异常特征库进行特征匹配确认目标区域是否存在对应的异常现象。The abnormal phenomenon image dataset is located and marked using threshold segmentation and morphological operations, image features are extracted from the target area of each location mark, an abnormal feature library is constructed, and feature matching is performed between the image features and the abnormal feature library to confirm whether there is a corresponding abnormal phenomenon in the target area. 5.根据权利要求4所述的一种综合异常现象自动捕捉与分析方法,其特征在于,所述特征匹配具体为:5. A comprehensive abnormal phenomenon automatic capture and analysis method according to claim 4, characterized in that the feature matching is specifically: 利用巴氏距离计算图像特征与异常特征库的颜色直方图的相似度,并比较颜色矩的差异;The similarity between the image features and the color histogram of the abnormal feature library is calculated using the Bhattacharyya distance. , and compare the differences in color moments; 利用差值法计算图像特征与异常特征库中异常发生时的频率差异The difference method is used to calculate the frequency difference between the image features and the abnormality feature library when the abnormality occurs ; 应用动态时间规整算法计算图像特征与异常特征库中异常时变特性的相似度The dynamic time warping algorithm is used to calculate the similarity between image features and abnormal time-varying characteristics in the abnormal feature library. ; 定义权重因子,满足Defining weight factors ,satisfy ; 利用颜色直方图的相似度、频率差异和时变特性的相似度计算综合相似度,以公式表达为:Using the similarity of color histograms , frequency difference Similarity to time-varying characteristics Calculate the comprehensive similarity, expressed as: ; 式中,为综合相似度,分别为颜色、频率和时变特性的权重;In the formula, is the comprehensive similarity, are the weights of color, frequency, and time-varying characteristics, respectively; 预设图像相似阈值,如果,则判定为存在对应的异常现象;Preset image similarity threshold ,if , it is determined that the corresponding abnormal phenomenon exists; 通过图像特征与异常特征库的匹配,确认目标区域是否存在异常现象。By matching the image features with the abnormal feature library, it is confirmed whether there are abnormal phenomena in the target area. 6.根据权利要求5所述的一种综合异常现象自动捕捉与分析方法,其特征在于,根据数据预处理后的运动数据进行异常运动检测具体为:6. A comprehensive abnormal phenomenon automatic capture and analysis method according to claim 5, characterized in that abnormal motion detection is performed based on the motion data after data preprocessing: 根据试验设备正常运动的三维空间定位历史数据,建立异常运动检测模型,基于正常运动数据的统计特性,计算正常运动范围,并设定正常运动范围的阈值;According to the historical data of the three-dimensional spatial positioning of the normal movement of the test equipment, an abnormal movement detection model is established, and based on the statistical characteristics of the normal movement data, the normal movement range is calculated and the threshold of the normal movement range is set; 根据试验设备正常运动数据和异常运动数据的历史数据以及设定的正常运动范围阈值,利用支持向量机算法,训练异常运动检测模型,获得训练完成的异常运动检测模型;According to the historical data of normal motion data and abnormal motion data of the test equipment and the set normal motion range threshold, the abnormal motion detection model is trained by using the support vector machine algorithm to obtain the trained abnormal motion detection model; 将数据预处理后的实时运动数据输入到训练完成的异常运动检测模型中,当异常运动检测模型判断试验设备运动数据超出正常范围,则试验设备出现异常运动。The real-time motion data after data preprocessing is input into the trained abnormal motion detection model. When the abnormal motion detection model determines that the motion data of the test equipment exceeds the normal range, the test equipment has abnormal motion. 7.根据权利要求6所述的一种综合异常现象自动捕捉与分析方法,其特征在于,根据数据预处理后的电参数和温度数据对异常参数进行捕捉具体为:7. A comprehensive abnormal phenomenon automatic capture and analysis method according to claim 6, characterized in that the abnormal parameters are captured according to the electrical parameters and temperature data after data preprocessing, specifically: 设定电流、电压和温度的初始阈值Set initial thresholds for current, voltage, and temperature ; 初始化异常指数,以公式表达为:Initialize exception index , expressed as: ; 获取数据预处理后的电能参数数据和温度数据,包括电流、电压和温度Obtain the electrical energy parameter data and temperature data after data preprocessing, including current ,Voltage and temperature ; 计算电流、电压和温度的实时偏差,以公式表达为:Calculates real-time deviations in current, voltage, and temperature , , , expressed as: ; ; ; 式中,分别代表电流、电压和温度与对应阈值的偏差;In the formula, , , Represent the deviation of current, voltage and temperature from the corresponding threshold respectively; 计算偏差的平方和以及各参数的变化率,以公式表达为:Calculate the sum of squares of the deviations and the rate of change of each parameter, expressed as: 式中,是偏差的平方和;分别代表电流、电压和温度的变化率;In the formula, is the sum of squares of deviations; , , Represent the rate of change of current, voltage and temperature respectively; 计算电流、电压和温度之间的相关性系数,以公式表达为:Calculate the correlation coefficient between current, voltage and temperature, expressed as: ; ; ; 式中,分别代表电流与电压、电流与温度、电压与温度之间的相关性系数;In the formula, , , Respectively represent the correlation coefficients between current and voltage, current and temperature, and voltage and temperature; 利用傅里叶变换以及能量谱密度计算获得电流、电压和温度的频域特性The frequency domain characteristics of current, voltage and temperature are obtained by Fourier transform and energy spectral density calculation. ; 基于偏差、变化率、相关性系数和频域特性,计算异常指数,以公式表达为:Calculate anomaly index based on deviation, rate of change, correlation coefficient and frequency domain characteristics , expressed as: ; 式中,为权重系数;是异常指数;In the formula, is the weight coefficient; is the anomaly index; 如果异常指数超过根据经验法预设的警戒值,则判定对应的电能参数数据和温度数据为异常参数。If the abnormal index If the warning value preset according to the empirical method is exceeded, the corresponding electric energy parameter data and temperature data are determined to be abnormal parameters. 8.根据权利要求7所述的一种综合异常现象自动捕捉与分析方法,其特征在于,根据存在异常时的声波数据、图像数据、运动数据、电参数和温度数据判断存在的异常是否具有规律性,生成对应的分析评估报告具体为:8. A comprehensive abnormal phenomenon automatic capture and analysis method according to claim 7, characterized in that the existing abnormality is judged to be regular according to the sound wave data, image data, motion data, electrical parameters and temperature data when the abnormality exists, and the corresponding analysis and evaluation report is generated specifically as follows: 通过存在异常时的声波数据、图像数据、运动数据、电参数和温度数据的时间间隔和持续时间确定是否存在特定时间段或时间间隔内的异常集中;Determine whether there is a concentration of abnormalities within a specific time period or time interval by using the time interval and duration of the acoustic wave data, image data, motion data, electrical parameters, and temperature data when the abnormality exists; 通过存在异常时的图像数据中的像素或存在异常时的声波数据对应的传感器的位置,分析异常数据在空间上的分布,确定是否存在特定区域或位置的异常集聚;By analyzing the position of the sensor corresponding to the pixel in the image data when the abnormality exists or the acoustic wave data when the abnormality exists, the spatial distribution of the abnormal data is analyzed to determine whether there is an abnormal cluster in a specific area or position; 通过存在异常时的运动数据、电参数和温度数据,分析对应的变化趋势,存在的异常时的运动数据、电参数和温度数据是否呈现逐渐增加或减少的趋势,或者是否存在周期性的波动;By analyzing the corresponding change trends of the motion data, electrical parameters and temperature data when the abnormality exists, whether the motion data, electrical parameters and temperature data when the abnormality exists show a trend of gradual increase or decrease, or whether there is periodic fluctuation; 根据对应的时间、空间和变化趋势的分析,生成相应的分析评估报告。Generate a corresponding analysis and evaluation report based on the analysis of time, space and change trends.
CN202410264045.3A 2024-03-08 2024-03-08 A comprehensive method for automatically capturing and analyzing abnormal phenomena Active CN117854014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410264045.3A CN117854014B (en) 2024-03-08 2024-03-08 A comprehensive method for automatically capturing and analyzing abnormal phenomena

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410264045.3A CN117854014B (en) 2024-03-08 2024-03-08 A comprehensive method for automatically capturing and analyzing abnormal phenomena

Publications (2)

Publication Number Publication Date
CN117854014A CN117854014A (en) 2024-04-09
CN117854014B true CN117854014B (en) 2024-05-31

Family

ID=90543809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410264045.3A Active CN117854014B (en) 2024-03-08 2024-03-08 A comprehensive method for automatically capturing and analyzing abnormal phenomena

Country Status (1)

Country Link
CN (1) CN117854014B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118741088B (en) * 2024-09-03 2024-11-12 国网江西省电力有限公司信息通信分公司 A method and system for identifying abnormal image signals in a video conferencing system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184818A (en) * 2015-09-06 2015-12-23 山东华宇航天空间技术有限公司 Video monitoring abnormal behavior detection method and detections system thereof
CN107463898A (en) * 2017-08-01 2017-12-12 闽江学院 The stage performance abnormal behavior monitoring method of view-based access control model sensing network
KR20210158037A (en) * 2020-06-23 2021-12-30 동명대학교산학협력단 Method for tracking multi target in traffic image-monitoring-system
CN116269738A (en) * 2023-05-25 2023-06-23 深圳市科医仁科技发展有限公司 Intelligent control method, device, equipment and storage medium of radio frequency therapeutic apparatus
CN116776202A (en) * 2023-06-20 2023-09-19 山东交通学院 Hump shunting band-type brake abnormality monitoring system based on multisource data fusion algorithm
CN117115169A (en) * 2023-10-25 2023-11-24 宁波吉烨汽配模具有限公司 Intelligent recognition method for abnormal deformation of surface of die-casting die of automobile part
CN117197713A (en) * 2023-09-08 2023-12-08 南京敏锐科技有限公司 Extraction method based on digital video monitoring system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184818A (en) * 2015-09-06 2015-12-23 山东华宇航天空间技术有限公司 Video monitoring abnormal behavior detection method and detections system thereof
CN107463898A (en) * 2017-08-01 2017-12-12 闽江学院 The stage performance abnormal behavior monitoring method of view-based access control model sensing network
KR20210158037A (en) * 2020-06-23 2021-12-30 동명대학교산학협력단 Method for tracking multi target in traffic image-monitoring-system
CN116269738A (en) * 2023-05-25 2023-06-23 深圳市科医仁科技发展有限公司 Intelligent control method, device, equipment and storage medium of radio frequency therapeutic apparatus
CN116776202A (en) * 2023-06-20 2023-09-19 山东交通学院 Hump shunting band-type brake abnormality monitoring system based on multisource data fusion algorithm
CN117197713A (en) * 2023-09-08 2023-12-08 南京敏锐科技有限公司 Extraction method based on digital video monitoring system
CN117115169A (en) * 2023-10-25 2023-11-24 宁波吉烨汽配模具有限公司 Intelligent recognition method for abnormal deformation of surface of die-casting die of automobile part

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《视频监控中异常场景检测与分析研究》;杨之杰;《优秀硕士论文》;20140101;全文 *

Also Published As

Publication number Publication date
CN117854014A (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN117576093B (en) EL image-based solar cell piece hidden crack detection method
CN117854014B (en) A comprehensive method for automatically capturing and analyzing abnormal phenomena
CN115131325A (en) Breaker fault operation and maintenance monitoring method and system based on image recognition and analysis
CN117668518B (en) Discrete intelligent manufacturing method and system
CN118864458B (en) Defect real-time detection system of 3D printing assembly type ring beam based on Transformer identification
CN112883969B (en) Rainfall intensity detection method based on convolutional neural network
CN117830177A (en) Dynamic sea state image recognition system and method for offshore photovoltaic monitoring
CN118310970A (en) Mechanical equipment surface defect detection method and system
EP3751245A1 (en) Smart sensor measurement system
CN118037715B (en) Intelligent welding spot analysis optimization method and system for PCBA board
CN117994236B (en) Vortex spun broken yarn intelligent detection method and system based on image analysis
CN117671958A (en) Urban traffic optimizing system
CN112733584A (en) Intelligent alarm method and device for communication optical cable
CN112308814A (en) Method and system for automatically identifying switch on-off position state of disconnecting link of power system
CN114529906A (en) Method and system for detecting abnormity of digital instrument of power transmission equipment based on character recognition
CN115187878A (en) Wind turbine blade defect detection method based on UAV image analysis
CN103177237A (en) Video monitoring method and device based on on-line lasers
CN118470873B (en) Thermal forming component pose monitoring and early warning method
CN115131377A (en) Railway turnout spacing detection method, device and system
CN118072230B (en) Image recognition method and system based on artificial intelligence
CN117911409B (en) Mobile phone screen bad line defect diagnosis method based on machine vision
CN118762327B (en) Image content identification system for water source sites
CN119339296A (en) A target detection and tracking system and method based on artificial intelligence and machine vision
CN117409332B (en) Long wood shaving appearance data detection system and method based on big data processing
CN119360219A (en) Concrete building outer wall detection method, system, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant