[go: up one dir, main page]

CN109186813B - Temperature sensor self-checking device and method - Google Patents

Temperature sensor self-checking device and method Download PDF

Info

Publication number
CN109186813B
CN109186813B CN201811236829.6A CN201811236829A CN109186813B CN 109186813 B CN109186813 B CN 109186813B CN 201811236829 A CN201811236829 A CN 201811236829A CN 109186813 B CN109186813 B CN 109186813B
Authority
CN
China
Prior art keywords
sequence
temperature difference
standard deviation
sensor
value
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
CN201811236829.6A
Other languages
Chinese (zh)
Other versions
CN109186813A (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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CRRC Times Electric 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 Zhuzhou CRRC Times Electric Co Ltd filed Critical Zhuzhou CRRC Times Electric Co Ltd
Priority to CN201811236829.6A priority Critical patent/CN109186813B/en
Publication of CN109186813A publication Critical patent/CN109186813A/en
Application granted granted Critical
Publication of CN109186813B publication Critical patent/CN109186813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K15/00Testing or calibrating of thermometers
    • G01K15/007Testing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The invention provides a temperature sensor self-checking device and a method, wherein a temperature data sequence of a train under a normal condition is subjected to differential processing to obtain a segmented standard deviation sequence, and an abnormal detection threshold value is obtained by performing statistical analysis on the standard deviation sequence; carrying out differential processing on the real-time input temperature data sequence to obtain a segmented standard deviation sequence; judging whether the segmented temperature difference value sequence is abnormal or not based on the threshold value and the standard difference sequence; if the standard deviation sequence of a certain segment of the segmentation is larger than or equal to the threshold value, judging that the temperature difference sequence of the segment is abnormal, and entering the next step, otherwise, judging that the sensor is normal; judging the distribution consistency of the temperature difference sequence with the abnormality in a certain section, the normal reference sequence and the temperature difference sequence in the previous adjacent time section; if the consistency exists, the sensor is judged to be normal, and if not, the sensor is abnormal. The invention can solve the technical problems that the prior art can not carry out quick and effective self-checking on the temperature sensor and can not ensure the safe and efficient operation of the train.

Description

一种温度传感器自检装置及方法A temperature sensor self-checking device and method

技术领域technical field

本发明涉及故障诊断技术领域,尤其是涉及一种应用于列车温度传感器的自检装置及方法。The invention relates to the technical field of fault diagnosis, in particular to a self-checking device and method applied to a train temperature sensor.

背景技术Background technique

温度传感器是列车传动、控制、走行部等各个系统的重要部件之一,担负着全车与温度有关的关键部件的监测和感知功能,是保障设备安全、正常运行的核心装置,是整个列车的监测的关键指标之一。通常,在大多数情况下本领域技术人员关注的是传感器所监测对象的运行情况,而较少考虑监测者和温度传感器(系统)本身内在联系的问题。事实上,同样作为一个装置,温度传感器必然存在故障的可能。当传感器所测得的温度值出现异常时,通常无法完全肯定该异常是所测对象真实发生了问题,还是传感器或通信系统出现了异常。如果是真实的测量对象异常,则需要采取紧急列车安全应对措施,如降功率或停车检修等。然而,如果是因为传感器(系统)异常,采取紧急应对措施则会大量增加运维成本,甚至于在某些情况下还可能导致安全问题的发生。因此,在实际应用时必然需要解决一个问题,那就是如何确保温度传感器本身工作的正常性,或者换一种说法,即如何确定出现的异常温度值是是否是传感器本身的异常导致的。The temperature sensor is one of the important components of the train transmission, control, running department and other systems. It is responsible for the monitoring and sensing functions of the key components related to the temperature of the whole train. It is the core device to ensure the safety and normal operation of the equipment. One of the key indicators to monitor. Generally, in most cases, those skilled in the art are concerned with the operation of the object monitored by the sensor, and seldom consider the problem of the internal connection between the monitor and the temperature sensor (system) itself. In fact, as a device, the temperature sensor must have the possibility of failure. When the temperature value measured by the sensor is abnormal, it is usually impossible to determine whether the abnormality is actually a problem with the measured object or whether the sensor or communication system is abnormal. If the real measurement object is abnormal, emergency train safety measures, such as power reduction or shutdown for maintenance, need to be taken. However, if the sensor (system) is abnormal, taking emergency measures will greatly increase the operation and maintenance cost, and may even lead to safety problems in some cases. Therefore, a problem must be solved in practical application, that is, how to ensure the normal operation of the temperature sensor itself, or in other words, how to determine whether the abnormal temperature value that occurs is caused by the abnormality of the sensor itself.

基于以上问题,当前所需要解决的技术关键就在于采用何种方式来发现温度传感器本身是否正常,其中,包括:如何利用与温度传感器相关的信息和数据来有效鉴别异常源头,实现有效预警,以及如何通过额外加装传感器或依靠现有的数据实现异常判别。Based on the above problems, the technical key that needs to be solved at present is how to find out whether the temperature sensor itself is normal, including: how to use the information and data related to the temperature sensor to effectively identify the source of abnormality, achieve effective early warning, and How to realize anomaly discrimination by adding additional sensors or relying on existing data.

目前,关于检查传感器本身运行状态的研究和应用很多,其中针对温度传感器异常与否的检测手段也有很多,有通过检测传感器电压、电流情况来判断传感器工作状态的,有结合专业知识设定温度阈值来判断传感器工作状态的,也有通过在相似位置加装传感器,对比两个或多个温度值的变化来判断传感器工作状态的。但是,这些现有的温度传感器检测方法均存在着或是判断结果不准确,存在误判、漏判等情况,或是需要专业人员利用专业知识进行判断,应用场合和领域受到限制,或是需要加装额外的装置,导致系统复杂度增加等各种技术缺陷。At present, there are many researches and applications on checking the operating state of the sensor itself, among which there are many detection methods for the abnormality of the temperature sensor. Some judge the working state of the sensor by detecting the voltage and current of the sensor, and some combine professional knowledge to set the temperature threshold. To judge the working state of the sensor, there are also ways to judge the working state of the sensor by adding a sensor in a similar position and comparing the changes of two or more temperature values. However, these existing temperature sensor detection methods all have inaccurate judgment results, misjudgments, missed judgments, etc., or require professionals to use professional knowledge to make judgments, and their application occasions and fields are limited, or they require The installation of additional devices leads to various technical defects such as increased system complexity.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种温度传感器自检装置及方法,以解决现有列车系统无法对温度传感器进行快速、有效的自检,进而不能保障列车安全、高效运行的技术问题。In view of this, the purpose of the present invention is to provide a temperature sensor self-checking device and method to solve the technical problem that the existing train system cannot perform fast and effective self-checking on the temperature sensor, and thus cannot guarantee the safe and efficient operation of the train.

为了实现上述目的,本发明具体提供了一种温度传感器自检装置的技术实现方案,温度传感器自检装置,包括:In order to achieve the above purpose, the present invention specifically provides a technical implementation scheme of a temperature sensor self-checking device. The temperature sensor self-checking device includes:

异常检测阈值计算模块,用于对列车在正常运行情况下传感器所测的温度数据序列T进行差分处理得到温度差值序列δT的分段标准差序列Θ,并通过对标准差序列Θ进行统计分析得到异常检测阈值K;The abnormal detection threshold calculation module is used to perform differential processing on the temperature data sequence T measured by the sensor under the normal operation of the train to obtain the segmented standard deviation sequence Θ of the temperature difference sequence δT, and perform statistical analysis on the standard deviation sequence Θ. Get the anomaly detection threshold K;

关键特征值提取模块,用于对实时输入的传感器所测温度数据序列t进行差分处理得到温度差值序列δt的分段标准差序列η;The key feature value extraction module is used to perform differential processing on the real-time input temperature data sequence t measured by the sensor to obtain the segmented standard deviation sequence η of the temperature difference sequence δt;

第一异常检测模块,用于根据所述异常检测阈值计算模块输出的异常检测阈值K,及所述关键特征值提取模块输出的标准差序列η判断分段温度差值序列δt是否存在异常;如果某段温度差值序列δt的分段标准差序列η大于或等于异常检测阈值K,则判断该段温度差值序列δt存在异常,并输出该段存在异常的温度差值序列δt,否则判断传感器正常;The first abnormality detection module is used to judge whether there is abnormality in the segmented temperature difference sequence δt according to the abnormality detection threshold K output by the abnormality detection threshold calculation module and the standard deviation sequence n output by the key feature value extraction module; if If the segmented standard deviation sequence η of a certain segment of temperature difference sequence δt is greater than or equal to the abnormality detection threshold K, it is judged that this segment of temperature difference sequence δt is abnormal, and the abnormal temperature difference sequence δt is output, otherwise the sensor is judged normal;

一致性检验模块,用于对所述第一异常检测模块输出存在异常的温度差值序列δt与正常基准序列及前一相邻时间段温度差值序列δt进行分布一致性检验;a consistency checking module, configured to perform a distribution consistency check on the abnormal temperature difference sequence δt output by the first anomaly detection module, the normal reference sequence and the temperature difference sequence δt in the previous adjacent time period;

第二异常检测模块,用于判断所述一致性检验模块输出的分布一致性检验发生概率P值是否小于设定标准,如果小于设定标准,则输出传感器异常预警信号,否则传感器正常。The second abnormality detection module is used for judging whether the distribution consistency test occurrence probability P value output by the consistency test module is less than the set standard, if it is less than the set standard, output a sensor abnormality warning signal, otherwise the sensor is normal.

进一步的,所述异常检测阈值计算模块获取正常情况下列车某部位运行过程中传感器所测的温度数据序列T,按单位时间ΔT计算温度差值序列δT。对单位时间内的温度差值序列δT按相同时长T1分段,计算每段温度差值序列δT的标准差θi,并形成标准差序列Θ。分析标准差序列Θ的分布情况,并计算标准差序列Θ的均值μ和标准差σ,按照发生概率

Figure GDA0002508719650000021
Figure GDA0002508719650000022
的原则构建列车该部位对应的异常检测阈值K。Further, the abnormality detection threshold calculation module obtains the temperature data sequence T measured by the sensor during the operation of a certain part of the vehicle under normal conditions, and calculates the temperature difference sequence δT per unit time ΔT. The temperature difference sequence δT in unit time is segmented according to the same duration T1, the standard deviation θ i of each temperature difference sequence δT is calculated, and the standard deviation sequence Θ is formed. Analyze the distribution of the standard deviation series Θ, and calculate the mean μ and standard deviation σ of the standard deviation series Θ, according to the probability of occurrence
Figure GDA0002508719650000021
Figure GDA0002508719650000022
The principle of constructing the anomaly detection threshold K corresponding to this part of the train.

其中,θ为温度差值序列δT的标准差。Among them, θ is the standard deviation of the temperature difference series δT.

Figure GDA0002508719650000023
Figure GDA0002508719650000023

Figure GDA0002508719650000024
Figure GDA0002508719650000024

其中,ωi为加权系数,此处

Figure GDA0002508719650000025
xi为样本值,n为样本数。Among them, ω i is the weighting coefficient, here
Figure GDA0002508719650000025
x i is the sample value, and n is the number of samples.

进一步的,所述关键特征值提取模块获取实时输入传感器所测的温度数据序列t,按单位时间Δt计算温度差值序列δt,对单位时间内的温度差值序列δt按相同时长T2分段,计算每段温度差值序列δt的标准差,并形成标准差序列η。Further, the key feature value extraction module obtains the temperature data sequence t measured by the real-time input sensor, calculates the temperature difference value sequence δt per unit time Δt, and divides the temperature difference value sequence δt per unit time according to the same duration T2, Calculate the standard deviation of each temperature difference series δt, and form the standard deviation series η.

进一步的,所述一致性检验模块通过比较异常检测阈值K和标准差序列η发现列车运行过程中某段温度差值序列δt出现疑似异常的数据后,记录该段温度差值序列xt的信息,并获取该段温度差值序列xt及其前一相邻时间段的温度差值序列yt,同时获取相同时间段列车其它相似位置传感器所测的温度差值序列z1t,…,znt,并就疑似异常的温度差值序列xt分别与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}逐一地进行K-S分布检验。Further, after the consistency checking module finds that a certain section of temperature difference sequence δt appears abnormal data by comparing the abnormality detection threshold K and the standard deviation sequence η during the operation of the train, it records the information of this section of temperature difference sequence xt . , and obtain the temperature difference sequence x t of this segment and the temperature difference sequence y t of the previous adjacent time period, and simultaneously obtain the temperature difference sequence z1 t ,…,zn measured by other similar position sensors of the train in the same time period t , and the temperature difference series x t suspected to be abnormal and the temperature difference series y t of the previous adjacent time period, and the temperature difference series measured by other similar position sensors {z1 t ,...,zn t } The KS distribution test was performed one by one.

