A method for determining abnormal state of a device cluster, an electronic device and a storage medium
By obtaining and comparing the operating parameters of the target device cluster and predicting its status trend in the future, the problem of being unable to predict the future status of the device in the prior art is solved, and the security and reliability of the device are improved.
Patent Information
- Application Number
- CN202410148971.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-02-01
AI Technical Summary
The existing asset equipment status monitoring methods can only monitor abnormal states at historical moments, and cannot predict the status of future moments. They have lag and are prone to safety accidents.
By obtaining the operating parameters of the target device cluster within a certain period of time, determining the running vector to be identified, and comparing it with the running vectors in the historical security period. If the matching degree is low, clustering is performed to determine the operating status trend of the device cluster, and predicting Possible abnormal situations.
It realizes forward-looking status prediction of the equipment cluster, conducts maintenance in advance, reduces the number of abnormalities, and improves safety.
Smart Images

Figure CN117951624B_ABST
Abstract
Description
Background Art
[0002] At present, the status monitoring of asset equipment is mainly achieved by collecting the operating parameters of each asset equipment, and comparing the collected operating parameters of each asset equipment with the preset parameter threshold in real time. If the collected operating parameters of the asset equipment are greater than the corresponding parameter threshold, it means that the asset equipment has an abnormality at a historical moment and needs to be maintained. However, this status monitoring method can only monitor asset equipment that has experienced abnormal conditions at a historical moment, and cannot predict the status of the asset equipment at a future moment. It has a lag and is prone to safety accidents. Summary of the invention
[0003] In view of the above technical problems, the technical solution adopted by the present invention is:
[0004] According to one aspect of the present application, a method for determining an abnormal state of a device cluster is provided, which is applied to a system for determining an abnormal state of a device cluster. The system for determining an abnormal state of a device cluster is connected to a target device cluster, the target device cluster includes n target devices, and each target device corresponds to k operating parameter identifiers;
[0005] The method for determining abnormal status of a device cluster comprises the following steps:
[0006] Step S100: every first target time period, obtain a number of operating parameters corresponding to each operating parameter identifier of each target device in a second target time period; the end time of the second target time period is the current time; the length of the second target time period is greater than the length of the first target time period;
[0007] Step S200, determining an operation vector to be identified of a target device cluster in the second target time period according to a number of operation parameters of each target device in the second target time period;
[0008] Step S300, compare the operation vector to be identified with several preset target operation vectors. If the matching degree between the operation vector to be identified and each preset target operation vector is less than the preset matching degree threshold, obtain several historical cluster operation vectors corresponding to the target device cluster; the target operation vector is obtained according to several operation parameters of the target device cluster in the historical safety period; the length of the historical safety period is equal to the length of the second target time period; and the target device cluster is in a safe operation state in the historical critical period; the start time of the historical critical period is the end time of the historical safety period; the historical cluster operation vector is obtained according to several operation parameters of the target device cluster in the historical target time period; the length of the historical target time period is equal to the length of the second target time period;
[0009] Step S400, obtaining a target vector identifier corresponding to the operation vector to be identified and each historical cluster operation vector; the target vector identifier is a vector identifier corresponding to the target operation vector with the greatest matching degree with the corresponding operation vector to be identified or the historical cluster operation vector;
[0010] Step S500, performing identical clustering on a plurality of target vector identifiers to obtain a plurality of target vector identifier cluster groups; each target vector identifier cluster group includes a plurality of target vector identifiers;
[0011] Step S600: If the number of target vector identification group groups is greater than a preset vector identification group number threshold, it is determined that the target device cluster is in an abnormal operating state within a third target time period; the start time of the third target time period is the end time of the second target time period, and the length of the third target time period is equal to the length of the historical key time period.
[0012] In an exemplary embodiment of the present application, step S200 includes:
[0013] Step S210: Determine each average operating parameter of each target device in the second target time period according to the operating parameters corresponding to each operating parameter identifier of each target device in the second target time period, and obtain a target average operating parameter list set A=(A1, A2, ..., A i ,...,A n );A i =(A i1 ,A i2 ,...,A ij ,...,A ig );A ij =(A ij1 ,A ij2 ,...,A ijh ,...,A ijk ); where, i=1,2,...,n; A i is a list of average operating parameters of the i-th target device in the second target time period; j = 1, 2, ..., g; g is the number of sub-time periods in the second target time period, and the g sub-time periods are connected in sequence; A ij is a list of average operating parameters of the i-th target device in the j-th sub-time period of the second target time period; h = 1, 2, ..., k; A ijh is the hth average operating parameter of the i-th target device in the j-th sub-time period of the second target time period; A ijh The operation parameter corresponding to the h-th operation parameter identifier of the i-th target device in the j-th sub-time period of the second target time period is averaged to obtain the operation parameter;
[0014] Step S220: According to the target average operating parameter list set A, a target device risk value list set B is obtained for each target device in the second target time period = (B1, B2, ..., B i ,...,B n );B i =(B i1 ,B i2 ,...,B ij ,...,B ig );B ij =(∑ k h=1 A ijh ) / k; where B i is a list of device risk values of the i-th target device in the second target time period; B ij is the device risk value of the i-th target device in the j-th sub-time period of the second target time period;
[0015] Step S230: According to the target device risk value list set B, a target cluster risk value list D of the target device cluster in the second target time period is obtained. The target cluster risk value list D = (D1, D2, ..., D j ,...,D g );D j =(∑ n i=1 B ij ) / n; where D j is the cluster risk value of the target device cluster in the jth sub-time period of the second target time period;
[0016] Step S240: According to the target average operating parameter list set A and the target device risk value list set B, a target device fluctuation value list set C of each target device in the second target time period is obtained, which is equal to (C1, C2, ..., C i ,...,C n );C i =(C i1 ,C i2 ,...,C ij ,...,C ig );C ij =(∑ k h=1 (A ijh -B ij ) 2 ) / k; where C i is a list of device fluctuation values of the i-th target device in the second target time period; C ij is the device fluctuation value of the i-th target device in the j-th sub-time period of the second target time period;
[0017] Step S250: According to the target device fluctuation value list set C, a target cluster fluctuation value list E of the target device cluster in the second target time period is obtained, which is equal to (E1, E2, ..., E j ,...,E g );E j =(∑ n i=1 C ij ) / n; where E j is the cluster fluctuation value of the target device cluster in the jth sub-time period of the second target time period;
[0018] Step S260: Determine the target device cluster's operation vector to be identified in the second target time period according to the target cluster risk value list D and the target cluster fluctuation value list E. j ,...,F g );F j =(D j ,E j );F j It is the characteristic information corresponding to the target device cluster in the jth sub-time period of the second target time period.
[0019] In an exemplary embodiment of the present application, the target operation vector is determined by the following steps:
[0020] Step S310: Obtain each average operating parameter of each target device in the historical safety period, and obtain a historical average operating parameter list set G = (G1, G2, ..., G i ,...,G n );G i =(G i1 ,G i2 ,...,G ij ,...,G ig );G ij =(G ij1 ,G ij2 ,...,G ijh ,...,G ijk ), where G i is the average operating parameter list of the i-th target device in the historical safety period; G ij is a list of average operating parameters of the i-th target device in the j-th sub-period of the historical safety period; G ijh is the hth average operating parameter of the i-th target device in the j-th sub-time period of the historical safety period; the historical safety period includes g sub-time periods, and the length of the sub-time period included in the historical safety period is equal to the length of the sub-time period included in the second target time period;
[0021] Step S320: According to the historical average operating parameter list set G, obtain the historical device risk value list set H = (H1, H2, ..., H i ,...,H n );H i =(H i1 ,H i2 ,...,H ij ,...,H ig );H ij =(∑ k h=1 G ijh ) / k; where H i is the device risk value list of the i-th target device in the historical security period; H ij is the device risk value of the i-th target device in the j-th sub-period of the historical safety period;
[0022] Step S330: According to the historical device risk value list set H, obtain the historical cluster risk value list I of the target device cluster in the historical safety period = (I1, I2, ..., I j ,...,I g );I j =(∑ n i=1 H ij ) / n; where I j is the cluster risk value of the target device cluster in the jth sub-period of the historical safety period;
[0023] Step S340: According to the historical average operating parameter list set G and the historical equipment risk value list set H, obtain the historical equipment fluctuation value list set J of each target equipment in the historical safety period = (J1, J2, ..., J i ,...,J n );J i =(J i1 ,J i2 ,...,J ij ,...,J ig );J ij =(∑ k h=1 (G ijh -H ij ) 2 ) / k; where J i is the device fluctuation value list of the i-th target device in the historical safety period; J ij is the device fluctuation value of the i-th target device in the j-th sub-time period of the historical safety period;
[0024] Step S350: According to the historical equipment fluctuation value list set J, obtain the historical cluster fluctuation value list K of the target equipment cluster in the historical safety period = (K1, K2, ..., K j ,...,K g );K j =(∑ n i=1 J ij ) / n; where K j is the cluster fluctuation value of the target device cluster in the jth sub-time period of the historical safety period;
[0025] Step S360: Determine the historical operation vector L of the target device cluster in the historical safety period according to the historical cluster risk value list I and the historical cluster fluctuation value list K. j ,...,L g );L j =(I j ,K j );L j The characteristic information corresponding to the target device cluster in the jth sub-time period of the historical security period;
[0026] Step S370: If the number of the historical safety period is one, the historical operation vector corresponding to the historical safety period is determined as the target operation vector.
[0027] In an exemplary embodiment of the present application, step S370 further includes:
[0028] Step S371: If there are multiple historical safety periods, cluster the historical operation vectors corresponding to each historical safety period to obtain a number of historical operation vector clusters; each historical operation vector cluster includes a number of historical operation vectors;
[0029] Step S372: average a number of historical operation vectors in each historical operation vector group to obtain a historical center vector corresponding to each historical operation vector group;
[0030] Step S373: determine each historical center vector as the target operation vector.
[0031] In an exemplary embodiment of the present application, step S600 further includes:
[0032] Step S610: If the number of target vector identification groups is less than or equal to a preset vector identification group number threshold, the target vector identification corresponding to the running vector to be identified is determined as the first candidate identification;
[0033] Step S620: Determine the matching degree between the target operation vector corresponding to the first candidate identifier, the operation vector to be identified, and each historical cluster operation vector as the first candidate matching degree;
[0034] Step S630: If the variance of all first candidate matching degrees is less than a preset matching degree variance threshold, it is determined that the target device cluster is in a safe operation state within the third target time period.
[0035] In an exemplary embodiment of the present application, step S630 further includes:
[0036] Step S631: if the variance of all first candidate matching degrees is greater than or equal to a preset matching degree variance threshold, then obtain the historical running vector with the largest matching degree in the historical running vector group corresponding to the first candidate identifier, where the running vector to be identified and each historical cluster running vector are respectively matched, and determine the obtained historical running vector as the target historical running vector;
[0037] Step S632: If all target historical operation vectors are not the same historical operation vector, it is determined that the target device cluster is in an abnormal operation state within the third target time period.
[0038] In an exemplary embodiment of the present application, after step S632, the method for determining an abnormal state of a device cluster further includes:
[0039] Step S633: if all target historical operation vectors are the same historical operation vector, then obtain the matching degree between each target historical operation vector and the corresponding operation vector to be identified or the historical cluster operation vector;
[0040] Step S634: sort the matching degree corresponding to each target historical operation vector according to the ascending order of the acquisition time of the operation parameters of the operation vector to be identified and the historical cluster operation vector;
[0041] Step S635: if the sorted matching degrees are in ascending numerical order, it is determined that the target device cluster is in a safe operation state within the third target time period; otherwise, it is determined that the target device cluster is in an abnormal operation state within the third target time period.
[0042] In an exemplary embodiment of the present application, step S300 further includes:
[0043] Step S301: If the matching degree between the operation vector to be identified and any preset target operation vector is greater than or equal to a preset matching degree threshold, it is determined that the target device cluster is in a safe operation state within a third target time period.
[0044] According to one aspect of the present application, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned method for determining an abnormal state of a device cluster.
[0045] According to one aspect of the present application, an electronic device is provided, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0046] The present invention has at least the following beneficial effects:
[0047] The present invention determines the operation vector to be identified of the target device cluster in the second target time period every first target time period based on the operation parameters corresponding to each operation parameter identifier of each target device in the second target time period, and compares the operation vector to be identified with several preset target operation vectors. If the matching degree between the operation vector to be identified and each preset target operation vector is less than a preset matching degree threshold, the target vector identifier corresponding to the operation vector to be identified and each historical cluster operation vector is clustered in the same way to obtain several target vector identifier groups. If the number of target vector identifier groups is greater than the preset vector identifier group number threshold, it is determined that the target device cluster is in an abnormal operation state in the third target time period. By clustering the target device cluster's operating vectors to be identified within the second target time period and several target vector identifiers corresponding to each historical cluster's operating vectors, the operating status trend of the target device cluster is determined. If the operating parameters of the target device cluster within the second target time period fluctuate greatly, it means that the stability of the target device cluster is poor and anomalies may occur within the third target time period in the future. When it is predicted that the target device cluster may experience anomalies in the future, the staff can inspect and maintain the target device cluster in advance to reduce the number of anomalies in the target device cluster and improve the safety of the target device cluster. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 The present invention provides a flowchart of a method for determining an abnormal state of a device cluster according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0051] A method for determining an abnormal state of a device cluster is applied to a device cluster abnormal state determination system. The device cluster abnormal state determination system is connected to a target device cluster, the target device cluster includes n target devices, and each target device corresponds to k operating parameter identifiers.
[0052] The several target devices included in the target device cluster can be production equipment or asset equipment for network communication, etc. Each operating parameter identifier corresponds to a unique type of operating parameter. The operating parameter identifier is used to indicate the type of operating parameter monitored in real time for the target device. The operating parameter can be the operating temperature of the target device, ambient humidity, number of data packets received, number of data packets sent, etc.
[0053] like Figure 1 As shown, the method for determining the abnormal state of a device cluster proposed by the present invention includes the following steps:
[0054] Step S100: every first target time period, obtain a number of operating parameters corresponding to each operating parameter identifier of each target device in a second target time period; the end time of the second target time period is the current time; the length of the second target time period is greater than the length of the first target time period;
[0055] In one embodiment of the present application, the first target time period can be set to ten minutes, and the second target time period can be set to the past three hours, that is, every ten minutes, the average operating parameter corresponding to each operating parameter identifier of each target device in the past three hours is obtained. The first target time period and the second target time period can be determined according to the number of monitored target devices in the target device cluster or the number of types of monitored operating parameters. The more complex the target device cluster is, the shorter the length of the corresponding target time period is set.
[0056] The number of sub-time periods within the second target time period can also be determined according to the frequency of the operating parameters that the user wants to obtain. If the user wants to collect operating parameters with a higher frequency, the number of sub-time periods will be increased. Conversely, the number of sub-time periods will be reduced. The length of each sub-time period within the second target time period is the same, that is, the second target time period is equally divided into several sub-time periods to ensure that the difference in the average operating parameters obtained is not too large.
[0057] Step S200, determining an operation vector to be identified of a target device cluster in the second target time period according to a number of operation parameters of each target device in the second target time period;
[0058] Further, step S200 includes:
[0059] Step S210: Determine each average operating parameter of each target device in the second target time period according to the operating parameters corresponding to each operating parameter identifier of each target device in the second target time period, and obtain a target average operating parameter list set A=(A1, A2, ..., A i ,...,A n );A i =(A i1 ,A i2 ,...,A ij ,...,A ig );A ij =(A ij1 ,A ij2 ,...,A ijh ,...,A ijk ); where, i=1,2,...,n; A i is a list of average operating parameters of the i-th target device in the second target time period; j = 1, 2, ..., g; g is the number of sub-time periods in the second target time period, and the g sub-time periods are connected in sequence; A ij is a list of average operating parameters of the i-th target device in the j-th sub-time period of the second target time period; h = 1, 2, ..., k; A ijh is the hth average operating parameter of the i-th target device in the j-th sub-time period of the second target time period; A ijh The operation parameter corresponding to the h-th operation parameter identifier of the i-th target device in the j-th sub-time period of the second target time period is averaged to obtain the operation parameter;
[0060] The average operating parameter is the average value of several operating parameters corresponding to each operating parameter identifier of the target device within the second target time period, that is, each operating parameter identifier corresponds to an average operating parameter, and the average operating parameter is the average value of several operating parameters of the same type.
[0061] Step S220: According to the target average operating parameter list set A, a target device risk value list set B is obtained for each target device in the second target time period = (B1, B2, ..., B i ,...,B n );B i =(B i1 ,B i2 ,...,B ij,...,B ig );B ij =(∑ k h=1 A ijh ) / k; where B i is a list of device risk values of the i-th target device in the second target time period; B ij is the device risk value of the i-th target device in the j-th sub-time period of the second target time period;
[0062] Step S230: According to the target device risk value list set B, a target cluster risk value list D of the target device cluster in the second target time period is obtained. The target cluster risk value list D = (D1, D2, ..., D j ,...,D g );D j =(∑ n i=1 B ij ) / n; where D j is the cluster risk value of the target device cluster in the jth sub-time period of the second target time period;
[0063] Step S240: According to the target average operating parameter list set A and the target device risk value list set B, a target device fluctuation value list set C of each target device in the second target time period is obtained, which is equal to (C1, C2, ..., C i ,...,C n );C i =(C i1 ,C i2 ,...,C ij ,...,C ig );C ij =(∑ k h=1 (A ijh -B ij ) 2 ) / k; where C i is a list of device fluctuation values of the i-th target device in the second target time period; C ij is the device fluctuation value of the i-th target device in the j-th sub-time period of the second target time period;
[0064] Step S250: According to the target device fluctuation value list set C, a target cluster fluctuation value list E of the target device cluster in the second target time period is obtained, which is equal to (E1, E2, ..., E j ,...,E g );E j =(∑ n i=1 C ij ) / n; where E jis the cluster fluctuation value of the target device cluster in the jth sub-time period of the second target time period;
[0065] The fluctuation value indicates the fluctuation of the operating parameters of the target device cluster in the corresponding time period, and determines whether the target device cluster is in a normal and stable operating state in the corresponding time period. The larger the fluctuation value, the more unstable the operation of the target device cluster in the corresponding time period.
[0066] The risk value indicates the risk level of the operation status of the target device cluster in the corresponding time period. The larger the risk value, the more likely the target device cluster is to have abnormal operation in the corresponding time period.
[0067] First, the target device risk value and the target device fluctuation value of each target device in the corresponding time period are determined, and then the target cluster risk value and the target cluster fluctuation value of the target device cluster in the corresponding time period are determined.
[0068] Step S260: Determine the target device cluster's operation vector to be identified in the second target time period according to the target cluster risk value list D and the target cluster fluctuation value list E. j ,...,F g );F j =(D j ,E j );F j It is the characteristic information corresponding to the target device cluster in the jth sub-time period of the second target time period.
[0069] Each feature information of the operation vector to be identified corresponding to the target device cluster can be represented as a two-dimensional coordinate point, the horizontal coordinate of the two-dimensional coordinate point is the target cluster risk value of the target device cluster in the corresponding time period, and the vertical coordinate of the two-dimensional coordinate point is the target cluster fluctuation value of the target device cluster in the corresponding time period.
[0070] Through the operation vector to be identified, the target cluster risk value and the target cluster fluctuation value of the target device cluster in each sub-time period of the corresponding time period can be obtained.
[0071] Step S300, comparing the operation vector to be identified with a plurality of preset target operation vectors, if the matching degree between the operation vector to be identified and each preset target operation vector is less than a preset matching degree threshold, obtaining a plurality of historical cluster operation vectors corresponding to the target device cluster, and executing step S400;
[0072] Step S301: If the matching degree between the operation vector to be identified and any preset target operation vector is greater than or equal to a preset matching degree threshold, it is determined that the target device cluster is in a safe operation state within a third target time period.
[0073] Among them, the target operation vector is obtained according to several operation parameters of the target device cluster in the historical safety period; the length of the historical safety period is equal to the length of the second target time period; and the target device cluster is in a safe operation state during the historical critical period; the start time of the historical critical period is the end time of the historical safety period; the historical cluster operation vector is obtained according to several operation parameters of the target device cluster in the historical target time period; the length of the historical target time period is equal to the length of the second target time period; the start time of the third target time period is the end time of the second target time period, and the length of the third target time period is equal to the length of the historical critical period.
[0074] In order to ensure that the matching degree between the running vector to be identified and the target running vector is more accurate, the length of the historical safety period is set to be equal to the length of the second target time period, and the number of sub-time periods in the historical safety period is equal to the number of sub-time periods in the second target time period, so as to ensure that the dimension of each target running vector is equal to the dimension of the running vector to be identified, so as to facilitate comparison between the two.
[0075] In addition, there are specific rules for limiting the historical safety period, that is, the target device cluster is in a safe operating state during the historical critical period after the historical safety period, so as to facilitate the subsequent prediction of the operating state of the target device cluster at a future moment. The future moment is the third target time period, and the length of the third target time period is equal to the length of the historical critical period. The historical safety period and the historical critical period are both historical moments.
[0076] Through the operating parameters of the target device cluster at historical moments, several target operating vectors are obtained, and then the operating vector to be identified is compared with several target operating vectors. If the matching degree between the operating vector to be identified and any target operating vector is greater than or equal to a preset matching degree threshold, it means that the operating state of the target device cluster in the second target time period is similar to the operating state of the target device cluster in the historical safety period corresponding to the similar target operating vector. Since the target device cluster is in a safe operating state in the historical critical time period after the historical safety period, it can be determined that the target device cluster is also in a safe operating state in the third target time period after the second target time period, so as to predict the operating state of the target device cluster at future moments.
[0077] If the matching degree between the operation vector to be identified and each target operation vector is less than the preset matching degree threshold, it means that the operation status of the target device cluster in the second target time period is different from the operation status of the target device cluster in the historical safety period corresponding to each target operation vector, and it cannot be determined whether the operation status of the target device cluster in the third target time period is normal. Then, further judgment is required, that is, executing step S400, by obtaining several historical cluster operation vectors corresponding to the target device cluster, to determine the operation status of the target device cluster in the third target time period.
[0078] The target operation vector is determined through steps S310 to S373:
[0079] Step S310: Obtain each average operating parameter of each target device in the historical safety period, and obtain a historical average operating parameter list set G = (G1, G2, ..., G i ,...,G n );G i =(G i1 ,G i2 ,...,G ij ,...,G ig );G ij =(G ij1 ,G ij2 ,...,G ijh ,...,G ijk ), where G i is the average operating parameter list of the i-th target device in the historical safety period; G ij is a list of average operating parameters of the i-th target device in the j-th sub-period of the historical safety period; G ijh is the hth average operating parameter of the i-th target device in the j-th sub-time period of the historical safety period; the historical safety period includes g sub-time periods, and the length of the sub-time period included in the historical safety period is equal to the length of the sub-time period included in the second target time period;
[0080] Step S320: According to the historical average operating parameter list set G, obtain the historical device risk value list set H = (H1, H2, ..., H i ,...,H n );H i =(H i1 ,H i2 ,...,H ij ,...,H ig );H ij =(∑ k h=1 G ijh ) / k; where Hi is the device risk value list of the i-th target device in the historical security period; H ij is the device risk value of the i-th target device in the j-th sub-period of the historical safety period;
[0081] Step S330: According to the historical device risk value list set H, obtain the historical cluster risk value list I of the target device cluster in the historical safety period = (I1, I2, ..., I j ,...,I g );I j =(∑ n i=1 H ij ) / n; where I j is the cluster risk value of the target device cluster in the jth sub-period of the historical safety period;
[0082] Step S340: According to the historical average operating parameter list set G and the historical equipment risk value list set H, obtain the historical equipment fluctuation value list set J of each target equipment in the historical safety period = (J1, J2, ..., J i ,...,J n );J i =(J i1 ,J i2 ,...,J ij ,...,J ig );J ij =(∑ k h=1 (G ijh -H ij ) 2 ) / k; where J i is the device fluctuation value list of the i-th target device in the historical safety period; J ij is the device fluctuation value of the i-th target device in the j-th sub-time period of the historical safety period;
[0083] Step S350: According to the historical equipment fluctuation value list set J, obtain the historical cluster fluctuation value list K of the target equipment cluster in the historical safety period = (K1, K2, ..., K j ,...,K g );K j =(∑ n i=1 J ij ) / n; where K j is the cluster fluctuation value of the target device cluster in the jth sub-time period of the historical safety period;
[0084] Step S360: Determine the historical operation vector L of the target device cluster in the historical safety period according to the historical cluster risk value list I and the historical cluster fluctuation value list K. j ,...,L g );L j =(I j ,K j );L j The characteristic information corresponding to the target device cluster in the jth sub-time period of the historical security period;
[0085] Step S370: If the number of historical safety periods is one, determine the historical operation vector corresponding to the historical safety period as the target operation vector;
[0086] Step S371: If there are multiple historical safety periods, cluster the historical operation vectors corresponding to each historical safety period to obtain a number of historical operation vector clusters; each historical operation vector cluster includes a number of historical operation vectors;
[0087] Step S372: average a number of historical operation vectors in each historical operation vector group to obtain a historical center vector corresponding to each historical operation vector group;
[0088] Step S373: determine each historical center vector as the target operation vector.
[0089] The method for determining the target operation vector is the same as the method for determining the operation vector to be identified, except that the time period of the collected operation parameters is different.
[0090] Step S400, obtaining a target vector identifier corresponding to the operation vector to be identified and each historical cluster operation vector; the target vector identifier is a vector identifier corresponding to the target operation vector with the greatest matching degree with the corresponding operation vector to be identified or the historical cluster operation vector;
[0091] The target vector identifier corresponding to the operation vector to be identified is the vector identifier corresponding to the target operation vector having the greatest matching degree with the operation vector to be identified.
[0092] The target vector identifier corresponding to the historical cluster operation vector is the vector identifier corresponding to the target operation vector with the greatest matching degree with the historical cluster operation vector.
[0093] Step S500, performing identical clustering on a plurality of target vector identifiers to obtain a plurality of target vector identifier cluster groups; each target vector identifier cluster group includes a plurality of target vector identifiers;
[0094] If there are several identical target vector identifiers, several target vector identifier groups are clustered.
[0095] Step S600: If the number of target vector identification group is greater than a preset vector identification group number threshold, it is determined that the target device cluster is in an abnormal operation state within a third target time period;
[0096] Step S610: If the number of target vector identification groups is less than or equal to a preset vector identification group number threshold, the target vector identification corresponding to the running vector to be identified is determined as the first candidate identification;
[0097] Step S620: Determine the matching degree between the target operation vector corresponding to the first candidate identifier, the operation vector to be identified, and each historical cluster operation vector as the first candidate matching degree;
[0098] Step S630: If the variance of all first candidate matching degrees is less than a preset matching degree variance threshold, it is determined that the target device cluster is in a safe operation state within the third target time period;
[0099] Step S631: if the variance of all first candidate matching degrees is greater than or equal to a preset matching degree variance threshold, then obtain the historical running vector with the largest matching degree in the historical running vector group corresponding to the first candidate identifier, where the running vector to be identified and each historical cluster running vector are respectively matched, and determine the obtained historical running vector as the target historical running vector;
[0100] Step S632: if all target historical operation vectors are not the same historical operation vector, it is determined that the target device cluster is in an abnormal operation state within a third target time period;
[0101] Step S633: if all target historical operation vectors are the same historical operation vector, then obtain the matching degree between each target historical operation vector and the corresponding operation vector to be identified or the historical cluster operation vector;
[0102] Step S634: sort the matching degree corresponding to each target historical operation vector according to the ascending order of the acquisition time of the operation parameters of the operation vector to be identified and the historical cluster operation vector;
[0103] Step S635: if the sorted matching degrees are in ascending numerical order, it is determined that the target device cluster is in a safe operation state within the third target time period; otherwise, it is determined that the target device cluster is in an abnormal operation state within the third target time period.
[0104] The present invention determines the operation vector to be identified of the target device cluster in the second target time period every first target time period based on the operation parameters corresponding to each operation parameter identifier of each target device in the second target time period, and compares the operation vector to be identified with several preset target operation vectors. If the matching degree between the operation vector to be identified and each preset target operation vector is less than a preset matching degree threshold, the target vector identifier corresponding to the operation vector to be identified and each historical cluster operation vector is clustered in the same way to obtain several target vector identifier groups. If the number of target vector identifier groups is greater than the preset vector identifier group number threshold, it is determined that the target device cluster is in an abnormal operation state in the third target time period. By clustering the target device cluster's operating vectors to be identified within the second target time period and several target vector identifiers corresponding to each historical cluster's operating vectors, the operating status trend of the target device cluster is determined. If the operating parameters of the target device cluster within the second target time period fluctuate greatly, it means that the stability of the target device cluster is poor and anomalies may occur within the third target time period in the future. When it is predicted that the target device cluster may experience anomalies in the future, the staff can inspect and maintain the target device cluster in advance to reduce the number of anomalies in the target device cluster and improve the safety of the target device cluster.
[0105] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.
[0106] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0107] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0108] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0109] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0110] The electronic device according to this embodiment of the present invention is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0111] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).
[0112] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0113] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0114] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0115] The bus may represent one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0116] The electronic device can also communicate with one or more external devices (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device, and / or communicate with any device (such as routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. This communication can be carried out through an input / output (I / O) interface. In addition, the electronic device can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0117] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0118] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0119] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0120] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0121] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0122] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0123] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0124] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0125] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for determining abnormal status of a device cluster, characterized in that: Applied to a device cluster abnormal state determination system, the device cluster abnormal state determination system is connected to a target device cluster, the target device cluster includes n target devices, and each of the target devices corresponds to k operating parameter identifiers; The method comprises the following steps: Step S100: every first target time period, obtain a number of operating parameters corresponding to each operating parameter identifier of each target device in a second target time period; the end time of the second target time period is the current time; the length of the second target time period is greater than the length of the first target time period; Step S200, determining an operation vector to be identified of the target device cluster in the second target time period according to a plurality of operation parameters of each of the target devices in the second target time period; Step S300, comparing the operation vector to be identified with several preset target operation vectors, if the matching degree between the operation vector to be identified and each preset target operation vector is less than the preset matching degree threshold, then obtaining several historical cluster operation vectors corresponding to the target device cluster; the target operation vector is obtained according to several operation parameters of the target device cluster in the historical safety period; the length of the historical safety period is equal to the length of the second target time period; and the target device cluster is in a safe operation state in the historical critical period; the start time of the historical critical period is the end time of the historical safety period; the historical cluster operation vector is obtained according to several operation parameters of the target device cluster in the historical target time period; the length of the historical target time period is equal to the length of the second target time period; Step S400, obtaining the target vector identifier corresponding to the operation vector to be identified and each of the historical cluster operation vectors; the target vector identifier is the vector identifier corresponding to the target operation vector with the greatest matching degree with the corresponding operation vector to be identified or the historical cluster operation vector; Step S500, performing the same clustering on a plurality of the target vector identifiers to obtain a plurality of target vector identifier cluster groups; each of the target vector identifier cluster groups includes a plurality of the target vector identifiers; Step S600: If the number of the target vector identification group is greater than a preset vector identification group number threshold, it is determined that the target device cluster is in an abnormal operation state within a third target time period; the start time of the third target time period is the end time of the second target time period, and the length of the third target time period is equal to the length of the historical critical time period; Wherein, the step S200 includes: Step S210: Determine each average operating parameter of each target device in the second target time period according to the operating parameters corresponding to each operating parameter identifier of each target device in the second target time period, and obtain a target average operating parameter list set A=(A1, A2, ..., A i ,...,A n );A i =(A i1 ,A i2 ,...,A ij ,...,A ig );A ij =(A ij1 ,A ij2 ,...,A ijh ,...,A ijk ); where, i=1,2,...,n; A i is a list of average operating parameters of the i-th target device in the second target time period; j=1,2,...,g; g is the number of sub-time periods in the second target time period, and the g sub-time periods are connected in sequence; A ij is a list of average operating parameters of the i-th target device in the j-th sub-time period of the second target time period; h=1,2,...,k; A ijh is the hth average operating parameter of the i-th target device in the j-th sub-time period of the second target time period; A ijh The operation parameter corresponding to the h-th operation parameter identifier of the i-th target device in the j-th sub-time period of the second target time period is averaged to obtain the operation parameter; Step S220: According to the target average operating parameter list set A, a target device risk value list set B = (B1, B2, ..., B i ,...,B n );B i =(B i1 ,B i2 ,...,B ij ,...,B ig );B ij =(∑ k h=1 A ijh ) / k; where B i is a list of device risk values of the i-th target device in the second target time period; B ij is the device risk value of the i-th target device in the j-th sub-time period of the second target time period; Step S230: According to the target device risk value list set B, a target cluster risk value list D=(D1, D2, ..., D j ,...,D g );D j =(∑ n i=1 B ij ) / n; where D j is the cluster risk value of the target device cluster in the jth sub-time period of the second target time period; Step S240: According to the target average operating parameter list set A and the target device risk value list set B, a target device fluctuation value list set C = (C1, C2, ..., C i ,...,C n );C i =(C i1 ,C i2 ,...,C ij ,...,C ig );C ij =(∑ k h=1 (A ijh -B ij ) 2 ) / k; where C i is a list of device fluctuation values of the i-th target device in the second target time period; C ij is the device fluctuation value of the i-th target device in the j-th sub-time period of the second target time period; Step S250: According to the target device fluctuation value list set C, a target cluster fluctuation value list E=(E1, E2, ..., E j ,...,E g );E j =(∑ n i=1 C ij ) / n; where E j is the cluster fluctuation value of the target device cluster in the jth sub-time period of the second target time period; Step S260: Determine the target device cluster's operation vector to be identified within the second target time period according to the target cluster risk value list D and the target cluster fluctuation value list E. j ,...,F g );F j =(D j ,E j );F j It is the characteristic information corresponding to the target device cluster in the jth sub-time period of the second target time period.
2. The method according to claim 1, characterized in that: The target operation vector is determined by the following steps: Step S310: Obtain each average operating parameter of each target device in a historical safety period, and obtain a historical average operating parameter list set G=(G1, G2, ..., G i ,...,G n );G i =(G i1 ,G i2 ,...,G ij ,...,G ig );G ij =(G ij1 ,G ij2 ,...,G ijh ,...,G ijk ), where G i is a list of average operating parameters of the i-th target device in the historical safety period; G ij is a list of average operating parameters of the i-th target device in the j-th sub-time period of the historical safety period; G ijh is the hth average operating parameter of the i-th target device in the j-th sub-time period of the historical safety period; the historical safety period includes g sub-time periods, and the length of the sub-time period included in the historical safety period is equal to the length of the sub-time period included in the second target time period; Step S320: According to the historical average operating parameter list set G, obtain the historical device risk value list set H = (H1, H2, ..., H i ,...,H n );H i =(H i1 ,H i2 ,...,H ij ,...,H ig );H ij =(∑ k h=1 G ijh ) / k; where H i is a list of device risk values of the i-th target device in the historical security period; H ij is the device risk value of the i-th target device in the j-th sub-time period of the historical safety period; Step S330: According to the historical device risk value list set H, obtain the historical cluster risk value list I=(I1, I2, ..., I j ,...,I g );I j =(∑ n i=1 H ij ) / n; where I j is the cluster risk value of the target device cluster in the jth sub-time period of the historical safety period; Step S340: According to the historical average operating parameter list set G and the historical equipment risk value list set H, obtain the historical equipment fluctuation value list set J=(J1, J2, ..., J i ,...,J n );J i =(J i1 ,J i2 ,...,J ij ,...,J ig );J ij =(∑ k h=1 (G ijh -H ij ) 2 ) / k; where J i is a list of device fluctuation values of the i-th target device in the historical safety period; J ij is the device fluctuation value of the i-th target device in the j-th sub-time period of the historical security period; Step S350: According to the historical device fluctuation value list set J, obtain the historical cluster fluctuation value list K=(K1, K2, ..., K j ,...,K g );K j =(∑ n i=1 J ij ) / n; where K j is the cluster fluctuation value of the target device cluster in the jth sub-time period of the historical safety period; Step S360: Determine the historical operation vector L=(L1, L2, ..., L j ,...,L g );L j =(I j ,K j );L j The characteristic information corresponding to the target device cluster in the jth sub-time period of the historical security period; Step S370: If the number of the historical safety period is one, determine the historical operation vector corresponding to the historical safety period as the target operation vector.
3. The method according to claim 2, characterized in that The step S370 further includes: Step S371: If there are multiple historical safety periods, cluster the historical operation vectors corresponding to each historical safety period to obtain a plurality of historical operation vector clusters; each of the historical operation vector clusters includes a plurality of historical operation vectors; Step S372: average a plurality of historical operation vectors in each of the historical operation vector clusters to obtain a historical center vector corresponding to each of the historical operation vector clusters; Step S373: determine each of the historical center vectors as a target operation vector.
4. The method according to claim 3, characterized in that The step S600 further includes: Step S610: If the number of the target vector identification group is less than or equal to a preset vector identification group number threshold, the target vector identification corresponding to the to-be-identified running vector is determined as a first candidate identification; Step S620: Determine the matching degree between the target operation vector corresponding to the first candidate identifier, the operation vector to be identified, and each of the historical cluster operation vectors as a first candidate matching degree; Step S630: If the variance of all the first candidate matching degrees is less than a preset matching degree variance threshold, it is determined that the target device cluster is in a safe operation state within a third target time period.
5. The method according to claim 4, characterized in that The step S630 further includes: Step S631: if the variance of all the first candidate matching degrees is greater than or equal to a preset matching degree variance threshold, then obtaining the historical running vector with the largest matching degree in the historical running vector group corresponding to the first candidate identifier and each of the historical cluster running vectors, and determining the obtained historical running vector as the target historical running vector; Step S632: If all the target historical operation vectors are not the same historical operation vector, it is determined that the target device cluster is in an abnormal operation state within a third target time period.
6. The method according to claim 5, characterized in that After step S632, the method further includes: Step S633: if all the target historical operation vectors are the same historical operation vector, obtaining a matching degree between each target historical operation vector and the corresponding operation vector to be identified or the historical cluster operation vector; Step S634: sorting the matching degree corresponding to each of the target historical operation vectors according to the ascending order of the acquisition time of the operation parameters of the to-be-identified operation vector and the historical cluster operation vector; Step S635: if the sorted matching degrees are in ascending numerical order, it is determined that the target device cluster is in a safe operation state within the third target time period; otherwise, it is determined that the target device cluster is in an abnormal operation state within the third target time period.
7. The method according to claim 1, characterized in that The step S300 further includes: Step S301: If the matching degree between the to-be-identified operation vector and any preset target operation vector is greater than or equal to a preset matching degree threshold, it is determined that the target device cluster is in a safe operation state within a third target time period.
8. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the method according to any one of claims 1 to 7.
9. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 8.
Citation Information
Patent Citations
Equipment state analysis method and device, electronic equipment and readable storage medium
CN116070176A
Anomaly detection using forecasting computational workloads
US20230205664A1
