Multi-sensor fault prediction method, device, electronic device and storage medium
By calculating the abnormality and correlation of sensor data, adaptive smoothing constants are used for fault prediction, which solves the problem of sensor data uncertainty and correlation not being considered in the existing technology, and improves the accuracy and reliability of ship engine fault prediction. sex.
Patent Information
- Application Number
- CN202410307247.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-18
AI Technical Summary
When the existing technology uses the exponential smoothing method to predict the trend of the ship turbine sensor data at the next moment, it fails to accurately consider the uncertainty of the sensor data and the influence relationship between different sensors, resulting in inaccurate fault prediction and affecting the early warning. Timeliness and accuracy.
By acquiring the data of each sensor and its neighborhood data, calculating the degree of anomaly and correlation, adaptive smoothing constants are used for fault prediction, and the prediction results are corrected based on the correlation between sensors to avoid data distortion caused by single sensor data analysis.
It improves the accuracy and reliability of fault prediction and ensures timely early warning of ship engine faults.
Smart Images

Figure CN118152960B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a multi-sensor fault prediction method, device, electronic equipment and storage medium. Background Art
[0002] Ship engine refers to the propulsion system installed on the ship, which is used to drive and operate the ship. It is the core power device of the ship, responsible for providing sufficient power and thrust to enable the ship to travel, turn and perform other operations, so the operating status of the ship engine needs to be monitored.
[0003] A variety of sensors are installed on the engine to monitor the operating status of the engine and warn of abnormal conditions of the engine. Therefore, the exponential smoothing method is used to predict the trend of the sensor data at the next moment, and a warning signal is issued for the abnormal condition of the ship's engine based on the trend prediction result. However, when the exponential smoothing method is used to predict the trend of the sensor data at the next moment, only the smoothing constant determined by the distance in time is considered to make a weighted correction to the predicted data. The data fluctuations of the actual sensors are uncertain, and there is a certain influence relationship between different sensors. As a result, the smoothing constant determined by the distance in time combined with the exponential smoothing method is inaccurate to predict the trend of the sensor data at the next moment, and thus the timeliness and accuracy of the ship warning cannot be guaranteed. Summary of the invention
[0004] In view of this, it is necessary to provide a multi-sensor fault prediction method, device, electronic device and readable storage medium to solve the problem of inaccurate sensor fault prediction.
[0005] In order to solve the above problems, the present invention provides a multi-sensor fault prediction method, comprising:
[0006] Acquire each data of each sensor and first neighborhood data of each data based on a preset first neighborhood range;
[0007] Acquire the abnormality degree of each data and abnormal data of each sensor based on the first neighborhood data;
[0008] Acquire second neighborhood data of the abnormal data based on a preset second neighborhood range and the abnormality degree;
[0009] Based on the abnormal data and the second neighborhood data, obtaining the correlation between each sensor and other sensors;
[0010] Based on the correlation degree and the abnormality degree of the last data of each sensor, a smoothing constant is obtained, and the fault of each sensor is predicted based on the smoothing constant.
[0011] In a possible implementation, the acquiring, based on the first neighborhood data, the abnormality degree of each data and the abnormal data of each sensor includes:
[0012] Obtaining the abnormality degree of each data based on the first neighborhood data and the first formula;
[0013] Acquire abnormal data of each sensor based on the abnormality degree;
[0014] Wherein, the first formula includes:
[0015]
[0016] in, Indicates the current sensor i The degree of abnormality of the data, Represents the current sensor i The neighboring data of the data i The number of data with the same amplitude; Represents the number of data with a convexity greater than a preset convexity threshold among all the data of the current sensor; Represents the current sensor i Data and i+ The slope between 1 data, Represents the current sensor i Data and i- 1 data; for the current data i Data and i The neighborhood data of each data point is used to obtain the mean of the slopes between the two data points at all adjacent moments, which is recorded as ; Represents the current sensor i The prominence of the data; norm () represents the normalization function.
[0017] In a possible implementation, the acquiring the abnormal data of each sensor based on the abnormality degree includes:
[0018] The data whose abnormality level is greater than a preset abnormality level threshold is recorded as abnormal data.
[0019] In a possible implementation, the acquiring the second neighborhood data of the abnormal data based on the preset second neighborhood range and the abnormality degree includes:
[0020] Acquire third neighborhood data of the abnormal data based on the second neighborhood range;
[0021] Establishing a second formula based on the third neighborhood data and the degree of abnormality;
[0022] Acquire second neighborhood data of the abnormal data based on the second formula;
[0023] Wherein, the second formula includes:
[0024]
[0025] In the formula, in the formula, Represents the current sensor j The discriminant formula for the number of one-sided neighborhood data of an abnormal data; n Represents the current sensor j The number of one-side neighboring data of abnormal data; Represents the current sensor j The first abnormal data a The degree of abnormality of the one-sided neighborhood data; Represents the current sensor j The number of abnormal data contained in the one-side neighborhood data of an abnormal data; Represents the current sensor j The mean of the instantaneous slopes of the one-sided neighborhood data of the abnormal data; Represents the current sensor j The front of abnormal data n -1 The mean of the instantaneous slopes of the one-sided neighborhood data; exp () represents an exponential function with a natural constant as base.
[0026] In a possible implementation, the acquiring the second neighborhood data of the abnormal data based on the first formula includes:
[0027] Will The corresponding maximum value n As the current sensor j The optimal number of neighboring data for each abnormal data;
[0028] Based on the optimal number of neighborhood data, the first j The abnormal data on both sides n data as the current sensor’s j The second neighborhood data of the abnormal data.
[0029] In a possible implementation, acquiring the correlation between each sensor and other sensors based on the abnormal data and the second neighborhood data includes:
[0030] Acquire the first abnormal data of each sensor to obtain an abnormal data set, and so on to obtain several abnormal data sets until at least one of the sensors has no abnormal data;
[0031] Establishing a third formula based on the plurality of abnormal data sets;
[0032] Acquire the correlation degree between each sensor and other sensors based on the third formula;
[0033] Wherein, the third formula includes:
[0034]
[0035] in, Represents the current sensor and other b The correlation of the sensors; N Represents the number of abnormal data in the current sensor; Representing other The number of abnormal data in the sensor; Represents the current sensor and other b The number of abnormal data combinations of sensors; Represents the current sensor and other b The sensor x The mean square error between the neighboring data of the abnormal data in the abnormal data combination; Represents the current sensor and other b The sensor x The difference in abnormality degree between abnormal data in an abnormal data combination; Represents the current sensor and other b The mean of the difference in abnormality degree between abnormal data in all abnormal data combinations of sensors; Represents the current sensor and other b The sensor x The time difference between the abnormal data in the abnormal data combination; Indicates the current sensor and other b The mean of the time difference between abnormal data in all abnormal data combinations of sensors; To avoid hyperparameters with a denominator of 0; exp () represents an exponential function with a natural constant as base.
[0036] In a possible implementation, obtaining a smoothing constant based on the correlation degree and the abnormality degree of the last data of each sensor includes:
[0037] Establishing a fourth formula based on the correlation degree and the abnormality degree of the last data of each sensor;
[0038] Obtaining the smoothing constant based on the fourth formula;
[0039] Wherein, the fourth formula includes:
[0040]
[0041] in, represents the smoothing constant; Representing other v The abnormality of the last data of each sensor; Represents the current sensor and other v The correlation of the sensors; B Represents the number of sensors; G Indicates the abnormality of the last data of the current sensor.
[0042] The present invention also provides a multi-sensor fault prediction device, comprising:
[0043] A data acquisition module, used for acquiring each data of each sensor and first neighborhood data of each data based on a preset first neighborhood range;
[0044] A detection module, configured to obtain the abnormality degree of each data and abnormal data of each sensor based on the first neighborhood data;
[0045] A data screening module, used for acquiring second neighborhood data of the abnormal data based on a preset second neighborhood range and the abnormality degree;
[0046] A calculation module, used for obtaining the correlation between each sensor and other sensors based on the abnormal data and the second neighborhood data;
[0047] The prediction module is used to obtain a smoothing constant based on the correlation degree and the abnormality degree of the last data of each sensor, and predict the fault of each sensor based on the smoothing constant.
[0048] The present invention also provides an electronic device, comprising:
[0049] Memory, used to store programs;
[0050] A processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the multi-sensor fault prediction method described in any one of the above method items.
[0051] The present invention also provides a storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the steps in the multi-sensor fault prediction method described in any one of the above-mentioned method items.
[0052] The beneficial effects of the present invention are as follows: the present invention provides a multi-sensor fault prediction method, firstly, the abnormality degree of each data of each sensor is obtained according to the protrusion degree of each data of each sensor compared with its neighborhood data, and then the abnormal data of each sensor is obtained, so as to facilitate the subsequent acquisition of the connectivity between the sensors by analyzing the difference of the corresponding abnormal data between the sensors, and then the neighborhood data of each abnormal data of each sensor data is obtained, and the correlation degree between the sensors is obtained by combining the difference of the corresponding abnormal data between the sensors and the difference between the neighborhood data of the abnormal data, so that the obtained correlation degree between the sensors is more accurate, and the trend of the data at the next moment is predicted by an adaptive smoothing constant according to the correlation degree between the sensors and the abnormality degree of the data in the sensors, and the abnormality degree of other sensors is corrected by the correlation degree between other sensors and the current sensor, and then combined with the abnormality degree of the current sensor, the adaptive smoothing constant is used to predict the abnormality of the data of the current sensor at the next moment, so that the data of the current sensor at the next moment is more reliable in the prediction process, avoiding the data distortion caused by the separate analysis of the single sensor data, and improving the accuracy of fault prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A method flow chart of an embodiment of a multi-sensor fault prediction method provided by the present invention;
[0054] Figure 2 for Figure 1 A method flow chart of an embodiment of step S102;
[0055] Figure 3 for Figure 1 A method flow chart of an embodiment of step S103;
[0056] Figure 4 for Figure 3 A method flow chart of an embodiment of step S303;
[0057] Figure 5 for Figure 1 A method flow chart of an embodiment of step S104;
[0058] Figure 6 for Figure 1 A method flow chart of an embodiment of step S105;
[0059] Figure 7A schematic diagram of the structure of an embodiment of a multi-sensor fault prediction device provided by the present invention;
[0060] Figure 8 A schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0062] In the description of the embodiments of the present invention, unless otherwise specified, "plurality" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may represent three situations: A exists alone, A and B exist at the same time, and B exists alone.
[0063] The descriptions of "first", "second", etc. involved in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0064] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0065] A specific embodiment of the present invention, as Figure 1 As shown, a multi-sensor fault prediction method is disclosed, comprising:
[0066] Step S101: acquiring each data of each sensor and first neighborhood data of each data based on a preset first neighborhood range;
[0067] Step S102: acquiring the abnormality degree of each data and the abnormal data of each sensor based on the first neighborhood data;
[0068] Step S103: acquiring second neighborhood data of the abnormal data based on a preset second neighborhood range and abnormality degree;
[0069] Step S104: Obtain the correlation between each sensor and other sensors according to the abnormal data and the second neighborhood data;
[0070] Step S105: Based on the correlation degree and the abnormality degree of the last data of each sensor, a smoothing constant is obtained, and the fault of each sensor is predicted based on the smoothing constant.
[0071] It should be noted that the multi-sensor fault prediction method provided in this embodiment is applied to ship engines.
[0072] During implementation, in step S101, multiple sensors are installed on the ship's engine to collect data to obtain various data of each sensor. The sensors include temperature, pressure, vibration, and rotational speed sensors. It should be noted that the data collected by the pressure sensor is pressure data, the data collected by the temperature sensor is temperature data, the data collected by the vibration sensor is vibration data, and the data collected by the rotational speed sensor is speed data. The frequency of each sensor collecting data is 1s / time, and the data collected by each sensor can be time series data.
[0073] It should be noted that in step S102, since any failure of the ship's engine will cause multiple sensor data to become abnormal, the degree of abnormality of each collected sensor is first judged. It is known that when the degree of protrusion of any data of any sensor is larger than that of the data near the data, the data is more abnormal, and the larger the ratio of the number of data with the same protrusion degree to the number of data with the same amplitude in the neighborhood data of the data, the higher the frequency of occurrence of data with the same protrusion feature, and the smaller the possibility of abnormality of the data. Therefore, in an embodiment of the present invention, the degree of abnormality of each data of each sensor is first obtained, and then the abnormal data of each sensor is obtained according to the degree of abnormality of each data of each sensor.
[0074] In step S103, according to prior knowledge, any ship engine failure must be caused by multiple reasons, that is, when the engine fails, multiple sensors will respond together, and multiple sensors will generate abnormal data at the same time. Therefore, the correlation analysis between sensors can be performed by analyzing the difference in the corresponding abnormal data between sensors. However, due to the response time that may exist between each sensor, directly comparing the abnormal data with the same time will produce a large error. Therefore, when obtaining the correlation between two sensors, it is necessary to obtain the neighborhood data of each abnormal data in the two sensors for comparison. However, when the selection of the neighborhood data of each abnormal data is inaccurate, the correlation relationship between the data of the two sensors is inaccurate. According to prior knowledge, when the fluctuation of the surrounding data of any abnormal data of the current sensor is small and the overall surrounding data is relatively stable, it is more appropriate to use the surrounding data of the abnormal data as the neighborhood data of the abnormal data.
[0075] In step S104, it should be noted that if there is a correlation between the two sensors, then when the data of any one sensor produces an abnormal fluctuation, the other corresponding sensor will also produce abnormal fluctuations with the same trend but at different degrees. Therefore, in an embodiment of the present invention, the abnormal data of the current sensor is matched with the abnormal data of each sensor except the current sensor.
[0076] Different from the prior art, the multi-sensor fault prediction method provided by the present invention first obtains the abnormality degree of each data of each sensor according to the protrusion degree of each data of each sensor compared with its neighborhood data, and then obtains the abnormal data of each sensor, so as to facilitate the subsequent acquisition of the connectivity between the sensors by analyzing the differences in the corresponding abnormal data between the sensors, and then obtains the neighborhood data of each abnormal data of each sensor data, and obtains the correlation degree between the sensors in combination with the differences in the corresponding abnormal data between the sensors and the differences between the neighborhood data of the abnormal data, so that the obtained correlation degree between the sensors is more accurate, and according to the correlation degree between the sensors and the abnormality degree of the data in the sensors, the adaptive smoothing constant predicts the trend of the data at the next moment, and the abnormality degree of other sensors is corrected by the correlation degree between other sensors and the current sensor, and then combined with the abnormality degree of the current sensor, the adaptive smoothing constant predicts the abnormality of the data of the current sensor at the next moment, so that the data of the current sensor at the next moment is more reliable in the prediction process, avoiding the data distortion caused by the separate analysis of the single sensor data, and improving the accuracy of fault prediction.
[0077] like Figure 2 As shown, in a possible implementation, step S102 includes:
[0078] Step S201: Obtaining the abnormality degree of each data based on the first neighborhood data and the first formula;
[0079] Step S202: Acquire abnormal data of each sensor based on the degree of abnormality;
[0080] Among them, the first formula includes:
[0081] (1)
[0082] In formula (1), Indicates the current sensor i The degree of abnormality of the data, Represents the current sensor i The neighboring data of the data i The number of data with the same amplitude; Represents the number of data with a convexity greater than a preset convexity threshold among all the data of the current sensor; Represents the current sensor i The data and i+ The slope between 1 data, Represents the current sensor i The data and i- 1 data; for the current data i Data and i The neighborhood data of each data point is used to obtain the mean of the slopes between the two data points at all adjacent moments, which is recorded as ; Represents the current sensor i The prominence of the data; norm () represents the normalization function.
[0083] In this embodiment, When normalizing, a linear normalization method can be used.
[0084] In a possible implementation, step S202 includes:
[0085] Data with an abnormality greater than a preset abnormality threshold is recorded as abnormal data.
[0086] like Figure 3 As shown, in a possible implementation, step S103 includes:
[0087] Step S301: Acquire third neighborhood data of abnormal data based on the second neighborhood range;
[0088] Step S302: establishing a second formula based on the third neighborhood data and the degree of abnormality;
[0089] Step S303: obtaining second neighborhood data of the abnormal data based on the second formula;
[0090] The second formula includes:
[0091] (2)
[0092] In the formula, in the formula, Represents the current sensor j The discriminant formula for the number of one-sided neighborhood data of an abnormal data; n Represents the current sensor j The number of one-side neighboring data of abnormal data; Represents the current sensor j The abnormal data a The degree of abnormality of the one-sided neighborhood data; Represents the current sensor jThe number of abnormal data contained in the one-side neighborhood data of an abnormal data; Represents the current sensor j The mean of the instantaneous slopes of the one-sided neighborhood data of the abnormal data; Represents the current sensor j The front of abnormal data n -1 The mean of the instantaneous slopes of the one-sided neighborhood data; exp () represents an exponential function with a natural constant as base.
[0093] It should be noted that, in this embodiment, the neighborhood data on the left or right side of the abnormal data is first obtained, and then the neighborhood data on the other side is obtained based on the same discriminant formula, and finally the neighborhood data on both sides are merged to obtain the second neighborhood data.
[0094] Specifically, in step S301, the current sensor is preset j The number of neighboring data on the left and right sides of an abnormal data n The value range is [ c , d ], in the embodiment of the present invention, it is preset c =2, d =10; In other embodiments, the implementer may set c and d It should be noted that if the current sensor j The number of data on the left or right side of the abnormal data is greater than c and less than d When the current sensor j The number of data on the left or right side of the abnormal data is taken as d Perform analysis, if the current sensor j The number of data on the left or right side of the abnormal data is less than c , the current sensor j The left or right data of the abnormal data is taken as the first j The neighborhood data of the abnormal data can be used.
[0095] like Figure 4 As shown, in a possible implementation, step S303 includes:
[0096] Step S401: The corresponding maximum value n As the current sensor j The optimal number of neighboring data for each abnormal data;
[0097] Step S402: Based on the number of optimal neighborhood data, the first jThe abnormal data on both sides n data as the current sensor’s j The second neighborhood data of the abnormal data.
[0098] like Figure 5 As shown, in a possible implementation, step S104 includes:
[0099] Step S501: Acquire the first abnormal data of each sensor to obtain an abnormal data set, and so on to obtain several abnormal data sets until at least one sensor has no abnormal data;
[0100] Step S502: establishing a third formula based on a number of abnormal data sets;
[0101] Step S503: Obtaining the correlation between each sensor and other sensors based on the third formula;
[0102] Among them, the third formula includes:
[0103] (3)
[0104] In formula (3), Represents the current sensor and other b The correlation of the sensors; N Represents the number of abnormal data in the current sensor; Representing other b The number of abnormal data in the sensor; Represents the current sensor and other b The number of abnormal data combinations of sensors; Represents the current sensor and other b The sensor x The mean square error between the neighboring data of the abnormal data in the abnormal data combination; Represents the current sensor and other b The sensor x The difference in abnormality degree between abnormal data in an abnormal data combination; Represents the current sensor and other b The mean of the difference in abnormality degree between abnormal data in all abnormal data combinations of sensors; Represents the current sensor and other b The sensor x The time difference between the abnormal data in the abnormal data combination; Indicates the current sensor and other b The mean of the time difference between abnormal data in all abnormal data combinations of sensors; To avoid hyperparameters with a denominator of 0; exp () represents an exponential function with a natural constant as base.
[0105] It should be noted that this embodiment adopts The model shows an inverse proportional relationship. x As the input of the model, the implementer can set the inverse proportional function according to the actual situation; The smaller the value of x The more similar the overall changes between the neighborhood data of each abnormal data combination are; Representative x The time difference and the abnormal degree difference between the abnormal data in the abnormal data combination of the two sensors with correlation should be the same. The smaller the value of x The matching degree of abnormal data in the abnormal data combination is high, and the current sensor and other b The correlation between the current sensor and other sensors is relatively large; b The closer the number of abnormal data in the two sensors is, the higher the credibility of the calculated correlation between the two sensors is. The larger the value, the closer the current sensor is to the other b The higher the correlation of the sensors.
[0106] Similarly, obtain the correlation between the current sensor and each other sensor.
[0107] like Figure 6 As shown, in a possible implementation, step S105 includes:
[0108] Step S601: establishing a fourth formula based on the correlation degree and the abnormality degree of the last data of each sensor;
[0109] Step S602: Obtain a smoothing constant based on the fourth formula;
[0110] Among them, the fourth formula includes:
[0111] (4)
[0112] In formula (4), represents the smoothing constant; Representing other v The abnormality of the last data of each sensor; Represents the current sensor and other v The correlation of the sensors; B Represents the number of sensors; GIndicates the abnormality of the last data of the current sensor.
[0113] It should be noted that a variety of sensors are installed on the turbine to monitor the operating status of the turbine and issue an alarm for abnormal conditions of the turbine. When the data of each sensor at the next moment is predicted by the exponential smoothing method, only the smoothing constant determined by the distance in time is considered to make a weighted correction to the predicted data. The data fluctuations of the actual sensors are uncertain, and there is a certain influence relationship between different sensors, which leads to inaccurate results of smoothing the data to obtain trend items using the exponential smoothing method. Therefore, the value of the smoothing constant is crucial. When the smoothing constant is closer to 1, the influence of the actual value in the distant period on the smoothed value of the current period decreases more rapidly; when the smoothing constant is closer to 0, the influence of the actual value in the distant period on the smoothed value of the current period decreases more slowly. Therefore, when the time series is relatively stable, a larger value can be taken. c ; When the time series fluctuates greatly, a smaller c , so as not to ignore the influence of the actual value in the long term. If the abnormality of the last data of the current sensor is greater and the abnormality of the last data of each sensor except the current sensor is greater, it means that the data fluctuates more and the value of the smoothing constant is smaller.
[0114] The greater the abnormality of the last data of the current sensor and the greater the abnormality of the last data of each other sensor, the greater the fluctuation of the data, the smaller the value of the smoothing constant, and the greater the abnormality of the last data of the current sensor and the other sensors. v The greater the correlation of the first sensor, the greater the v The more credible the abnormality of the last data of a sensor is.
[0115] According to the smoothing constant, the exponential smoothing method is used to predict the abnormality of the data of the current sensor at the next moment; according to the prediction result, it is determined whether the data at the next moment is abnormal. If an abnormality occurs, there is a fault in the ship's engine, and corresponding maintenance is required in time.
[0116] like Figure 7 As shown, the present invention also provides a multi-sensor fault prediction device 70, comprising:
[0117] The data acquisition module 710 is used to acquire each data of each sensor and first neighborhood data of each data based on a preset first neighborhood range;
[0118] A detection module 720, configured to obtain the abnormality degree of each data and abnormal data of each sensor based on the first neighborhood data;
[0119] A data screening module 730, for acquiring second neighborhood data of abnormal data based on a preset second neighborhood range and abnormality degree;
[0120] A calculation module 740 is used to obtain the correlation between each sensor and other sensors according to the abnormal data and the second neighborhood data;
[0121] The prediction module 750 is used to obtain a smoothing constant based on the correlation degree and the abnormality degree of the last data of each sensor, and predict the fault of each sensor based on the smoothing constant.
[0122] like Figure 8 As shown, the present invention also provides an electronic device 80. The electronic device 80 includes a processor 810, a memory 820 and a display 830. Figure 8 Only some of the components of the electronic device 80 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0123] In some embodiments, the processor 810 may be a central processing unit (CPU), a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 820, such as the multi-sensor fault prediction method of the present invention.
[0124] In some embodiments, the processor 810 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 810 may be local or remote. In some embodiments, the processor 810 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.
[0125] In some embodiments, the memory 820 may be an internal storage unit of the electronic device 80, such as a hard disk or memory of the electronic device 80. In other embodiments, the memory 820 may also be an external storage device of the electronic device 80, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 80.
[0126] Furthermore, the memory 820 may include both an internal storage unit of the electronic device 80 and an external storage device. The memory 820 is used to store application software installed in the electronic device 80 and various data.
[0127] In some embodiments, the display 830 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 830 is used to display information on the electronic device 80 and to display a visual user interface. The components 610-630 of the electronic device 80 communicate with each other via a system bus.
[0128] In one embodiment, when the processor 810 executes the multi-sensor fault prediction program in the memory 820, the following steps may be implemented:
[0129] Acquire each data of each sensor and first neighborhood data of each data based on a preset first neighborhood range;
[0130] Acquire the abnormality degree of each data and the abnormal data of each sensor based on the first neighborhood data;
[0131] Acquire second neighborhood data of the abnormal data based on a preset second neighborhood range and anomaly degree;
[0132] According to the abnormal data and the second neighborhood data, the correlation degree between each sensor and other sensors is obtained;
[0133] Based on the correlation degree and the abnormality degree of the last data of each sensor, a smoothing constant is obtained, and the fault of each sensor is predicted based on the smoothing constant.
[0134] It should be understood that: when the processor 810 executes the multi-sensor fault prediction program in the memory 820, in addition to the above functions, other functions may also be implemented. For details, please refer to the description of the corresponding method embodiment above.
[0135] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 80 mentioned, and the electronic device 80 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 80 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0136] Accordingly, an embodiment of the present application also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps or functions in the multi-sensor fault prediction method provided in the above-mentioned method embodiments can be implemented.
[0137] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0138] The multi-sensor fault prediction method, device, electronic device and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A multi-sensor fault prediction method, characterized in that: include: Acquire each data of each sensor and first neighborhood data of the each data based on the first neighborhood range; Acquire the abnormality degree of each data and abnormal data of each sensor based on the first neighborhood data; Acquire second neighborhood data of the abnormal data based on a second neighborhood range and the abnormality degree; Based on the abnormal data and the second neighborhood data, obtaining the correlation between each sensor and other sensors; Based on the correlation degree and the abnormality degree of the last data of each sensor, a smoothing constant is obtained, and a fault of each sensor is predicted based on the smoothing constant; The step of acquiring the second neighborhood data of the abnormal data based on the second neighborhood range and the abnormality degree includes: Acquire third neighborhood data of the abnormal data based on the second neighborhood range; Establishing a second formula based on the third neighborhood data and the degree of abnormality; Acquire second neighborhood data of the abnormal data based on the second formula; Wherein, the second formula includes: In the formula, Represents the current sensor j The discriminant formula for the number of one-sided neighborhood data of an abnormal data; n Represents the current sensor j The number of one-side neighboring data of abnormal data; Represents the current sensor j The abnormal data a The degree of abnormality of the one-sided neighborhood data; Represents the current sensor j The number of abnormal data contained in the one-side neighborhood data of an abnormal data; Represents the current sensor j The mean of the instantaneous slopes of the one-sided neighborhood data of the abnormal data; Represents the current sensor j The front of abnormal data n -1 The mean of the instantaneous slopes of the one-sided neighborhood data; exp () represents an exponential function with a natural constant as base; The step of acquiring second neighborhood data of the abnormal data based on the second formula includes: Will The corresponding maximum value n As the current sensor j The optimal number of neighboring data for each abnormal data; Based on the optimal number of neighborhood data, the first j The abnormal data on both sides n data as the current sensor’s j The second neighborhood data of the abnormal data.
2. The multi-sensor fault prediction method according to claim 1, characterized in that: The acquiring, based on the first neighborhood data, the abnormality degree of each data and the abnormal data of each sensor includes: Obtaining the abnormality degree of each data based on the first neighborhood data and the first formula; Acquire abnormal data of each sensor based on the abnormality degree; Wherein, the first formula includes: in, Indicates the current sensor i The degree of abnormality of the data, Represents the current sensor i The neighboring data of the data i The number of data with the same amplitude; Represents the number of data with a convexity greater than a preset convexity threshold among all the data of the current sensor; Represents the current sensor i The data and i+ The slope between 1 data, Represents the current sensor i The data and i- 1 data; for the current data i Data and i The neighborhood data of each data point is used to obtain the mean of the slopes between the two data points at all adjacent moments, which is recorded as ; Represents the current sensor i The prominence of the data; norm () represents the normalization function.
3. The multi-sensor fault prediction method according to claim 2, characterized in that: The acquiring the abnormal data of each sensor based on the abnormality degree includes: The data whose abnormality level is greater than a preset abnormality level threshold is recorded as abnormal data.
4. The multi-sensor fault prediction method according to claim 1, characterized in that: The obtaining, based on the abnormal data and the second neighborhood data, the degree of association between each sensor and other sensors includes: Acquire the first abnormal data of each sensor to obtain an abnormal data set, and so on to obtain several abnormal data sets until at least one of the sensors has no abnormal data; Establishing a third formula based on the plurality of abnormal data sets; Acquire the correlation degree between each sensor and other sensors based on the third formula; Wherein, the third formula includes: in, Represents the current sensor and other b The correlation of the sensors; N Represents the number of abnormal data in the current sensor; Representing other b The number of abnormal data in the sensor; Represents the current sensor and other b The number of abnormal data combinations of sensors; Represents the current sensor and other b The sensor x The mean square error between the neighboring data of the abnormal data in the abnormal data combination; Represents the current sensor and other b The sensor x The difference in abnormality degree between abnormal data in an abnormal data combination; Represents the current sensor and other b The mean of the difference in abnormality degree between abnormal data in all abnormal data combinations of sensors; Represents the current sensor and other b The sensor x The time difference between the abnormal data in the abnormal data combination; Indicates the current sensor and other b The mean of the time difference between abnormal data in all abnormal data combinations of sensors; To avoid hyperparameters with a denominator of 0; exp () represents an exponential function with a natural constant as base.
5. The multi-sensor fault prediction method according to claim 1, characterized in that: The step of obtaining a smoothing constant based on the correlation degree and the abnormality degree of the last data of each sensor includes: Establishing a fourth formula based on the correlation degree and the abnormality degree of the last data of each sensor; Obtaining the smoothing constant based on the fourth formula; Wherein, the fourth formula includes: in, represents the smoothing constant; Representing other v The abnormality of the last data of each sensor; Represents the current sensor and other v The correlation of the sensors; B Represents the number of sensors; G Indicates the abnormality of the last data of the current sensor.
6. A multi-sensor fault prediction device, characterized in that: include: A data acquisition module, used for acquiring each data of each sensor and first neighborhood data of each data based on a preset first neighborhood range; A detection module, configured to obtain the abnormality degree of each data and abnormal data of each sensor based on the first neighborhood data; A data screening module, used for acquiring second neighborhood data of the abnormal data based on a preset second neighborhood range and the abnormality degree; A calculation module, used for obtaining the correlation between each sensor and other sensors based on the abnormal data and the second neighborhood data; The prediction module is used to obtain a smoothing constant based on the correlation degree and the abnormality degree of the last data of each sensor, and predict the fault of each sensor based on the smoothing constant.
7. An electronic device, characterized in that: include: Memory, used to store programs; A processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the multi-sensor fault prediction method described in any one of claims 1 to 5.
8. A storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the multi-sensor fault prediction method described in any one of claims 1 to 5 above.
Citation Information
Patent Citations
Fault prediction method and device, electronic equipment and computer readable storage medium
CN112509292A
Sensor time sequence anomaly detection method and system based on multi-modal variable correlation
CN117708738A