进一步的,所述一致性检验模块在判断待检验温度差值序列xt与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}的分布一致性时,通过检验序列间经验分布函数的最大差距值D来确定温度差值序列xt的显著性。当实际计算所得的最大差距值D大于某一设定标准值,或最大差距值D所对应的分布概率P值小于某一设定标准值时,则两个温度差值序列之间不具备一致性。Further, the consistency checking module is judging the temperature difference sequence x t to be checked and the temperature difference sequence y t of the previous adjacent time period, and the temperature difference sequence {z1 t , measured by other similar position sensors . When the distribution consistency of ..., zn t }, the significance of the temperature difference series x t is determined by checking the maximum difference value D of the empirical distribution function between the series. When the actual calculated maximum difference value D is greater than a certain set standard value, or when the distribution probability P value corresponding to the maximum difference value D is less than a certain set standard value, there is no consistency between the two temperature difference series. sex.

其中,温度差值序列xt的样本量为n1,温度差值序列yt,z1t,…,znt中任一差值序列的样本量为n2,F1(x)和F2(x)分别表示两个样本的累积经验分布函数,j为温度差值序列分段标识,x为样本。Among them, the sample size of the temperature difference sequence x t is n1, the sample size of any difference sequence in the temperature difference sequence y t , z1 t ,…,zn t is n2, F 1 (x) and F 2 (x ) respectively represent the cumulative empirical distribution function of the two samples, j is the segment identification of the temperature difference sequence, and x is the sample.

记Dj=F1(xj)-F2(xj),

Figure GDA0002508719650000031
Figure GDA0002508719650000032
代表Dj绝对距离的最大值。检验统计量Z近似于正态分布,其表达式为:Denote D j =F 1 (x j )-F 2 (x j ),
Figure GDA0002508719650000031
Figure GDA0002508719650000032
Represents the maximum value of the absolute distance of D j . The test statistic Z is approximately normally distributed and its expression is:

Figure GDA0002508719650000033
Figure GDA0002508719650000033

当零假设为真时,Z依密度分布d收敛于K分布,即当样本取自一维连续分布F时,When the null hypothesis is true, Z converges to the K distribution according to the density distribution d, that is, when the sample is taken from the one-dimensional continuous distribution F,

Figure GDA0002508719650000034
Figure GDA0002508719650000034

Figure GDA0002508719650000035
为取B(F(x))绝对距离的最大值,x为样本。
Figure GDA0002508719650000035
In order to take the maximum value of the absolute distance of B(F(x)), x is the sample.

经验分布函数B(t)为:The empirical distribution function B(t) is:

Figure GDA0002508719650000036
Figure GDA0002508719650000036

其中,x为自变量,i为自然数。Among them, x is an independent variable, and i is a natural number.

本发明还另外具体提供了一种温度传感器自检方法的技术实现方案,温度传感器自检方法,包括以下步骤:The present invention also specifically provides a technical implementation scheme of a temperature sensor self-checking method, the temperature sensor self-checking method, comprising the following steps:

S10)对列车在正常运行情况下传感器所测的温度数据序列T进行差分处理得到温度差值序列δT的分段标准差序列Θ,并通过对标准差序列Θ进行统计分析得到异常检测阈值K;S10) carry out differential processing to the temperature data sequence T measured by the sensor under normal operation of the train to obtain the segmented standard deviation sequence Θ of the temperature difference sequence δT, and obtain the abnormal detection threshold K by performing statistical analysis on the standard deviation sequence Θ;

S20)对实时输入的传感器所测温度数据序列t进行与步骤S10)相同的差分处理得到温度差值序列δt的分段标准差序列η;S20) perform the same differential processing as in step S10) on the real-time input sensor temperature data sequence t to obtain the segmented standard deviation sequence η of the temperature difference sequence δt;

S30)基于步骤S10)得到的异常检测阈值K及步骤S20)得到的标准差序列η判断分段温度差值序列δt是否存在异常;如果某段温度差值序列δt的分段标准差序列η大于或等于异常检测阈值K,则判断该段温度差值序列δt存在异常,并进入步骤S40),否则判断传感器正常;S30) Judge whether there is an abnormality in the segmented temperature difference sequence δt based on the abnormality detection threshold K obtained in step S10) and the standard deviation sequence η obtained in step S20); if the segmented standard deviation sequence η of a certain segment of temperature difference sequence δt is greater than or equal to the abnormality detection threshold K, then it is judged that the temperature difference sequence δt in this segment is abnormal, and the process goes to step S40), otherwise it is judged that the sensor is normal;

S40)判断步骤S30)中存在异常的某段温度差值序列δt与正常基准序列及前一相邻时间段温度差值序列δt的分布一致性;如果存在一致性,则判断传感器正常,如果不存在一致性,则判断传感器异常。S40) Judging that there is an abnormal temperature difference sequence δt in step S30), the distribution consistency between the normal reference sequence and the temperature difference sequence δt in the previous adjacent time period; if there is consistency, it is judged that the sensor is normal, if not If there is consistency, it is judged that the sensor is abnormal.

进一步的,所述步骤S10)进一步包括:Further, the step S10) further includes:

S11)选取正常情况下列车某部位运行过程中传感器所测的温度数据序列T,按单位时间ΔT计算温度差值序列δT;S11) Select the temperature data sequence T measured by the sensor during the operation of a certain part of the vehicle under normal conditions, and calculate the temperature difference sequence δT according to the unit time ΔT;

S12)对单位时间内的温度差值序列δT按相同时长T1分段,计算每段温度差值序列δT的标准差θi,并形成标准差序列Θ;S12) the temperature difference sequence δT in unit time is segmented by the same duration T1, calculate the standard deviation θ i of each section of temperature difference sequence δT, and form the standard deviation sequence θ;

S13)分析标准差序列Θ的分布情况,并计算标准差序列Θ的均值μ和标准差σ,按照发生概率

Figure GDA0002508719650000041
的原则构建列车该部位对应的异常检测阈值K;S13) Analyze the distribution of the standard deviation sequence Θ, and calculate the mean μ and standard deviation σ of the standard deviation sequence Θ, according to the probability of occurrence
Figure GDA0002508719650000041
The principle of constructing the anomaly detection threshold K corresponding to this part of the train;

其中,θ为温度差值序列δT的标准差。Among them, θ is the standard deviation of the temperature difference series δT.

Figure GDA0002508719650000042
Figure GDA0002508719650000042

Figure GDA0002508719650000043
Figure GDA0002508719650000043

其中,ωi为加权系数,此处

Figure GDA0002508719650000044
xi为样本值,n为样本数。Among them, ω i is the weighting coefficient, here
Figure GDA0002508719650000044
x i is the sample value, and n is the number of samples.

进一步的,所述步骤S20)进一步包括:Further, the step S20) further includes:

S21)实时输入传感器所测的温度数据序列t;S21) real-time input temperature data sequence t measured by the sensor;

S22)按单位时间Δt计算温度差值序列δt;S22) Calculate temperature difference sequence δt according to unit time Δt;

S23)对单位时间内的温度差值序列δt按相同时长T2分段,计算每段温度差值序列δt的标准差,并形成标准差序列η。S23) Segment the temperature difference sequence δt in a unit time according to the same duration T2, calculate the standard deviation of each segment of the temperature difference sequence δt, and form a standard deviation sequence η.

进一步的,所述步骤S40)进一步包括:Further, the step S40) further includes:

S41)通过比较异常检测阈值K和标准差序列η发现列车运行过程中某段温度差值序列δt出现疑似异常的数据后,记录该段温度差值序列xt的信息,并获取该段温度差值序列xt及其前一相邻时间段的温度差值序列ytS41) By comparing the abnormality detection threshold K and the standard deviation sequence η, it is found that a certain section of the temperature difference sequence δt appears abnormal data during the train operation, record the information of the temperature difference sequence x t , and obtain the temperature difference of the section The value sequence x t and the temperature difference sequence y t of the previous adjacent time period;

S42)获取相同时间段列车其它相似位置传感器所测的温度差值序列z1t,…,zntS42) Obtain the temperature difference sequence z1 t , . . . , zn t measured by other similar position sensors of the train in the same time period;

S43)就疑似异常的温度差值序列xt分别与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}逐一地进行K-S分布检验;S43) Take the temperature difference series x t suspected to be abnormal and the temperature difference series y t of the previous adjacent time period respectively, and the temperature difference series {z1 t ,...,zn t } measured by other similar position sensors one by one KS distribution test is carried out;

S44)当所有检验的发生概率P值均小于设定标准,则输出传感器异常预警信号,否则传感器正常。S44) When the occurrence probability P value of all inspections is less than the set standard, output a sensor abnormality warning signal, otherwise the sensor is normal.

进一步的,所述步骤S43)进一步包括:Further, the step S43) further comprises:

设温度差值序列xt的样本量为n1,温度差值序列yt,z1t,…,znt中任一差值序列的样本量为n2,F1(x)和F2(x)分别表示两个样本的累积经验分布函数,j为温度差值序列分段标识,x为样本。Let the sample size of the temperature difference sequence x t be n1, the sample size of any difference sequence in the temperature difference sequence y t , z1 t ,…,zn t be n2, F 1 (x) and F 2 (x) respectively represent the cumulative empirical distribution function of the two samples, j is the segment identification of the temperature difference sequence, and x is the sample.

记Dj=F1(xj)-F2(xj),

Figure GDA0002508719650000051
Figure GDA0002508719650000052
代表Dj绝对距离的最大值。检验统计量Z近似于正态分布,其表达式为:Denote D j =F 1 (x j )-F 2 (x j ),
Figure GDA0002508719650000051
Figure GDA0002508719650000052
Represents the maximum value of the absolute distance of D j . The test statistic Z is approximately normally distributed and its expression is:

Figure GDA0002508719650000053
Figure GDA0002508719650000053

当零假设为真时,Z依密度分布d收敛于K分布,即当样本取自一维连续分布F时,When the null hypothesis is true, Z converges to the K distribution according to the density distribution d, that is, when the sample is taken from the one-dimensional continuous distribution F,

Figure GDA0002508719650000054
Figure GDA0002508719650000054

Figure GDA0002508719650000055
为取B(F(x))绝对距离的最大值,x为样本。
Figure GDA0002508719650000055
In order to take the maximum value of the absolute distance of B(F(x)), x is the sample.

经验分布函数B(t)为:The empirical distribution function B(t) is:

Figure GDA0002508719650000056
Figure GDA0002508719650000056

其中,x为自变量,i为自然数;Among them, x is an independent variable, and i is a natural number;

在判断待检验温度差值序列xt与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}的分布一致性时,通过检验序列间经验分布函数的最大差距值D来确定温度差值序列xt的显著性。当实际计算所得的最大差距值D大于某一设定标准值,或最大差距值D所对应的分布概率P值小于某一设定标准值时,则两个温度差值序列之间不具备一致性。When judging the distribution consistency between the temperature difference sequence x t to be tested and the temperature difference sequence y t in the previous adjacent time period, and the temperature difference sequence {z1 t ,...,zn t } measured by other similar position sensors When , the significance of the temperature difference series x t is determined by testing the maximum difference value D of the empirical distribution function between the series. When the actual calculated maximum difference value D is greater than a certain set standard value, or when the distribution probability P value corresponding to the maximum difference value D is less than a certain set standard value, there is no consistency between the two temperature difference series. sex.

通过实施上述本发明提供的温度传感器自检装置及方法的技术方案,具有如下有益效果:By implementing the above technical solutions of the temperature sensor self-checking device and method provided by the present invention, the following beneficial effects are obtained:

(1)本发明基于传感器(系统)本身所测温度值的变化值进行自检和预警,相对现有技术中基于电流、电压等其它变量或对比多装置测量结果的技术方案来说,能够更有效、更直接地发现可能存在的异常,监测和预警结果将会更加真实、准确;(1) The present invention performs self-checking and early warning based on the change value of the temperature value measured by the sensor (system) itself. Compared with the technical scheme based on other variables such as current, voltage or comparing the measurement results of multiple devices in the prior art, it can be more Effective and more direct discovery of possible anomalies, monitoring and early warning results will be more real and accurate;

(2)本发明不仅利用阈值指标进行自检预警,而且从对比分布变化的角度进行进一步检测和发现异常,相对现有技术仅仅使用一到两个指示指标对传感器故障进行分析来说,自检和预警的规则、结果更加准确和有效;(2) The present invention not only uses the threshold index for self-inspection and early warning, but also further detects and finds abnormalities from the perspective of comparative distribution changes. Compared with the prior art, which only uses one or two indicator indicators to analyze sensor failures, self-inspection The rules and results of early warning are more accurate and effective;

(3)本发明基于大量实际运行过程中正常和异常的数据开展分析和应用,相对现有技术中基于的数据量较少等问题来说,模型结果的更加可靠,考虑的因素更加充分、合理,可检验性和实用性也更强;(3) The present invention is based on a large number of normal and abnormal data in the actual operation process to carry out analysis and application. Compared with the problems such as the smaller amount of data based on the prior art, the model results are more reliable, and the factors considered are more sufficient and reasonable. , the testability and practicability are also stronger;

(4)本发明基于列车运行过程中测量的大量温度数据进行实时自检测和预警,并基于不断更新的数据自动调整阈值和分布检验分段方式,具有显著的高效性和智能化水平。(4) The present invention performs real-time self-detection and early warning based on a large amount of temperature data measured during train operation, and automatically adjusts the threshold value and distribution test segmentation method based on the continuously updated data, which has remarkable efficiency and intelligence.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获取其它的实施例。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention, and for those of ordinary skill in the art, other embodiments can also be obtained according to these drawings without creative efforts.

图1是本发明温度传感器自检装置一种具体实施例的系统结构框图;Fig. 1 is a system structure block diagram of a specific embodiment of a temperature sensor self-checking device of the present invention;

图2是本发明温度传感器自检方法一种具体实施例的工作流程原理示意图;2 is a schematic diagram of the working flow principle of a specific embodiment of the temperature sensor self-checking method of the present invention;

图3是本发明温度传感器自检方法一种具体实施例的程序流程图;Fig. 3 is the program flow chart of a specific embodiment of the temperature sensor self-checking method of the present invention;

图4是本发明温度传感器自检方法一种具体实施例中K-S检验的示意图;4 is a schematic diagram of K-S inspection in a specific embodiment of the temperature sensor self-inspection method of the present invention;

图中:1-异常检测阈值计算模块,2-关键特征值提取模块,3-第一异常检测模块,4-一致性检验模块,5-第二异常检测模块。In the figure: 1- anomaly detection threshold calculation module, 2- key feature value extraction module, 3- first anomaly detection module, 4- consistency checking module, 5- second anomaly detection module.

具体实施方式Detailed ways

为了引用和清楚起见,将下文中使用的技术名词、简写或缩写记载如下:For the sake of citation and clarity, the technical terms, abbreviations or abbreviations used hereinafter are recorded as follows:

非参数检验:指在总体方差未知或知道甚少的情况下,利用样本数据对总体分布形态等进行推断的方法。由于非参数检验方法在推断过程中不涉及有关总体分布的参数,因而被称为“非参数”检验。Nonparametric test: refers to the method of using sample data to infer the population distribution pattern when the population variance is unknown or little known. Since nonparametric test methods do not involve parameters about the population distribution during inference, they are called "nonparametric" tests.

K-S检验:柯尔莫哥洛夫-斯米尔诺夫检验基于累计分布函数,用以检验两个经验分布是否不同或一个经验分布与另一个理想分布是否不同。它与t检验之类的其他方法不同是K-S检验不需要知道数据的分布情况,可以算是一种非参数检验方法。在样本量比较小的时候,K-S检验作为一种非参数检验在分析两组数据之间是否存在不同时是一种常用的方法。K-S test: The Kolmogorov-Smirnov test is based on a cumulative distribution function and is used to test whether two empirical distributions are different or whether one empirical distribution is different from another ideal distribution. It is different from other methods such as t test in that the K-S test does not need to know the distribution of the data, and can be regarded as a nonparametric test method. When the sample size is relatively small, the K-S test, as a nonparametric test, is a commonly used method to analyze whether there is a difference between two groups of data.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。To make the purposes, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

如附图1至附图4所示,给出了本发明温度传感器自检装置及方法的具体实施例,下面结合附图和具体实施例对本发明作进一步的说明。As shown in Figures 1 to 4, specific embodiments of the temperature sensor self-checking device and method of the present invention are given, and the present invention will be further described below with reference to the accompanying drawings and specific embodiments.

实施例1Example 1

通过大量数据的分析和研究发现,列车上各相关部位的温度变化通常是一个相对缓慢的过程。也就是说,在短时间内温度的变化出现大幅波动的可能性较小,特别是在极短时间内出现温度大幅下降的情况几乎很难发生。因而,基于此方面的考虑,如果发现在某段较短的时间内温度变化值出现急剧波动,且相近时段内变化值的分布存在明显差别时,则说明相应的温度传感器(系统)很可能出现了异常。因此,本发明具体实施例通过单位时间内温度差分值的标准差来度量波动水平,并结合K-S分布检验法来实现对相近时段温差分布的检验对比,以此来综合判断温度传感器是否存在异常。本实施例描述的温度传感器自检装置共包含两大部分功能,第一部分为温差异常检测阈值的确定(建模),第二部分为结合阈值和K-S检验实现对温度传感器异常的自检。Through the analysis and research of a large amount of data, it is found that the temperature change of each relevant part on the train is usually a relatively slow process. That is to say, the possibility of large fluctuations in temperature changes in a short period of time is small, especially in the case of a large temperature drop in a very short period of time, it is almost difficult to occur. Therefore, based on this consideration, if it is found that the temperature change value fluctuates sharply in a short period of time, and the distribution of the change value in a similar time period is significantly different, it means that the corresponding temperature sensor (system) is likely to appear exception. Therefore, the specific embodiment of the present invention measures the fluctuation level by the standard deviation of the temperature difference value per unit time, and combines the K-S distribution test method to realize the test and comparison of the temperature difference distribution in similar time periods, so as to comprehensively judge whether the temperature sensor is abnormal. The temperature sensor self-checking device described in this embodiment includes two major functions. The first part is the determination (modeling) of the abnormal temperature difference detection threshold, and the second part is combined with the threshold value and K-S test to realize the self-check of the temperature sensor abnormality.

在温差异常检测阈值确定方面,首先通过对列车系统正常情况下各温度类时间序列数据进行差分处理,然后以处理后的温差数据按原则分段计算波动性(标准差),形成相应的标准差序列,再以形成的标准差序列为基准估计相应的分布情况,计算波动序列的均值和标准差,最后结合统计分布原理得到异常检测阈值μ+3σ(即异常检测阈值K)。In terms of determining the threshold value of the constant temperature difference detection, firstly, the difference processing is performed on the time series data of each temperature type under normal conditions of the train system, and then the volatility (standard deviation) is calculated in principle segments according to the processed temperature difference data to form the corresponding standard deviation. Then, the corresponding distribution is estimated based on the formed standard deviation sequence, the mean and standard deviation of the fluctuation sequence are calculated, and finally the anomaly detection threshold μ+3σ (that is, the anomaly detection threshold K) is obtained by combining the statistical distribution principle.

在结合异常检测阈值和K-S检验实现对温度传感器异常自检方面,对于实时输入的温度检测数据,首先按照与温差异常检测阈值确定阶段同样的规则计算差分及相应的波动序列,再基于前面所得异常检测阈值判断分段波动序列的异常可能性,如大于或等于异常检测阈值则判断该段温度值疑似异常,进而进一步深入判断该段温差序列与基础温差序列及前期序列的分布差异性,如存在明显差异,则说明传感器(系统)存在异常;反之,则认为暂无异常。In terms of realizing the abnormal self-check of temperature sensor by combining the abnormal detection threshold and K-S test, for the real-time input temperature detection data, firstly calculate the difference and the corresponding fluctuation sequence according to the same rules as in the determination stage of the abnormal temperature detection threshold, and then based on the abnormality obtained above The detection threshold determines the abnormal possibility of the segmental fluctuation sequence. If it is greater than or equal to the abnormal detection threshold, it is determined that the temperature value of this segment is suspected to be abnormal, and then the distribution difference between this segment of the temperature difference sequence and the basic temperature difference sequence and the previous sequence is further judged. If the difference is obvious, it means that the sensor (system) is abnormal; otherwise, it is considered that there is no abnormality.

以下将基于上述工作原理的温度传感器自检装置的具体实现方案详述如下。The specific implementation scheme of the temperature sensor self-checking device based on the above working principle will be described in detail below.

如附图1所示,一种温度传感器自检装置的实施例,具体包括:As shown in FIG. 1, an embodiment of a temperature sensor self-checking device specifically includes:

异常检测阈值计算模块1,用于对列车在正常运行情况下传感器所测的温度数据序列T(如:可以是油温、轴温、水温等数据)进行差分处理得到温度差值序列δT的分段标准差序列Θ,并通过对标准差序列Θ进行统计分析得到异常检测阈值K;The abnormality detection threshold calculation module 1 is used to perform differential processing on the temperature data sequence T (such as: oil temperature, axle temperature, water temperature, etc.) measured by the sensor under the normal operation of the train to obtain the score of the temperature difference sequence δT. segment standard deviation sequence Θ, and obtain the anomaly detection threshold K by performing statistical analysis on the standard deviation sequence Θ;

关键特征值提取模块2,用于对实时输入的传感器所测温度数据序列t进行差分处理得到温度差值序列δt的分段标准差序列η;The key feature value extraction module 2 is used to perform differential processing on the real-time input temperature data sequence t measured by the sensor to obtain a segmented standard deviation sequence η of the temperature difference sequence δt;

第一异常检测模块3,用于根据异常检测阈值计算模块1输出的异常检测阈值K,及关键特征值提取模块2输出的标准差序列η判断分段温度差值序列δt是否存在异常;如果某段温度差值序列δt的分段标准差序列η大于或等于异常检测阈值K,则判断该段温度差值序列δt存在异常,并输出该段存在异常的温度差值序列δt,否则判断传感器正常;The first abnormality detection module 3 is used to judge whether there is an abnormality in the segmented temperature difference sequence δt according to the abnormality detection threshold K output by the abnormality detection threshold calculation module 1 and the standard deviation sequence n output by the key feature value extraction module 2; If the segmented standard deviation sequence η of the segment temperature difference sequence δt is greater than or equal to the abnormality detection threshold K, it is judged that the temperature difference sequence δt in this segment is abnormal, and the abnormal temperature difference sequence δt is output, otherwise it is judged that the sensor is normal ;

一致性检验模块4,用于对第一异常检测模块3输出存在异常的温度差值序列δt与正常基准序列及前一相邻时间段温度差值序列δt进行分布一致性检验;The consistency checking module 4 is used to perform a distribution consistency check on the abnormal temperature difference sequence δt output by the first anomaly detection module 3, the normal reference sequence and the temperature difference sequence δt in the previous adjacent time period;

第二异常检测模块5,用于判断一致性检验模块4输出的分布一致性检验发生概率P值是否小于设定标准,如果小于设定标准,则输出传感器异常预警信号,否则传感器正常。The second abnormality detection module 5 is used for judging whether the distribution consistency test occurrence probability P value output by the consistency test module 4 is less than the set standard, if it is less than the set standard, it outputs a sensor abnormality warning signal, otherwise the sensor is normal.

异常检测阈值计算模块1获取正常情况下列车某部位运行过程中传感器所测的温度数据序列T,按单位时间ΔT计算温度差值序列δT。对单位时间内的温度差值序列δT按相同时长T1分段,计算每段温度差值序列δT的标准差θi,并形成标准差序列Θ。分析标准差序列Θ的分布情况,并计算标准差序列Θ的均值μ和标准差σ,按照发生概率(即分布一致性检验发生概率)

Figure GDA0002508719650000081
的原则构建列车该部位对应的异常检测阈值K。The abnormality detection threshold calculation module 1 obtains the temperature data sequence T measured by the sensor during the operation of a certain part of the vehicle under normal conditions, and calculates the temperature difference sequence δT per unit time ΔT. The temperature difference sequence δT in unit time is segmented according to the same duration T1, the standard deviation θ i of each temperature difference sequence δT is calculated, and the standard deviation sequence Θ is formed. Analyze the distribution of the standard deviation series Θ, and calculate the mean μ and standard deviation σ of the standard deviation series Θ, according to the probability of occurrence (ie, the probability of occurrence of the distribution consistency test)
Figure GDA0002508719650000081
The principle of constructing the anomaly detection threshold K corresponding to this part of the train.

其中,θ为温度差值序列δT的标准差。Among them, θ is the standard deviation of the temperature difference series δT.

Figure GDA0002508719650000082
Figure GDA0002508719650000082

Figure GDA0002508719650000083
Figure GDA0002508719650000083

其中,ωi为加权系数,此处

Figure GDA0002508719650000084
xi为样本值,n为样本数。Among them, ω i is the weighting coefficient, here
Figure GDA0002508719650000084
x i is the sample value, and n is the number of samples.

关键特征值提取模块2获取实时输入传感器所测的温度数据序列t,按单位时间Δt计算温度差值序列δt,对单位时间内的温度差值序列δt按相同时长T2分段,计算每段温度差值序列δt的标准差,并形成标准差序列η。The key feature value extraction module 2 obtains the temperature data sequence t measured by the real-time input sensor, calculates the temperature difference sequence δt per unit time Δt, and divides the temperature difference sequence δt per unit time according to the same duration T2 to calculate the temperature of each segment standard deviation of the difference series δt, and form the standard deviation series η.

一致性检验模块4通过比较异常检测阈值K和标准差序列η发现列车运行过程中某段温度差值序列δt出现疑似异常的数据后,记录该段温度差值序列xt的信息,并获取该段温度差值序列xt及其前一相邻时间段的温度差值序列yt,同时获取相同时间段列车其它相似位置传感器所测的温度差值序列z1t,…,znt,并就疑似异常的温度差值序列xt分别与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}逐一地进行K-S分布检验。The consistency check module 4, by comparing the abnormality detection threshold K and the standard deviation sequence η, finds that there is suspected abnormal data in a certain temperature difference sequence δt during the operation of the train, records the information of the temperature difference sequence x t , and obtains the data. The temperature difference sequence x t of the segment and the temperature difference sequence y t of the previous adjacent time segment are obtained, and the temperature difference sequence z1 t ,...,zn t measured by other similar position sensors of the train in the same time segment is obtained at the same time. The suspected abnormal temperature difference sequence x t and the temperature difference sequence y t of the previous adjacent time period, and the temperature difference sequence {z1 t ,...,zn t } measured by other similar position sensors, respectively perform KS one by one. Distribution test.

一致性检验模块4在判断待检验温度差值序列xt与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}的分布一致性时,通过检验序列间经验分布函数的最大差距值D来确定温度差值序列xt的显著性。当实际计算所得的最大差距值D大于某一设定标准值,或最大差距值D所对应的K-S分布概率P值(即分布一致性检验发生概率P值)小于某一设定标准值时,则两个温度差值序列之间不具备一致性。The consistency checking module 4 is judging the temperature difference series x t to be checked and the temperature difference series y t of the previous adjacent time period, and the temperature difference series {z1 t ,...,zn t measured by other similar position sensors When the distribution consistency of }, the significance of the temperature difference series x t is determined by checking the maximum difference value D of the empirical distribution function between the series. When the actual calculated maximum gap value D is greater than a certain set standard value, or the KS distribution probability P value corresponding to the maximum gap value D (that is, the probability P value of distribution consistency test occurrence) is less than a set standard value, Then there is no consistency between the two temperature difference series.

其中,温度差值序列xt的样本量为n1,温度差值序列yt,z1t,…,znt中任一差值序列的样本量为n2,F1(x)和F2(x)分别表示两个样本的累积经验分布函数,j为温度差值序列分段标识,x为样本。Among them, the sample size of the temperature difference sequence x t is n1, the sample size of any difference sequence in the temperature difference sequence y t , z1 t ,…,zn t is n2, F 1 (x) and F 2 (x ) respectively represent the cumulative empirical distribution function of the two samples, j is the segment identification of the temperature difference sequence, and x is the sample.

记Dj=F1(xj)-F2(xj),

Figure GDA0002508719650000091
Figure GDA0002508719650000092
代表Dj绝对距离的最大值。检验统计量Z近似于正态分布,其表达式为:Denote D j =F 1 (x j )-F 2 (x j ),
Figure GDA0002508719650000091
Figure GDA0002508719650000092
Represents the maximum value of the absolute distance of D j . The test statistic Z is approximately normally distributed and its expression is:

Figure GDA0002508719650000093
Figure GDA0002508719650000093

当零假设为真时,Z依密度分布d收敛于K分布,即当样本取自一维连续分布F时,When the null hypothesis is true, Z converges to the K distribution according to the density distribution d, that is, when the sample is taken from the one-dimensional continuous distribution F,

Figure GDA0002508719650000094
Figure GDA0002508719650000094

Figure GDA0002508719650000095
为取B(F(x))绝对距离的最大值,x为样本。
Figure GDA0002508719650000095
In order to take the maximum value of the absolute distance of B(F(x)), x is the sample.

经验分布函数B(t)为:The empirical distribution function B(t) is:

Figure GDA0002508719650000096
Figure GDA0002508719650000096

其中,x为自变量,i为自然数。Among them, x is an independent variable, and i is a natural number.

实施例2Example 2

在本实施例中,由于所使用的数据主要是传感器所测的时序型温度数据,在进行实时异常自检时,因为不同列车所处环境、线路及状态的不同而存在相对差异,不能直接通过温度值进行判断,因此需要对温度序列数据进行数据分类重构,建立差分序列并分段计算波动性后再进行异常检测。如附图2和附图3所示,一种温度传感器自检方法的实施例,具体包括以下步骤:In this embodiment, since the data used is mainly the time series temperature data measured by the sensor, during the real-time abnormal self-check, there are relative differences due to the different environments, lines and states of different trains, which cannot be directly passed through. Therefore, it is necessary to classify and reconstruct the temperature sequence data, establish a difference sequence and calculate the volatility in segments before performing anomaly detection. As shown in Figure 2 and Figure 3, an embodiment of a temperature sensor self-checking method specifically includes the following steps:

S10)对列车在正常运行情况下传感器所测的温度数据序列T进行差分处理得到温度差值序列δT的分段标准差序列Θ,并通过对标准差序列Θ进行统计分析得到异常检测阈值K;S10) carry out differential processing to the temperature data sequence T measured by the sensor under normal operation of the train to obtain the segmented standard deviation sequence Θ of the temperature difference sequence δT, and obtain the abnormal detection threshold K by performing statistical analysis on the standard deviation sequence Θ;

S20)对实时输入的传感器所测温度数据序列t进行与步骤S10)相同的差分处理得到温度差值序列δt的分段标准差序列η;S20) perform the same differential processing as in step S10) on the real-time input sensor temperature data sequence t to obtain the segmented standard deviation sequence η of the temperature difference sequence δt;

S30)基于步骤S10)得到的异常检测阈值K及步骤S20)得到的标准差序列η判断分段温度差值序列δt是否存在异常;如果某段温度差值序列δt的分段标准差序列η大于或等于异常检测阈值K,则判断该段温度差值序列δt存在异常,并进入步骤S40),否则判断传感器正常;S30) Judge whether there is an abnormality in the segmented temperature difference sequence δt based on the abnormality detection threshold K obtained in step S10) and the standard deviation sequence η obtained in step S20); if the segmented standard deviation sequence η of a certain segment of temperature difference sequence δt is greater than or equal to the abnormality detection threshold K, then it is judged that the temperature difference sequence δt in this segment is abnormal, and the process goes to step S40), otherwise it is judged that the sensor is normal;

S40)判断步骤S30)中存在异常的某段温度差值序列δt与正常基准序列及前一相邻时间段温度差值序列δt的分布一致性;如果存在一致性,则判断传感器正常,如果不存在一致性,则判断传感器异常。S40) Judging that there is an abnormal temperature difference sequence δt in step S30), the distribution consistency between the normal reference sequence and the temperature difference sequence δt in the previous adjacent time period; if there is consistency, it is judged that the sensor is normal, if not If there is consistency, it is judged that the sensor is abnormal.

步骤S10)进一步包括:Step S10) further comprises:

S11)选取正常情况下列车某部位运行过程中传感器所测的温度数据序列T,按单位时间ΔT(如:1s)计算温度差值序列δT;S11) Select the temperature data sequence T measured by the sensor during the operation of a certain part of the vehicle under normal conditions, and calculate the temperature difference sequence δT according to the unit time ΔT (eg: 1s);

S12)对单位时间内的温度差值序列δT按相同时长T1分段,计算每段温度差值序列δT的标准差θi,并形成标准差序列Θ;S12) the temperature difference sequence δT in unit time is segmented by the same duration T1, calculate the standard deviation θ i of each section of temperature difference sequence δT, and form the standard deviation sequence θ;

S13)分析标准差序列Θ的分布情况,并计算标准差序列Θ的均值μ和标准差σ,按照发生概率

Figure GDA0002508719650000101
的原则构建列车该部位对应的异常检测阈值K;S13) Analyze the distribution of the standard deviation sequence Θ, and calculate the mean μ and standard deviation σ of the standard deviation sequence Θ, according to the probability of occurrence
Figure GDA0002508719650000101
The principle of constructing the anomaly detection threshold K corresponding to this part of the train;

S14)按照步骤S11)~S13)相同的方式计算同列车不同部位、不同列车各部位对应的异常检测阈值K,并形成温度传感器异常自检阈值矩阵。S14) Calculate the abnormality detection threshold K corresponding to different parts of the same train and different parts of the train in the same manner as steps S11) to S13), and form a temperature sensor abnormality self-checking threshold matrix.

其中,θ为温度差值序列δT的标准差。Among them, θ is the standard deviation of the temperature difference series δT.

Figure GDA0002508719650000102
Figure GDA0002508719650000102

Figure GDA0002508719650000103
Figure GDA0002508719650000103

其中,ωi为加权系数,此处

Figure GDA0002508719650000104
xi为样本值,n为样本数。Among them, ω i is the weighting coefficient, here
Figure GDA0002508719650000104
x i is the sample value, and n is the number of samples.

此处的均值—μ通常指样本的算术平均数,表示一组数据集中趋势的量数,是指在一组数据中所有数据之和再除以这组数据的个数,它是反映数据集中趋势的一项指标。The mean-μ here usually refers to the arithmetic mean of the sample, which represents the number of trends in a set of data, and refers to the sum of all data in a set of data divided by the number of data in this set, which is a reflection of the data set. an indicator of a trend.

标准差—σ是离均差平方和平均后的方根,也即方差的算术平方根。标准差能反映一个数据集的离散程度,或者也可称之为波动程度。平均数相同的,标准差未必相同。标准差可以当作不确定性的一种测量。例如:在实际测量科学中,进行重复性测量时,测量数值集合的标准差代表这些测量的精确度。当要确定测量值是否符合预测值时,测量值的标准差占有决定性重要角色:如果测量平均值与预测值相差太远(同时与标准差数值做比较),则认为测量值与预测值互相矛盾。因为如果测量值都落在一定数值范围之外,则可以合理推论预测值是否正确。Standard Deviation—σ is the square root of the squared deviation from the mean and the mean, or the arithmetic square root of the variance. The standard deviation can reflect the degree of dispersion of a data set, or it can also be called the degree of fluctuation. If the mean is the same, the standard deviation may not be the same. Standard deviation can be used as a measure of uncertainty. For example: in practical measurement science, when repeatable measurements are made, the standard deviation of the set of measurement values represents the precision of those measurements. The standard deviation of the measured value plays a decisive role when it comes to determining whether the measured value matches the predicted value: if the measured mean is too far from the predicted value (and compared to the standard deviation value), the measured value and the predicted value are considered contradictory . Because if the measured values all fall outside a certain numerical range, it is reasonable to infer whether the predicted value is correct.

步骤S20)进一步包括:Step S20) further comprises:

S21)实时输入传感器所测的温度数据序列t;S21) real-time input temperature data sequence t measured by the sensor;

S22)按单位时间Δt计算温度差值序列δt;S22) Calculate temperature difference sequence δt according to unit time Δt;

S23)对单位时间内的温度差值序列δt按相同时长T2分段,计算每段温度差值序列δt的标准差,并形成标准差序列η。S23) Segment the temperature difference sequence δt in a unit time according to the same duration T2, calculate the standard deviation of each segment of the temperature difference sequence δt, and form a standard deviation sequence η.

由于通过前述步骤基于温差分段序列波动的分布阈值来判断传感器(系统)异常,还存在一些可能误报异常的问题,譬如:偶尔某个时点因信号问题导致的跳变,本不属于传感器或系统异常,而通过阈值判别则有可能将其判别为传感器(系统)异常,从而出现误报。为此,需要在阈值判别的基础上再结合温差总体分布的特点强化判断原则。Since the above steps are used to judge the abnormality of the sensor (system) based on the distribution threshold of the temperature difference subsection sequence fluctuation, there are still some problems that may falsely report the abnormality, for example, the occasional jump caused by a signal problem at a certain point in time does not belong to the sensor. Or the system is abnormal, and it may be judged as a sensor (system) abnormality through the threshold judgment, resulting in a false alarm. For this reason, it is necessary to strengthen the judgment principle based on the threshold judgment and the characteristics of the overall distribution of the temperature difference.

而之所以通过分布检验来提高异常自检准确率的原因在于,通常情况下,在短时间内,同一列车相同位置影响温度变化的因素不可能发生很大、根本性的改变,因而相邻短时间内温差分布应该属于同一总体分布,不至于出现显著的分布差异,除非测量温度的传感器或系统出现了问题。另外,在无法确定不同列车、不同部位温差变化属于何种参数分布的情况下,通过非参数检验分布的一致性更加符合实际数据本身变化的特点,因而K-S两样本分布检验法在本实施例描述的技术方案中成为一种非常合适的选择。The reason for improving the accuracy of abnormal self-checking through distribution testing is that, under normal circumstances, in a short period of time, the factors that affect temperature changes at the same location of the same train cannot change greatly and fundamentally, so adjacent short-term The temperature difference distribution over time should belong to the same overall distribution, and there should be no significant distribution differences unless there is a problem with the sensor or system that measures the temperature. In addition, when it is impossible to determine which parameter distribution the temperature difference changes of different trains and different parts belong to, the consistency of the distribution through non-parametric test is more in line with the characteristics of the actual data itself. Therefore, the K-S two-sample distribution test method is described in this embodiment. It has become a very suitable choice in the technical solution.

对于分别来自两个不同总体的两个样本,想要检验它们背后的总体分布是否一致,可以进行两样本的K-S检验,其原理与单样本的K-S检验相同,只需要将检验统计量中零假设的分布换成另一个样本的经验分布即可,具体步骤如下。For two samples from two different populations, if you want to test whether the overall distribution behind them is consistent, you can perform a two-sample K-S test. The distribution of is replaced by the empirical distribution of another sample, and the specific steps are as follows.

步骤S40)进一步包括:Step S40) further comprises:

S41)通过比较异常检测阈值K和标准差序列η发现列车运行过程中某段温度差值序列δt出现疑似异常的数据后,记录该段温度差值序列xt的信息,并获取该段温度差值序列xt及其前一相邻时间段的温度差值序列ytS41) By comparing the abnormality detection threshold K and the standard deviation sequence η, it is found that a certain section of the temperature difference sequence δt appears abnormal data during the train operation, record the information of the temperature difference sequence x t , and obtain the temperature difference of the section The value sequence x t and the temperature difference sequence y t of the previous adjacent time period;

S42)获取相同时间段列车其它相似位置传感器所测的温度差值序列z1t,…,zntS42) Obtain the temperature difference sequence z1 t , . . . , zn t measured by other similar position sensors of the train in the same time period;

S43)就疑似异常的温度差值序列xt分别与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}逐一地进行K-S分布检验;S43) Take the temperature difference series x t suspected to be abnormal and the temperature difference series y t of the previous adjacent time period respectively, and the temperature difference series {z1 t ,...,zn t } measured by other similar position sensors one by one KS distribution test is carried out;

S44)当所有检验的发生概率P值均小于设定标准,则输出传感器异常预警信号,否则传感器正常,不输出传感器异常预警信号。S44) When the occurrence probability P value of all inspections is less than the set standard, output a sensor abnormality warning signal, otherwise the sensor is normal, and the sensor abnormality warning signal is not output.

步骤S43)进一步包括:Step S43) further comprises:

设温度差值序列xt的样本量为n1,温度差值序列yt,z1t,…,znt中任一差值序列的样本量为n2,F1(x)和F2(x)分别表示两个样本的累积经验分布函数,j为温度差值序列分段标识,x为样本。Let the sample size of the temperature difference sequence x t be n1, the sample size of any difference sequence in the temperature difference sequence y t , z1 t ,…,zn t be n2, F 1 (x) and F 2 (x) respectively represent the cumulative empirical distribution function of the two samples, j is the segment identification of the temperature difference sequence, and x is the sample.

记Dj=F1(xj)-F2(xj),

Figure GDA0002508719650000121
Figure GDA0002508719650000122
代表Dj绝对距离的最大值。检验统计量Z近似于正态分布,其表达式为:Denote D j =F 1 (x j )-F 2 (x j ),
Figure GDA0002508719650000121
Figure GDA0002508719650000122
Represents the maximum value of the absolute distance of D j . The test statistic Z is approximately normally distributed and its expression is:

Figure GDA0002508719650000123
Figure GDA0002508719650000123

当零假设为真时,Z依密度分布d收敛于K分布,即当样本取自一维连续分布F时,When the null hypothesis is true, Z converges to the K distribution according to the density distribution d, that is, when the sample is taken from the one-dimensional continuous distribution F,

Figure GDA0002508719650000124
Figure GDA0002508719650000124

Figure GDA0002508719650000125
为取B(F(x))绝对距离的最大值,x为样本。
Figure GDA0002508719650000125
In order to take the maximum value of the absolute distance of B(F(x)), x is the sample.

经验分布函数(即Kolmogonov分布函数)B(t)为:The empirical distribution function (ie the Kolmogonov distribution function) B(t) is:

Figure GDA0002508719650000126
Figure GDA0002508719650000126

其中,x为自变量,i为自然数;Among them, x is an independent variable, and i is a natural number;

如附图4所示,在判断待检验温度差值序列xt与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}的分布一致性时,通过检验序列间经验分布函数的最大差距值D来确定温度差值序列xt的显著性。当实际计算所得的最大差距值D大于某一设定标准值,或最大差距值D所对应的K-S分布概率P值小于某一设定标准值时,则拒绝两个序列来自于同一分布总体的假设,两个温度差值序列之间明显不具备一致性。即有理由说明,两个序列之间存在明显的差异性,与前述所认为的短时间内温差序列分布不会出现极大变化的前提不符,进而说明异常是由温度传感器(系统)原因所导致。As shown in Figure 4, when judging the temperature difference sequence x t to be tested and the temperature difference sequence y t of the previous adjacent time period, and the temperature difference sequence {z1 t , ..., When the distribution of zn t } is consistent, the significance of the temperature difference series x t is determined by checking the maximum difference value D of the empirical distribution function between the series. When the actual calculated maximum gap value D is greater than a certain set standard value, or the KS distribution probability P value corresponding to the maximum gap value D is less than a set standard value, the two sequences from the same distribution population are rejected. Assume that there is a clear inconsistency between the two series of temperature difference values. That is to say, there is a reason to show that there is an obvious difference between the two sequences, which is inconsistent with the premise that the distribution of temperature difference sequences in a short period of time will not change greatly, and further shows that the abnormality is caused by the temperature sensor (system). .

本发明具体实施例描述的温度传感器自检装置及方法以大数据平台为基础,结合现场实地反馈的列车各相关部件(车轴、电机、变压器、变流器等)的传感器测量所得的温度数据,构建了一套温度传感器(系统)异常自检装置及方法,实现了列车传感系统的自动化、智能化自检测和预警,通过将实际数据与统计分析算法有机结合,能够实现列车系统对温度传感器快速、有效自检,进而保障了列车的安全、高效运行。本发明具体实施例通过计算温度差值的波动序列的分布特征,以一定的概率确定温差异常检测阈值,将传感器异常数据在短时间内的波动变化良好的体现出来,有效地侦测到传感器(系统)异常所引起的测量温度值的异常变化,极大地提升了传感器(系统)异常自检效率。同时,本发明具体实施例基于列车部件温度变化的特点和规律,利用短时间内温差分布变化不大的性质,结合非参数检验方法对比不同时段间温差分布的差异性,极有效地降低了传感器(系统)异常自检和预警的误报率,大大提高了预测的总体准确率。The temperature sensor self-checking device and method described in the specific embodiments of the present invention are based on the big data platform, combined with the temperature data measured by the sensors of the relevant parts of the train (axles, motors, transformers, converters, etc.) fed back on the spot, A set of temperature sensor (system) abnormal self-checking device and method is constructed, which realizes the automation, intelligent self-checking and early warning of the train sensing system. Fast and effective self-inspection, thereby ensuring the safe and efficient operation of the train. In the specific embodiment of the present invention, by calculating the distribution characteristics of the fluctuation sequence of the temperature difference, the detection threshold of the abnormal temperature difference is determined with a certain probability, and the fluctuation change of the abnormal data of the sensor in a short time is well reflected, and the sensor ( The abnormal change of the measured temperature value caused by the abnormality of the system) greatly improves the self-test efficiency of the abnormality of the sensor (system). At the same time, the specific embodiment of the present invention is based on the characteristics and laws of temperature changes of train components, uses the property that the temperature difference distribution does not change much in a short period of time, and combines the non-parametric test method to compare the difference of the temperature difference distribution between different time periods, which is extremely effective in reducing the sensor. (System) The false alarm rate of abnormal self-check and early warning greatly improves the overall accuracy of prediction.

特别需要说明的是,在本发明上述具体实施例中,通过标准差对温差序列进行处理的方式,亦可以通过离散系数、极差等指标开展研究和应用。同时,本发明具体实施例中所使用的K-S非参数分布检验法,也可以尝试采用单位根检验、符号检验等非数参方法及其它参数检验法进行分布差异性检验。本发明具体实施例描述的温度传感器自检装置及方法可以采用基准代码为R和Python代码,或者也可以采用C、MATLAB、Java等一系列语言予以具体实现。It should be particularly noted that, in the above-mentioned specific embodiments of the present invention, the method of processing the temperature difference sequence through the standard deviation can also be studied and applied through indicators such as dispersion coefficient and range. At the same time, the K-S non-parametric distribution test method used in the specific embodiment of the present invention can also try to use non-parametric methods such as unit root test, symbol test and other parametric test methods to test the distribution difference. The temperature sensor self-checking device and method described in the specific embodiments of the present invention can be implemented by using the reference codes as R and Python codes, or by using a series of languages such as C, MATLAB, and Java.

通过实施本发明具体实施例描述的温度传感器自检装置及方法的技术方案,能够产生如下技术效果:By implementing the technical solutions of the temperature sensor self-checking device and method described in the specific embodiments of the present invention, the following technical effects can be produced:

(1)本发明具体实施例描述的温度传感器自检装置及方法,基于传感器(系统)本身所测温度值的变化值进行自检和预警,相对现有技术中基于电流、电压等其它变量或对比多装置测量结果的技术方案来说,能够更有效、更直接地发现可能存在的异常,监测和预警结果将会更加真实、准确;(1) The temperature sensor self-checking device and method described in the specific embodiment of the present invention performs self-checking and early warning based on the change value of the temperature value measured by the sensor (system) itself, compared with other variables such as current, voltage, etc. in the prior art. Compared with the technical solution of measuring results of multiple devices, possible anomalies can be found more effectively and directly, and the monitoring and early warning results will be more real and accurate;

(2)本发明具体实施例描述的温度传感器自检装置及方法,不仅利用阈值指标进行自检预警,而且从对比分布变化的角度进行进一步检测和发现异常,相对现有技术仅仅使用一到两个指示指标对传感器故障进行分析来说,自检和预警的规则、结果更加准确和有效;(2) The temperature sensor self-checking device and method described in the specific embodiment of the present invention not only uses the threshold index to carry out self-checking and early warning, but also further detects and finds abnormalities from the perspective of comparative distribution changes. Compared with the prior art, only one or two are used. For the analysis of sensor faults with an indicator index, the rules and results of self-inspection and early warning are more accurate and effective;

(3)本发明具体实施例描述的温度传感器自检装置及方法,基于大量实际运行过程中正常和异常的数据开展分析和应用,相对现有技术中基于的数据量较少等问题来说,模型结果的更加可靠,考虑的因素更加充分、合理,可检验性和实用性也更强;(3) The temperature sensor self-checking device and method described in the specific embodiments of the present invention carry out analysis and application based on a large number of normal and abnormal data in the actual operation process, compared with the problems such as less data based on the prior art, The model results are more reliable, the factors considered are more sufficient and reasonable, and the testability and practicability are stronger;

(4)本发明具体实施例描述的温度传感器自检装置及方法,基于列车运行过程中测量的大量温度数据进行实时自检测和预警,并基于不断更新的数据自动调整阈值和分布检验分段方式,具有显著的高效性和智能化水平。(4) The temperature sensor self-checking device and method described in the specific embodiment of the present invention performs real-time self-checking and early warning based on a large amount of temperature data measured during the operation of the train, and automatically adjusts the threshold value and the distribution check segmentation method based on the continuously updated data. , with remarkable efficiency and intelligence level.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other.

以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制。虽然本发明已以较佳实施例揭示如上,然而并非用以限定本发明。任何熟悉本领域的技术人员,在不脱离本发明的精神实质和技术方案的情况下,都可利用上述揭示的方法和技术内容对本发明技术方案做出许多可能的变动和修饰,或修改为等同变化的等效实施例。因此,凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所做的任何简单修改、等同替换、等效变化及修饰,均仍属于本发明技术方案保护的范围。The above descriptions are only preferred embodiments of the present invention, and do not limit the present invention in any form. Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art, without departing from the spirit and technical solutions of the present invention, can make many possible changes and modifications to the technical solutions of the present invention by using the methods and technical contents disclosed above, or modify them to be equivalent. Variant equivalent embodiments. Therefore, any simple modification, equivalent replacement, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still belong to the protection scope of the technical solution of the present invention.

Claims (6)

1.一种温度传感器自检装置,其特征在于,包括:1. a temperature sensor self-checking device, is characterized in that, comprises: 异常检测阈值计算模块(1),用于对列车在正常运行情况下传感器所测的温度数据序列T进行差分处理得到温度差值序列δT的分段标准差序列Θ,并通过对标准差序列Θ进行统计分析得到异常检测阈值K;The abnormal detection threshold calculation module (1) is used to perform differential processing on the temperature data sequence T measured by the sensor under normal operation of the train to obtain the segmented standard deviation sequence Θ of the temperature difference sequence δT, and by comparing the standard deviation sequence Θ Perform statistical analysis to obtain anomaly detection threshold K; 关键特征值提取模块(2),用于对实时输入的传感器所测温度数据序列t进行差分处理得到温度差值序列δt的分段标准差序列η;The key feature value extraction module (2) is used to perform differential processing on the real-time input temperature data sequence t measured by the sensor to obtain a segmented standard deviation sequence η of the temperature difference sequence δt; 第一异常检测模块(3),用于根据所述异常检测阈值计算模块(1)输出的异常检测阈值K,及所述关键特征值提取模块(2)输出的标准差序列η判断分段温度差值序列δt是否存在异常;如果某段温度差值序列δt的分段标准差序列η大于或等于异常检测阈值K,则判断该段温度差值序列δt存在异常,并输出该段存在异常的温度差值序列δ t,否则判断传感器正常;The first abnormality detection module (3) is used to judge the segment temperature according to the abnormality detection threshold value K output by the abnormality detection threshold value calculation module (1), and the standard deviation sequence n output by the key feature value extraction module (2) Whether the difference sequence δt is abnormal; if the segmented standard deviation sequence η of a certain temperature difference sequence δt is greater than or equal to the anomaly detection threshold K, it is judged that there is an abnormality in the temperature difference sequence δt, and the abnormality of this segment is output. Temperature difference sequence δ t, otherwise the sensor is judged to be normal; 一致性检验模块(4),用于对所述第一异常检测模块(3)输出存在异常的温度差值序列δt与正常基准序列及前一相邻时间段温度差值序列δt进行分布一致性检验;The consistency checking module (4) is used to perform distribution consistency on the abnormal temperature difference sequence δt output by the first anomaly detection module (3), the normal reference sequence and the temperature difference sequence δt in the previous adjacent time period test; 第二异常检测模块(5),用于判断所述一致性检验模块(4)输出的分布一致性检验发生概率P值是否小于设定标准,如果小于设定标准,则输出传感器异常预警信号,否则传感器正常;The second abnormality detection module (5) is used for judging whether the distribution consistency test occurrence probability P value output by the consistency test module (4) is less than the set standard, if it is less than the set standard, then output the sensor abnormality warning signal, Otherwise the sensor is normal; 所述异常检测阈值计算模块(1)获取正常情况下列车某部位运行过程中传感器所测的温度数据序列T,按单位时间ΔT计算温度差值序列δT;对单位时间内的温度差值序列δT按相同时长T1分段,计算每段温度差值序列δT的标准差θi,并形成标准差序列Θ;分析标准差序列Θ的分布情况,并计算标准差序列Θ的均值μ和标准差σ,按照发生概率
Figure FDA0002508719640000011
的原则构建列车该部位对应的异常检测阈值K;
The abnormality detection threshold calculation module (1) obtains the temperature data sequence T measured by the sensor during the operation of a certain part of the vehicle under normal conditions, and calculates the temperature difference sequence δT per unit time ΔT; for the temperature difference sequence δT per unit time According to the same time length T1, calculate the standard deviation θ i of each temperature difference sequence δT, and form the standard deviation sequence Θ; analyze the distribution of the standard deviation sequence Θ, and calculate the mean μ and standard deviation σ of the standard deviation sequence Θ , according to the probability of occurrence
Figure FDA0002508719640000011
The principle of constructing the anomaly detection threshold K corresponding to this part of the train;
其中,θ为温度差值序列δT的标准差;Among them, θ is the standard deviation of the temperature difference series δT;
Figure FDA0002508719640000012
Figure FDA0002508719640000012
Figure FDA0002508719640000013
Figure FDA0002508719640000013
其中,ωi为加权系数,此处
Figure FDA0002508719640000014
xi为样本值,n为样本数;
Among them, ω i is the weighting coefficient, here
Figure FDA0002508719640000014
x i is the sample value, n is the number of samples;
所述关键特征值提取模块(2)获取实时输入传感器所测的温度数据序列t,按单位时间Δt 计算温度差值序列δt,对单位时间内的温度差值序列δt按相同时长T2分段,计算每段温度差值序列δt的标准差,并形成标准差序列η。The key characteristic value extraction module (2) obtains the temperature data sequence t measured by the real-time input sensor, calculates the temperature difference value sequence δt per unit time Δt, and divides the temperature difference value sequence δt per unit time according to the same duration T2, Calculate the standard deviation of each temperature difference series δt, and form the standard deviation series η.
2.根据权利要求1所述的温度传感器自检装置,其特征在于:所述一致性检验模块(4)通过比较异常检测阈值K和标准差序列η发现列车运行过程中某段温度差值序列δt出现疑似异常的数据后,记录该段温度差值序列xt的信息,并获取该段温度差值序列xt及其前一相邻时间段的温度差值序列yt,同时获取相同时间段列车其它相似位置传感器所测的温度差值序列z1t,…,znt,并就疑似异常的温度差值序列xt分别与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}逐一地进行K-S分布检验。2. The temperature sensor self-checking device according to claim 1, wherein the consistency checking module (4) finds a certain section of temperature difference sequence in the train running process by comparing the abnormality detection threshold K and the standard deviation sequence η After the suspected abnormal data appears in δt, record the information of the temperature difference sequence x t , and obtain the temperature difference sequence x t of this segment and the temperature difference sequence y t of the previous adjacent time period, and obtain the same time The temperature difference series z1 t , ... , zn t measured by other similar position sensors of the train, and the temperature difference series x t suspected to be abnormal and the temperature difference series y t of the previous adjacent time period, and other The temperature difference sequence { z1 t , . 3.根据权利要求1或2所述的温度传感器自检装置,其特征在于:所述一致性检验模块(4)在判断待检验温度差值序列xt与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}的分布一致性时,通过检验序列间经验分布函数的最大差距值D来确定温度差值序列xt的显著性;当实际计算所得的最大差距值D大于某一设定标准值,或最大差距值D所对应的分布概率P值小于某一设定标准值时,则两个温度差值序列之间不具备一致性;3. The temperature sensor self-checking device according to claim 1 or 2, wherein the consistency checking module (4) judges the temperature difference between the temperature difference sequence x t to be checked and the previous adjacent time period When the value sequence y t and the temperature difference sequence {z1 t , . The significance of x t ; when the actual calculated maximum difference value D is greater than a set standard value, or the distribution probability P value corresponding to the maximum gap value D is less than a set standard value, then the difference between the two temperatures There is no consistency between sequences; 其中,温度差值序列xt的样本量为n1,温度差值序列yt,z1t,…,znt中任一差值序列的样本量为n2,F1(x)和F2(x)分别表示两个样本的累积经验分布函数,j为温度差值序列分段标识,x为样本;Among them, the sample size of the temperature difference sequence x t is n1, the sample size of any difference sequence in the temperature difference sequence y t , z1 t , ..., znt t is n2, F 1 (x) and F 2 (x ) respectively represent the cumulative empirical distribution function of the two samples, j is the segment identification of the temperature difference sequence, and x is the sample; 记Dj=F1(xj)-F2(xj),
Figure FDA0002508719640000021
Figure FDA0002508719640000022
代表Dj绝对距离的最大值;检验统计量Z近似于正态分布,其表达式为:
Denote D j =F 1 (x j )-F 2 (x j ),
Figure FDA0002508719640000021
Figure FDA0002508719640000022
Represents the maximum value of the absolute distance of D j ; the test statistic Z approximates a normal distribution, and its expression is:
Figure FDA0002508719640000023
Figure FDA0002508719640000023
当零假设为真时,Z依密度分布d收敛于K分布,即当样本取自一维连续分布F时,When the null hypothesis is true, Z converges to the K distribution according to the density distribution d, that is, when the sample is taken from the one-dimensional continuous distribution F,
Figure FDA0002508719640000024
Figure FDA0002508719640000024
Figure FDA0002508719640000025
为取B(F(x))绝对距离的最大值,x为样本;
Figure FDA0002508719640000025
In order to take the maximum value of the absolute distance of B(F(x)), x is the sample;
经验分布函数B(t)为:The empirical distribution function B(t) is:
Figure FDA0002508719640000026
Figure FDA0002508719640000026
其中,x为自变量,i为自然数。Among them, x is an independent variable, and i is a natural number.
4.一种温度传感器自检方法,其特征在于,包括以下步骤:4. a temperature sensor self-checking method, is characterized in that, comprises the following steps: S10)对列车在正常运行情况下传感器所测的温度数据序列T进行差分处理得到温度差值序列δT的分段标准差序列Θ,并通过对标准差序列Θ进行统计分析得到异常检测阈值K;S10) carry out differential processing to the temperature data sequence T measured by the sensor under normal operation of the train to obtain the segmented standard deviation sequence Θ of the temperature difference sequence δT, and obtain the abnormal detection threshold K by performing statistical analysis on the standard deviation sequence Θ; S20)对实时输入的传感器所测温度数据序列t进行与步骤S10)相同的差分处理得到温度差值序列δt的分段标准差序列η;S20) perform the same differential processing as in step S10) on the real-time input sensor temperature data sequence t to obtain the segmented standard deviation sequence η of the temperature difference sequence δt; S30)基于步骤S10)得到的异常检测阈值K及步骤S20)得到的标准差序列η判断分段温度差值序列δt是否存在异常;如果某段温度差值序列δt的分段标准差序列η大于或等于异常检测阈值K,则判断该段温度差值序列δt存在异常,并进入步骤S40),否则判断传感器正常;S30) Judge whether there is an abnormality in the segmented temperature difference sequence δt based on the abnormality detection threshold K obtained in step S10) and the standard deviation sequence η obtained in step S20); if the segmented standard deviation sequence η of a certain segment of temperature difference sequence δt is greater than or equal to the abnormality detection threshold K, then it is judged that the temperature difference sequence δt in this segment is abnormal, and the process goes to step S40), otherwise it is judged that the sensor is normal; S40)判断步骤S30)中存在异常的某段温度差值序列δt与正常基准序列及前一相邻时间段温度差值序列δt的分布一致性;如果存在一致性,则判断传感器正常,如果不存在一致性,则判断传感器异常;S40) Judging that there is an abnormal temperature difference sequence δt in step S30), the distribution consistency between the normal reference sequence and the temperature difference sequence δt in the previous adjacent time period; if there is consistency, it is judged that the sensor is normal, if not If there is consistency, it is judged that the sensor is abnormal; 所述步骤S10)进一步包括:Described step S10) further comprises: S11)选取正常情况下列车某部位运行过程中传感器所测的温度数据序列T,按单位时间ΔT计算温度差值序列δT;S11) Select the temperature data sequence T measured by the sensor during the operation of a certain part of the vehicle under normal conditions, and calculate the temperature difference sequence δT according to the unit time ΔT; S12)对单位时间内的温度差值序列δT按相同时长T1分段,计算每段温度差值序列δT的标准差θi,并形成标准差序列Θ;S12) the temperature difference sequence δT in unit time is segmented by the same duration T1, calculate the standard deviation θ i of each section of temperature difference sequence δT, and form the standard deviation sequence θ; S13)分析标准差序列Θ的分布情况,并计算标准差序列Θ的均值μ和标准差σ,按照发生概率
Figure FDA0002508719640000031
的原则构建列车该部位对应的异常检测阈值K;
S13) Analyze the distribution of the standard deviation sequence Θ, and calculate the mean μ and standard deviation σ of the standard deviation sequence Θ, according to the probability of occurrence
Figure FDA0002508719640000031
The principle of constructing the anomaly detection threshold K corresponding to this part of the train;
其中,θ为温度差值序列δT的标准差;Among them, θ is the standard deviation of the temperature difference series δT;
Figure FDA0002508719640000032
Figure FDA0002508719640000032
Figure FDA0002508719640000033
Figure FDA0002508719640000033
其中,ωi为加权系数,此处
Figure FDA0002508719640000034
xi为样本值,n为样本数;
Among them, ω i is the weighting coefficient, here
Figure FDA0002508719640000034
x i is the sample value, n is the number of samples;
所述步骤S20)进一步包括:Described step S20) further comprises: S21)实时输入传感器所测的温度数据序列t;S21) real-time input temperature data sequence t measured by the sensor; S22)按单位时间Δt计算温度差值序列δt;S22) Calculate temperature difference sequence δt according to unit time Δt; S23)对单位时间内的温度差值序列δt按相同时长T2分段,计算每段温度差值序列δt的标准差,并形成标准差序列η。S23) Segment the temperature difference sequence δt in unit time by the same duration T2, calculate the standard deviation of each segment of the temperature difference sequence δt, and form a standard deviation sequence η.
5.根据权利要求4所述的温度传感器自检方法,其特征在于,5. The temperature sensor self-checking method according to claim 4, wherein, 所述步骤S40)进一步包括:The step S40) further includes: S41)通过比较异常检测阈值K和标准差序列η发现列车运行过程中某段温度差值序列δt出现疑似异常的数据后,记录该段温度差值序列xt的信息,并获取该段温度差值序列xt及其前一相邻时间段的温度差值序列ytS41) By comparing the abnormality detection threshold K and the standard deviation sequence η, it is found that a certain section of the temperature difference sequence δt appears abnormal data during the train operation, record the information of the temperature difference sequence x t , and obtain the temperature difference of the section The value sequence x t and the temperature difference sequence y t of the previous adjacent time period; S42)获取相同时间段列车其它相似位置传感器所测的温度差值序列z1t,…,zntS42) Obtain the temperature difference value sequence z1 t , . . . , zn t measured by other similar position sensors of the train in the same time period; S43)就疑似异常的温度差值序列xt分别与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}逐一地进行K-S分布检验;S43) The temperature difference sequence x t that is suspected to be abnormal, the temperature difference sequence y t of the previous adjacent time period, and the temperature difference sequence {z1 t , . . . , zn t } measured by other similar position sensors , one by one KS distribution test is carried out; S44)当所有检验的发生概率P值均小于设定标准,则输出传感器异常预警信号,否则传感器正常。S44) When the occurrence probability P value of all inspections is less than the set standard, output a sensor abnormality warning signal, otherwise the sensor is normal. 6.根据权利要求4或5所述的温度传感器自检方法,其特征在于,所述步骤S43)进一步包括:6. The temperature sensor self-checking method according to claim 4 or 5, wherein the step S43) further comprises: 设温度差值序列xt的样本量为n1,温度差值序列yt,z1t,…,znt中任一差值序列的样本量为n2,F1(x)和F2(x)分别表示两个样本的累积经验分布函数,j为温度差值序列分段标识,x为样本;Let the sample size of the temperature difference sequence x t be n1, the sample size of any difference sequence in the temperature difference sequence y t , z1 t , ..., zn t be n2, F 1 (x) and F 2 (x) respectively represent the cumulative empirical distribution function of the two samples, j is the segment identification of the temperature difference sequence, and x is the sample; 记Dj=F1(xj)-F2(xj),
Figure FDA0002508719640000041
Figure FDA0002508719640000042
代表Dj绝对距离的最大值;检验统计量Z近似于正态分布,其表达式为:
Denote D j =F 1 (x j )-F 2 (x j ),
Figure FDA0002508719640000041
Figure FDA0002508719640000042
Represents the maximum value of the absolute distance of D j ; the test statistic Z approximates a normal distribution, and its expression is:
Figure FDA0002508719640000043
Figure FDA0002508719640000043
当零假设为真时,Z依密度分布d收敛于K分布,即当样本取自一维连续分布F时,When the null hypothesis is true, Z converges to the K distribution according to the density distribution d, that is, when the sample is taken from the one-dimensional continuous distribution F,
Figure FDA0002508719640000044
Figure FDA0002508719640000044
Figure FDA0002508719640000045
为取B(F(x))绝对距离的最大值,x为样本;
Figure FDA0002508719640000045
In order to take the maximum value of the absolute distance of B(F(x)), x is the sample;
经验分布函数B(t)为:The empirical distribution function B(t) is:
Figure FDA0002508719640000046
Figure FDA0002508719640000046
其中,x为自变量,i为自然数;Among them, x is an independent variable, and i is a natural number; 在判断待检验温度差值序列xt与前一相邻时间段的温度差值序列yt,及其它相似位置传感器所测的温度差值序列{z1t,…,znt}的分布一致性时,通过检验序列间经验分布函数的最大差距值D来确定温度差值序列xt的显著性;当实际计算所得的最大差距值D大于某一设定标准值,或最大差距值D所对应的分布概率P值小于某一设定标准值时,则两个温度差值序列之间不具备一致性。When judging the distribution consistency of the temperature difference sequence x t to be tested and the temperature difference sequence y t of the previous adjacent time period, and the temperature difference sequence {z1 t ,..., zn t } measured by other similar position sensors When , the significance of the temperature difference series x t is determined by checking the maximum difference value D of the empirical distribution function between the series; when the actual calculated maximum difference value D is greater than a certain set standard value, or the corresponding maximum difference value D When the distribution probability P value of , is less than a certain standard value, there is no consistency between the two temperature difference series.
CN201811236829.6A 2018-10-23 2018-10-23 Temperature sensor self-checking device and method Active CN109186813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811236829.6A CN109186813B (en) 2018-10-23 2018-10-23 Temperature sensor self-checking device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811236829.6A CN109186813B (en) 2018-10-23 2018-10-23 Temperature sensor self-checking device and method

Publications (2)

Publication Number Publication Date
CN109186813A CN109186813A (en) 2019-01-11
CN109186813B true CN109186813B (en) 2020-07-24

Family

ID=64942836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811236829.6A Active CN109186813B (en) 2018-10-23 2018-10-23 Temperature sensor self-checking device and method

Country Status (1)

Country Link
CN (1) CN109186813B (en)

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110107389B (en) * 2019-07-08 2019-10-22 潍柴动力股份有限公司 A method and device for detecting the reliability of a temperature sensor
CN110398375B (en) * 2019-07-16 2021-10-19 广州亚美信息科技有限公司 Method, device, equipment and medium for monitoring working state of vehicle cooling system
CN112241511B (en) * 2019-07-19 2024-05-14 上海杰之能软件科技有限公司 Performance detection method and device for auxiliary electrical system of vehicle and terminal
CN110736894A (en) * 2019-09-19 2020-01-31 科华恒盛股份有限公司 Fault recording method, system and terminal equipment
CN110751045B (en) * 2019-09-19 2023-12-08 厦门科华数能科技有限公司 Fault recording method, system and terminal equipment
CN110658765A (en) * 2019-10-14 2020-01-07 北京东方瑞威科技发展股份有限公司 Railway overload and unbalanced load rail weighbridge multi-path data acquisition system with diagnosis function
CN110715678B (en) * 2019-10-22 2021-12-03 东软睿驰汽车技术(沈阳)有限公司 Sensor abnormity detection method and device
CN113065219B (en) * 2020-01-02 2023-03-14 株洲中车时代电气股份有限公司 Method and device for detecting abnormality of train traction transformer cooling system
CN111371594B (en) * 2020-02-25 2023-05-02 成都西加云杉科技有限公司 Equipment abnormality alarm method and device and electronic equipment
CN111562123B (en) * 2020-05-07 2022-01-21 广东电网有限责任公司 Self-checking method for damp-proof device
CN111998972B (en) * 2020-09-17 2021-07-16 南方电网科学研究院有限责任公司 Detection method, device, terminal and medium of alarm function for sudden temperature change of terminal block
CN112037489B (en) * 2020-09-17 2021-07-16 南方电网科学研究院有限责任公司 Method, device, terminal and medium for detection of terminal block temperature over-limit alarm function
CN112229543A (en) * 2020-10-23 2021-01-15 蔚来汽车科技(安徽)有限公司 Method and device, medium, vehicle and server for judging battery temperature sensor status
CN112802312A (en) * 2020-12-30 2021-05-14 江苏龙威中科技术有限公司 Loongson 1B CPU-based monitoring board and detection method
CN114688693B (en) * 2020-12-31 2024-07-19 佛山市顺德区美的电热电器制造有限公司 Method and device for detecting opening and closing doors and windows based on temperature adjusting equipment
CN113029392B (en) * 2021-04-15 2024-05-31 高创(苏州)电子有限公司 Body temperature measurement method, device and electronic equipment
CN113392874B (en) * 2021-05-13 2022-12-13 中车唐山机车车辆有限公司 Abnormal state diagnosis method and device for rail vehicle and terminal equipment
CN113606752B (en) * 2021-06-29 2023-03-03 宁波德业日用电器科技有限公司 Jump-prevention dehumidifier humidity display method
CN113687609A (en) * 2021-07-21 2021-11-23 浙江微科机电有限公司 Intelligent monitoring system and monitoring method for Internet of things applied to abnormal environment
CN113588132B (en) * 2021-07-27 2023-08-08 吉林省中赢高科技有限公司 Temperature processing method and device
CN114383646B (en) * 2021-10-29 2023-08-25 廊坊市大华夏神农信息技术有限公司 Method and equipment for detecting resolution of continuously-variable measured sensor
JP2023128003A (en) * 2022-03-02 2023-09-14 株式会社Subaru sensor diagnostic device
CN114659672B (en) * 2022-03-08 2024-12-06 中国人民解放军火箭军工程大学 A method for detecting abnormal state of environmental monitoring sensor
CN114444988A (en) * 2022-04-11 2022-05-06 交通运输部公路科学研究所 A service performance evaluation method and device for a traffic infrastructure health monitoring system
CN114936675B (en) * 2022-04-26 2025-07-29 国能朔黄铁路发展有限责任公司 Fault early warning method and device, storage medium and electronic equipment
CN114795136B (en) * 2022-04-27 2025-05-06 秒秒测科技(北京)有限公司 Temperature measurement method, device, and computer equipment
CN114961952A (en) * 2022-05-20 2022-08-30 潍柴动力股份有限公司 Method, device and equipment for determining probe identification and storage medium
CN115638507B (en) * 2022-10-24 2025-01-24 青岛海信日立空调系统有限公司 Air conditioning system
CN115840897B (en) * 2023-02-09 2023-04-18 广东吉器电子有限公司 Temperature sensor data exception handling method
CN116337135B (en) * 2023-03-18 2025-10-03 北京嘉联优控科技有限公司 Instrument fault diagnosis method, system, electronic device and readable storage medium
CN116090939B (en) * 2023-04-12 2023-06-23 山东民生集团有限公司 Artificial intelligence-based method for identifying and tracking problem products in supply chain
CN116483056B (en) * 2023-04-28 2025-01-21 江苏中信博新能源科技股份有限公司 Abnormality detection method, device and system for photovoltaic power station control system
TWI855746B (en) * 2023-06-21 2024-09-11 群光電能科技股份有限公司 Testing system and testing method for sensor data of monitoring system
CN117077050A (en) * 2023-07-14 2023-11-17 中车南京浦镇车辆有限公司 Rail vehicle early warning method and device, electronic equipment and storage medium
CN116643951B (en) * 2023-07-24 2023-10-10 青岛冠成软件有限公司 A cold chain logistics transportation big data monitoring and collection method
CN116792187B (en) * 2023-07-27 2025-10-24 潍柴动力股份有限公司 DPF carbon load model correction method, device, electronic equipment and medium
CN117648232B (en) * 2023-12-11 2024-05-24 武汉天宝莱信息技术有限公司 Application program data monitoring method, device and storage medium
CN118051744B (en) * 2024-04-16 2024-06-28 天津君磊科技有限公司 Waterproof signal connector fault diagnosis method based on data processing
CN118842727B (en) * 2024-09-23 2024-12-03 成都同飞科技有限责任公司 An adaptive detection method and system for abnormal data in the Internet of Things
CN119718043B (en) * 2025-02-26 2025-06-24 深圳市极摩客科技有限公司 Power state monitoring method suitable for microcomputer host
CN119915333B (en) * 2025-04-03 2025-06-06 四川中测仪器科技有限公司 Humidity sensor fault detection method based on PCA and Jaccard distance

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6013533A (en) * 1997-09-05 2000-01-11 Lsi Logic Corporation Real time quiescent current test limit methodology
CN101581587B (en) * 2009-06-23 2011-12-07 北京航空航天大学 Method for automatically evaluating uncertainty of measurement of virtual instrument
CN104408907B (en) * 2014-10-31 2016-07-13 重庆大学 There is the freeway traffic event Duration Prediction method of on-line optimization ability
CN106112697B (en) * 2016-07-15 2018-07-17 西安交通大学 A kind of milling parameter automatic alarm threshold setting method based on 3 σ criterion
CN106570073B (en) * 2016-10-14 2019-11-15 北京建筑大学 Surface water quality data rough error screening method and device

Also Published As

Publication number Publication date
CN109186813A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109186813B (en) Temperature sensor self-checking device and method
CN109239265B (en) Monitoring equipment failure detection method and device
CN116758656B (en) Vehicle-mounted terminal, system and method for vehicle supervision
CN111324105B (en) A Fault Detection and Separation Method for Small Sensors Based on Statistical Mahalanobis Distance
CN114895163A (en) Cable inspection positioning device and method based on cable insulation performance
CN116878728B (en) A pressure sensor fault detection, analysis and processing system
CN118967106A (en) A special release motor fault detection method
CN118067204A (en) A safety production data acquisition system based on digital measurement technology
CN116679160A (en) Cable line external damage monitoring system, method and device and storage medium
CN119880298B (en) Oil leakage diagnosis and gas concentration compensation method and system for oil gas monitoring equipment
CN114001887B (en) A bridge damage assessment method based on deflection monitoring
CN119534978B (en) Residual current monitoring method and device
CN119494225B (en) A data processing method and system for digital twin oil and gas pipeline
CN120046035A (en) Intelligent fault diagnosis device and method with BIT capability
CN117213546A (en) Sensor data detection method
CN118362839A (en) Robust early warning method and system for AC series fault arc based on two-dimensional data
RU2648413C1 (en) Method of the modes control based on the neural network diagnostics of faults and technical condition of the electric-drive gas-compressor unit
CN115860123A (en) Fault diagnosis reasoning and checking method for water turbine
CN120317666B (en) Monitoring and evaluating method and device for power grid engineering material supply chain
CN119163805B (en) Pressure scanning valve state monitoring method, device and equipment
KR102857042B1 (en) Method and system for diagnosing faults in induction motors using rms measurement of input current
CN116183877B (en) A power plant oil product full life cycle management system, method, device and storage medium based on oil quality degradation analysis
Li et al. Health Assessment of Underground Power Cables: A Data-Driven Approach Based on One-Sample Maximum Mean Discrepancy
CN120181408B (en) A method and system for intelligent factory safety management
CN119026065B (en) A method for fault diagnosis of short-process electric furnace steelmaking equipment

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