An intelligent flow meter data management system and method based on the Internet of Things
By combining approximate entropy and fractal analysis in the intelligent flow meter data management system, a fault prediction model is constructed, which solves the problem of inaccurate fault prediction of intelligent flow meters in the existing technology, achieves more accurate fault prediction and real-time status judgment, and improves Improve the stability and adaptability of production.
Patent Information
- Application Number
- CN202410413390.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-04-08
AI Technical Summary
The existing technology is not accurate enough for fault prediction of smart flow meter data. It is mainly based on statistical analysis of single features or historical data and lacks real-time and multi-dimensional analysis methods.
An intelligent flow meter data management system based on the Internet of Things is used to construct a fault prediction model through approximate entropy analysis and fractal analysis combined with fault logs. Approximate entropy and fractal index are used for correlation analysis to build a fault prediction model and analyze real-time flow meter data. Perform analysis to predict failures.
It achieves more accurate fault prediction, reduces downtime, improves the real-time and adaptive capabilities of production, and dynamically updates the threshold interval to adapt to changes in equipment operating status.
Smart Images

Figure CN118228177B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data management, and in particular to an intelligent flow meter data management system and method based on the Internet of Things. Background Art
[0002] Smart flow meters play a vital role in industrial production and process control. They can monitor and record the flow of liquid or gas in pipelines in real time, and transmit the data to the monitoring system for analysis and processing. Smart flow meters can provide important process control and adjustment basis for industrial production by detecting parameters such as fluid flow rate, pressure, and temperature, thereby ensuring the safety, stability, and efficiency of the production process.
[0003] However, the existing technology for analyzing smart flow meter data is often based only on statistical analysis of historical data, judging whether a fault occurs based on the changing trend of historical data, or relying on a single feature or indicator to predict faults, making the effect of smart flow meter fault prediction not accurate enough. Summary of the invention
[0004] The purpose of the present invention is to provide an intelligent flow meter data management system and method based on the Internet of Things to solve the problems raised in the above background technology.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] An intelligent flow meter data management method based on the Internet of Things, the method comprising the following steps:
[0007] Step S100. Obtain historical flow meter data from the intelligent flow meter monitoring system, perform approximate entropy analysis on the historical flow meter data, and thereby obtain an approximate entropy set; obtain a fault log, analyze the approximate entropy corresponding to the fault log, and correspond each element in the approximate entropy set to an event recorded in the fault log;
[0008] Step S200. Acquire historical flow meter data, perform fractal analysis on the historical flow meter data, and thereby obtain a fractal index set; correspond each element in the fractal index set to a fault log event according to the time point of the event recorded in the fault log;
[0009] Step S300. Obtain the corresponding results of the approximate entropy set and the events recorded in the fault log and the corresponding results of the fractal index set and the events recorded in the fault log respectively, and perform correlation analysis; according to the correlation analysis results, construct a fault prediction model;
[0010] Step S400: Acquire real-time flow meter data, analyze the real-time flow meter data according to the fault prediction model, output the result of the fault prediction model, and perform corresponding processing according to the result of the fault prediction model.
[0011] Furthermore, step S100 includes:
[0012] S101. Obtain historical flow meter data for a selected time period, and convert the historical flow meter data into time series data, the time series is: X = {u(1), u(2), ..., u(N)}, wherein u(1) represents the flow meter data at the first time point, u(2) represents the flow meter data at the second time point, and so on, u(N) represents the flow meter data at the Nth time point; N represents the number of time points; divided into different subsequences according to the length m of the window, and each subsequence is a vector of dimension m, and the divided time series is: X = {X(1), X(2), ..., X(N-m+1)}, and X(1) represents the first subsequence, X(2) represents the second subsequence, and so on, X(N-m+1) represents the N-m+1th subsequence; wherein X(i) = {x(i), x(i+1), ..., x(i+m-1};
[0013] S102. For any two subsequences X(i) and X(j), the distance d[X(i), X(j)] between X(i) and X(j) is calculated, and the specific calculation formula of the distance d[X(i), X(j)] is:
[0014] d[X(i),X(j)]=max|x(i+k)-x(j+k); 1≤i,j≤N-m+1, where k is the index difference of the subsequence, and i and j are the starting indexes of the subsequences respectively; for each distance d, determine whether it is less than the threshold r; count the number of distances that meet the above conditions, and calculate the ratio to the total number of statistics. The specific calculation formula is:
[0015]
[0016] Among them, num[] is used to count the number of distances d less than the threshold r; according to Define the average similarity when the number of subsequences is m. The specific calculation formula is:
[0017]
[0018] Calculate the average similarity when the number of subsequences is m+1, and get Φ m+1 (r); find Φ m (r) and Φ m+1 The difference of (r) gives the approximate entropy ApEn, and ApEn = Φm (r)-Φ m+1 (r); Regarding the selection of m and r, m is usually chosen to be 2 or 3; r is selected according to the actual application scenario, usually r = 0.2*std, where std is the standard deviation of the original time series.
[0019] S103. The events recorded in the fault log include fault events and normal events; the selected time period for the approximate entropy analysis is determined according to the time interval of the fault events or normal events corresponding to the fault log, and each selected time period has one and only one fault event or normal event; the fault event refers to an event in the fault log that is handled by maintenance or related personnel, and the normal event refers to other events other than fault events. According to S101 and S102, the approximate entropy of all fault events and normal events is calculated to form an approximate entropy set, and the fault events and normal events are matched with each element in the approximate entropy set according to the selected time period.
[0020] Further, step S200 includes:
[0021] S201. Obtain historical flow meter data according to the selected time period of the approximate entropy analysis, convert the historical flow meter data into time series data X, accumulate the time series data, and perform standardization to obtain the accumulated time series Y(t), where t represents the index of the data point in the accumulated time series, which is a positive integer;
[0022] S202. The cumulative time series Y(t) is divided into non-overlapping scale segments, each of which has a length of s and s is not equal; a linear fit is performed on each scale segment to obtain a local trend line y(t), and y(t)=at+b, where a is the slope of the linear fit and b is the intercept of the linear fit; the residual is calculated by combining the time series Y(t) and the local trend line y(t), and the residual calculation formula is:
[0023] F(t,s)=Y(t)-y(t),
[0024] According to the above residual formula, the corresponding residual is calculated for each time point and scale segment; for each scale segment, the root mean square root of the residual is calculated. The specific calculation formula is:
[0025]
[0026] Where T represents the number of time points in the scale segment; in logarithmic coordinates, the time scale s and the root mean square root number F RMS (s) performing linear fitting to obtain the slope of the linear fitting, and using the slope of the linear fitting as the fractal index α;
[0027] S203. Fault events and normal events are divided in the same manner as in S103, and the fractal index α of all fault events and normal events is calculated according to S201 and S202 to form a fractal index set, and the fault events and normal events are matched with each element in the fractal index set according to the selected time period.
[0028] Furthermore, step S300 includes:
[0029] S301. Obtain an approximate entropy set and a fractal index set, and construct a fault event data table according to the fault events corresponding to the elements in the approximate entropy set and the fractal index set; construct a normal event data table according to the normal events corresponding to the elements in the approximate entropy set and the fractal index set; each row of the fault event data table records the fault event number, approximate entropy and fractal index, and each row of the normal event data table records the normal event number, approximate entropy and fractal index, and each fault event number and normal event number are unique, and each row of the fault event data table is in the format of: fault event number-approximate entropy-fractal index, and each row of the normal event data table is in the format of: normal event number-approximate entropy-fractal index;
[0030] S302. Extract each row of data from the fault event data table to form a fault event feature vector V 1K , and V 1K =(ApEn 1k ,α 1k ), where 1k represents the fault event number; each row of data extracted from the normal event data table constitutes a normal event feature vector V 2K , and V 2K =(ApEn 2k ,α 2k ), where 2k represents the normal event number; linear correlation analysis is performed on all fault event feature vectors and normal event feature vectors, thereby obtaining the linear correlation coefficient r1 of the fault event and the linear correlation coefficient r2 of the normal event;
[0031] If the absolute values of the linear correlation coefficients r1 and r2 are both less than or equal to β, and β represents the correlation threshold, the deviation value G of the approximate entropy and fractal index of the fault event and the normal event is calculated respectively. The specific calculation formula is:
[0032]
[0033] Wherein, μ represents the deviation coefficient, ε represents the error factor, B represents the approximate entropy or fractal index of the fault event or normal event, B0 represents the average value of the approximate entropy or fractal index of the fault event or normal event, B_max represents the maximum value of the approximate entropy or fractal index of the fault event or normal event, and B_min represents the minimum value of the approximate entropy or fractal index of the fault event or normal event; the calculated deviation value G is used to obtain the deviation value threshold intervals Q1 and Q2 according to the corresponding relationship between the fault event and the normal event;
[0034] If the absolute value of the linear correlation coefficient r1 is less than or equal to β, and the absolute value of r2 is greater than β; for a fault event, calculate the deviation value G between the approximate entropy of the fault event and the fractal index, so as to obtain the deviation value threshold interval Q1 of the fault event; for a normal event, convert the normal event feature vector V 2K In the plane rectangular coordinate system, the normal event numbers are expressed in order, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent feature vectors in the plane rectangular coordinate system are connected, and the slope e2 of the adjacent data points is calculated, so as to obtain the normal event slope threshold interval E2;
[0035] If the absolute value of the linear correlation coefficient r1 is greater than β, and the absolute value of r2 is less than or equal to β; for fault events, the fault event feature vectors are represented in the order of the fault event numbers in the plane rectangular coordinate system, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent feature vectors in the plane rectangular coordinate system are connected, and the slope e1 of the adjacent data points is calculated, thereby obtaining the fault event slope threshold interval E1; for normal events, the deviation value G of the normal event approximate entropy and the fractal index is calculated, thereby obtaining the deviation value threshold interval Q2 of the normal event;
[0036] If the absolute values of the linear correlation coefficients r1 and r2 are both greater than β, the fault event feature vector V 1K and the normal event feature vector V 2K They are respectively represented in the order of fault event numbers or normal event numbers in a plane rectangular coordinate system, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent eigenvectors in the plane rectangular coordinate system are connected, and the slopes e1 and e2 of the adjacent data points of the fault event and the normal event are respectively calculated, so as to obtain the fault event slope threshold interval E1 and the normal event slope threshold interval E2;
[0037] S303. According to the analysis of S302, the corresponding correlation relationship is obtained, and a fault prediction model Z(ApEn,α) is constructed according to the correlation relationship. Approximate entropy and fractal index are input, and fault prediction results are output. There are three types of fault prediction results, namely: fault, normal and others.
[0038] The two features of approximate entropy and fractal index are used for fault prediction analysis instead of relying on a single feature. This method of comprehensive utilization of multiple features can improve the model's understanding and prediction ability of the system state. Different threshold intervals are proposed for different situations to further distinguish fault events from normal events. For example, when the absolute value of the linear correlation coefficient r1 is less than or equal to β, and the absolute value of r2 is greater than β, it means that the approximate entropy and fractal index of the fault event are linearly independent, and the approximate entropy and fractal index of the normal event are linearly correlated. Therefore, different analysis methods are needed to calculate the corresponding threshold intervals.
[0039] Furthermore, step S400 includes:
[0040] Acquire real-time flow meter data, analyze the real-time flow meter data, and obtain a real-time feature vector V = (ApEn, α); input the real-time feature vector V into the fault prediction model Z (ApEn, α), and output the result of the fault prediction model. If the output is a fault, notify the relevant personnel and have them perform maintenance; if the output is normal, do not perform any processing; if the output is other, notify the relevant personnel and have them determine whether the current event is a new fault event or a normal event. If it is a new fault event or a normal event, update the corresponding threshold interval after the relevant personnel complete the processing; if it is not a fault event or a normal event, mark the current data and store it as an abnormal event, and record the processing process of the relevant personnel.
[0041] An intelligent flow meter data management system based on the Internet of Things, the system includes: a data acquisition and processing module, a historical data analysis module, a correlation analysis and model building module, a real-time data analysis and prediction module, and an abnormal event processing module;
[0042] The data acquisition and processing module is used to obtain historical flow meter data and real-time flow meter data from the intelligent flow meter monitoring system, and to perform preliminary processing and storage on the data; the historical data analysis module performs approximate entropy analysis and fractal analysis on the historical flow meter data to obtain an approximate entropy set and a fractal index set, as well as events recorded in the fault log; the association analysis and model building module constructs a fault prediction model by associating the corresponding results of the approximate entropy set and the events recorded in the fault log, and the corresponding results of the fractal index set and the events recorded in the fault log; the real-time data analysis and prediction module is used to obtain real-time flow meter data, analyze the real-time flow meter data according to the fault prediction model, output the results of the fault prediction model, and perform corresponding processing according to the results; the abnormal event processing module is used to record and process abnormal events found in the real-time data analysis, including notifying relevant personnel, recording the processing process, and updating the threshold interval.
[0043] The data acquisition and processing module has a data acquisition unit and a data processing unit;
[0044] The data acquisition unit is responsible for acquiring historical flow meter data and real-time flow meter data from the intelligent flow meter monitoring system; the data processing unit converts the collected flow meter data into time series data.
[0045] The historical data analysis module includes an approximate entropy analysis unit, a fractal analysis unit and a fault log recording unit;
[0046] The approximate entropy analysis unit performs approximate entropy analysis on the historical flow meter data to obtain an approximate entropy set; the fractal analysis unit performs fractal analysis on the historical flow meter data to obtain a fractal index set; the fault log recording unit records fault events and normal events occurring in the historical data.
[0047] The association analysis and model building module includes an association analysis unit and a model building unit;
[0048] The correlation analysis unit performs correlation analysis on the approximate entropy set and the fractal index set with the events recorded in the fault log; and the model building unit builds a fault prediction model based on the correlation analysis result.
[0049] The real-time data analysis and prediction module includes a real-time data analysis unit and a prediction model application unit;
[0050] The real-time data analysis unit analyzes the real-time flow meter data based on the analysis process of the historical flow meter data to obtain the approximate entropy and fractal index; the prediction model application unit uses the constructed fault prediction model to perform prediction analysis on the real-time flow meter data and outputs the prediction result.
[0051] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0052] Through approximate entropy analysis and fractal analysis, combined with the events recorded in the fault log, a fault prediction model is constructed, which can more accurately predict the failure of flow meter equipment, help to carry out maintenance in advance and reduce downtime; based on the real-time flow meter data analysis and the output results through the fault prediction model, it can judge in real time whether the current state is a fault, normal or other situation, and promptly notify relevant personnel for maintenance or processing. This real-time performance can help avoid the serious impact of the fault on production or operation; for the output result of "other", the system can automatically notify the relevant personnel and mark it as an abnormal event, further guide the relevant personnel to make judgments and handle it, thereby improving the efficiency and timeliness of abnormal event processing; when a new fault event or normal event is added, the system can dynamically update the threshold interval, so that the fault prediction model can continuously adapt to changes in the operating status of the equipment, improving the system's adaptability and long-term stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0054] Figure 1 It is a schematic diagram of a module of an intelligent flow meter data management system based on the Internet of Things of the present invention. DETAILED DESCRIPTION
[0055] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] See also Figure 1 , the present invention provides a technical solution:
[0057] An intelligent flow meter data management method based on the Internet of Things, the method comprising the following steps:
[0058] Step S100. Obtain historical flow meter data from the intelligent flow meter monitoring system, perform approximate entropy analysis on the historical flow meter data, and thereby obtain an approximate entropy set; obtain a fault log, analyze the approximate entropy corresponding to the fault log, and correspond each element in the approximate entropy set to an event recorded in the fault log;
[0059] Step S200. Acquire historical flow meter data, perform fractal analysis on the historical flow meter data, and thereby obtain a fractal index set; correspond each element in the fractal index set to a fault log event according to the time point of the event recorded in the fault log;
[0060] Step S300. Obtain the corresponding results of the approximate entropy set and the events recorded in the fault log and the corresponding results of the fractal index set and the events recorded in the fault log respectively, and perform correlation analysis; according to the correlation analysis results, construct a fault prediction model;
[0061] Step S400: Acquire real-time flow meter data, analyze the real-time flow meter data according to the fault prediction model, output the result of the fault prediction model, and perform corresponding processing according to the result of the fault prediction model.
[0062] Step S100 includes:
[0063] S101. Obtain historical flow meter data for a selected time period, and convert the historical flow meter data into time series data, the time series is: X = {u(1), u(2), ..., u(N)}, wherein u(1) represents the flow meter data at the first time point, u(2) represents the flow meter data at the second time point, and so on, u(N) represents the flow meter data at the Nth time point; N represents the number of time points; divided into different subsequences according to the length m of the window, and each subsequence is a vector of dimension m, and the divided time series is: X = {X(1), X(2), ..., X(N-m+1)}, and X(1) represents the first subsequence, X(2) represents the second subsequence, and so on, X(N-m+1) represents the N-m+1th subsequence; wherein X(i) = {x(i), x(i+1), ..., x(i+m-1};
[0064] S102. For any two subsequences X(i) and X(j), the distance d[X(i), X(j)] between X(i) and X(j) is calculated, and the specific calculation formula of the distance d[X(i), X(j)] is:
[0065] d[X(i),X(j)]=max|x(i+k)-x(j+k); 1≤i,j≤N-m+1,
[0066] Where k is the index difference of the subsequence, i and j are the starting indexes of the subsequence respectively; for each distance d, determine whether it is less than the threshold r; count the number of distances that meet the above conditions and find the ratio to the total number of statistics. The specific calculation formula is:
[0067]
[0068] Among them, num[] is used to count the number of distances d less than the threshold r; according to Define the average similarity when the number of subsequences is m. The specific calculation formula is:
[0069]
[0070] Calculate the average similarity when the number of subsequences is m+1, and get Φ m+1 (r); find Φ m (r) and Φ m+1 The difference of (r) gives the approximate entropy ApEn, and ApEn = Φ m (r)-Φ m+1 (r); Regarding the selection of m and r, m is usually chosen to be 2 or 3; r is selected according to the actual application scenario, usually r = 0.2*std, where std is the standard deviation of the original time series.
[0071] S103. The events recorded in the fault log include fault events and normal events; the selected time period for the approximate entropy analysis is determined according to the time interval of the fault events or normal events corresponding to the fault log, and each selected time period has one and only one fault event or normal event; the fault event refers to an event in the fault log that is handled by maintenance or related personnel, and the normal event refers to other events other than fault events. According to S101 and S102, the approximate entropy of all fault events and normal events is calculated to form an approximate entropy set, and the fault events and normal events are matched with each element in the approximate entropy set according to the selected time period.
[0072] Step S200 includes:
[0073] S201. Obtain historical flow meter data according to the selected time period of the approximate entropy analysis, convert the historical flow meter data into time series data X, accumulate the time series data, and perform standardization to obtain the accumulated time series Y(t), where t represents the index of the data point in the accumulated time series, which is a positive integer;
[0074] S202. The cumulative time series Y(t) is divided into non-overlapping scale segments, each of which has a length of s and s is not equal; a linear fit is performed on each scale segment to obtain a local trend line y(t), and y(t)=at+b, where a is the slope of the linear fit and b is the intercept of the linear fit; the residual is calculated by combining the time series Y(t) and the local trend line y(t), and the residual calculation formula is:
[0075] F(t,s)=Y(t)-y(t),
[0076] According to the above residual formula, the corresponding residual is calculated for each time point and scale segment; for each scale segment, the root mean square root of the residual is calculated. The specific calculation formula is:
[0077]
[0078] Where T represents the number of time points in the scale segment; in logarithmic coordinates, the time scale s and the root mean square root number F RMS (s) performing linear fitting to obtain the slope of the linear fitting, and using the slope of the linear fitting as the fractal index α;
[0079] S203. Fault events and normal events are divided in the same manner as in S103, and the fractal index α of all fault events and normal events is calculated according to S201 and S202 to form a fractal index set, and the fault events and normal events are matched with each element in the fractal index set according to the selected time period.
[0080] Step S300 includes:
[0081] S301. Obtain an approximate entropy set and a fractal index set, and construct a fault event data table according to the fault events corresponding to the elements in the approximate entropy set and the fractal index set; construct a normal event data table according to the normal events corresponding to the elements in the approximate entropy set and the fractal index set; each row of the fault event data table records the fault event number, approximate entropy and fractal index, and each row of the normal event data table records the normal event number, approximate entropy and fractal index, and each fault event number and normal event number are unique, and each row of the fault event data table is in the format of: fault event number-approximate entropy-fractal index, and each row of the normal event data table is in the format of: normal event number-approximate entropy-fractal index;
[0082] S302. Extract each row of data from the fault event data table to form a fault event feature vector V 1K , and V 1K =(ApEn 1k ,α 1k ), where 1k represents the fault event number; each row of data extracted from the normal event data table constitutes a normal event feature vector V 2K , and V 2K =(ApEn 2k ,α 2k ), where 2k represents the normal event number; linear correlation analysis is performed on all fault event feature vectors and normal event feature vectors, thereby obtaining the linear correlation coefficient r1 of the fault event and the linear correlation coefficient r2 of the normal event;
[0083] If the absolute values of the linear correlation coefficients r1 and r2 are both less than or equal to β, and β represents the correlation threshold, the deviation value G of the approximate entropy and fractal index of the fault event and the normal event is calculated respectively. The specific calculation formula is:
[0084]
[0085] Wherein, μ represents the deviation coefficient, ε represents the error factor, B represents the approximate entropy or fractal index of the fault event or normal event, B0 represents the average value of the approximate entropy or fractal index of the fault event or normal event, B_max represents the maximum value of the approximate entropy or fractal index of the fault event or normal event, and B_min represents the minimum value of the approximate entropy or fractal index of the fault event or normal event; the calculated deviation value G is used to obtain the deviation value threshold intervals Q1 and Q2 according to the corresponding relationship between the fault event and the normal event;
[0086] If the absolute value of the linear correlation coefficient r1 is less than or equal to β, and the absolute value of r2 is greater than β; for a fault event, calculate the deviation value G between the approximate entropy of the fault event and the fractal index, so as to obtain the deviation value threshold interval Q1 of the fault event; for a normal event, convert the normal event feature vector V 2K In the plane rectangular coordinate system, the normal event numbers are expressed in order, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent feature vectors in the plane rectangular coordinate system are connected, and the slope e2 of the adjacent data points is calculated, so as to obtain the normal event slope threshold interval E2;
[0087] If the absolute value of the linear correlation coefficient r1 is greater than β, and the absolute value of r2 is less than or equal to β; for fault events, the fault event feature vectors are represented in the order of the fault event numbers in the plane rectangular coordinate system, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent feature vectors in the plane rectangular coordinate system are connected, and the slope e1 of the adjacent data points is calculated, thereby obtaining the fault event slope threshold interval E1; for normal events, the deviation value G of the normal event approximate entropy and the fractal index is calculated, thereby obtaining the deviation value threshold interval Q2 of the normal event;
[0088] If the absolute values of the linear correlation coefficients r1 and r2 are both greater than β, the fault event feature vector V 1K and the normal event feature vector V 2K They are respectively represented in the order of fault event numbers or normal event numbers in a plane rectangular coordinate system, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent eigenvectors in the plane rectangular coordinate system are connected, and the slopes e1 and e2 of the adjacent data points of the fault event and the normal event are respectively calculated, so as to obtain the fault event slope threshold interval E1 and the normal event slope threshold interval E2;
[0089] S303. According to the analysis of S302, the corresponding correlation relationship is obtained, and a fault prediction model Z(ApEn,α) is constructed according to the correlation relationship. Approximate entropy and fractal index are input, and fault prediction results are output. There are three types of fault prediction results, namely: fault, normal and others.
[0090] The two features of approximate entropy and fractal index are used for fault prediction analysis instead of relying on a single feature. This method of comprehensive utilization of multiple features can improve the model's understanding and prediction ability of the system state. Different threshold intervals are proposed for different situations to further distinguish fault events from normal events. For example, when the absolute value of the linear correlation coefficient r1 is less than or equal to β, and the absolute value of r2 is greater than β, it means that the approximate entropy and fractal index of the fault event are linearly independent, and the approximate entropy and fractal index of the normal event are linearly correlated. Therefore, different analysis methods are needed to calculate the corresponding threshold intervals.
[0091] In this embodiment, the judgment process corresponding to the prediction result is: input the characteristic vector V corresponding to the approximate entropy and the fractal index; according to the analysis result of S302, if the absolute values of the linear correlation coefficients r1 and r2 are both less than or equal to β, calculate the deviation values G of the approximate entropy and the fractal index respectively, and compare the corresponding deviation values G with the deviation value threshold intervals Q1 and Q2 respectively; if the deviation value G of the approximate entropy belongs to the deviation value threshold interval Q1 and the deviation value G of the fractal index does not belong to the deviation value threshold interval Q2, then output fault; if the deviation value G of the approximate entropy does not belong to the deviation value threshold interval Q1 and the deviation value G of the fractal index belongs to the deviation value threshold interval Q2, then output normal; if the deviation value G of the approximate entropy belongs to the deviation value threshold interval Q1 and the deviation value G of the fractal index belongs to the deviation value threshold interval Q2, or if the deviation value G of the approximate entropy does not belong to the deviation value threshold interval Q1 and the deviation value G of the fractal index does not belong to the deviation value threshold interval Q2, then output other.
[0092] Step S400 includes:
[0093] Acquire real-time flow meter data, analyze the real-time flow meter data, and obtain a real-time feature vector V = (ApEn, α); input the real-time feature vector V into the fault prediction model Z (ApEn, α), and output the result of the fault prediction model. If the output is a fault, notify the relevant personnel and have them perform maintenance; if the output is normal, do not perform any processing; if the output is other, notify the relevant personnel and have them determine whether the current event is a new fault event or a normal event. If it is a new fault event or a normal event, update the corresponding threshold interval after the relevant personnel complete the processing; if it is not a fault event or a normal event, mark the current data and store it as an abnormal event, and record the processing process of the relevant personnel.
[0094] An intelligent flow meter data management system based on the Internet of Things, the system includes: a data acquisition and processing module, a historical data analysis module, a correlation analysis and model building module, a real-time data analysis and prediction module, and an abnormal event processing module;
[0095] The data acquisition and processing module is used to obtain historical flow meter data and real-time flow meter data from the intelligent flow meter monitoring system, and to perform preliminary processing and storage on the data; the historical data analysis module performs approximate entropy analysis and fractal analysis on the historical flow meter data to obtain an approximate entropy set and a fractal index set, as well as events recorded in the fault log; the association analysis and model building module constructs a fault prediction model by associating the corresponding results of the approximate entropy set and the events recorded in the fault log, and the corresponding results of the fractal index set and the events recorded in the fault log; the real-time data analysis and prediction module is used to obtain real-time flow meter data, analyze the real-time flow meter data according to the fault prediction model, output the results of the fault prediction model, and perform corresponding processing according to the results; the abnormal event processing module is used to record and process abnormal events found in the real-time data analysis, including notifying relevant personnel, recording the processing process, and updating the threshold interval.
[0096] Data acquisition and processing module: data acquisition unit and data processing unit;
[0097] The data acquisition unit is responsible for acquiring historical flow meter data and real-time flow meter data from the intelligent flow meter monitoring system; the data processing unit converts the collected flow meter data into time series data.
[0098] The historical data analysis module includes an approximate entropy analysis unit, a fractal analysis unit, and a fault log recording unit;
[0099] The approximate entropy analysis unit performs approximate entropy analysis on the historical flow meter data to obtain an approximate entropy set; the fractal analysis unit performs fractal analysis on the historical flow meter data to obtain a fractal index set; the fault log recording unit records fault events and normal events occurring in the historical data.
[0100] The association analysis and model building module includes an association analysis unit and a model building unit;
[0101] The correlation analysis unit performs correlation analysis on the approximate entropy set and the fractal index set with the events recorded in the fault log; and the model building unit builds a fault prediction model based on the correlation analysis result.
[0102] The real-time data analysis and prediction module includes a real-time data analysis unit and a prediction model application unit;
[0103] The real-time data analysis unit analyzes the real-time flow meter data based on the analysis process of the historical flow meter data to obtain the approximate entropy and fractal index; the prediction model application unit uses the constructed fault prediction model to perform prediction analysis on the real-time flow meter data and outputs the prediction result.
[0104] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0105] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent flow meter data management method based on the Internet of Things, characterized in that: The method comprises the following steps: Step S100. Obtain historical flow meter data from the intelligent flow meter monitoring system, perform approximate entropy analysis on the historical flow meter data, and thereby obtain an approximate entropy set; obtain a fault log, analyze the approximate entropy corresponding to the fault log, and correspond each element in the approximate entropy set to an event recorded in the fault log; The step S100 includes: S101. Obtain historical flow meter data for a selected time period, and convert the historical flow meter data into time series data, the time series is: X = {u(1), u(2), ..., u(N)}, wherein u(1) represents the flow meter data at the first time point, u(2) represents the flow meter data at the second time point, and so on, u(N) represents the flow meter data at the Nth time point; N represents the number of time points; divided into different subsequences according to the length m of the window, and each subsequence is a vector of dimension m, and the divided time series is: X = {X(1), X(2), ..., X(N-m+1)}, and X(1) represents the first subsequence, X(2) represents the second subsequence, and so on, X(N-m+1) represents the N-m+1th subsequence; wherein X(i) = {x(i), x(i+1), ..., x(i+m-1}; S102. For any two subsequences X(i) and X(j), the distance d[X(i), X(j)] between X(i) and X(j) is calculated, and the specific calculation formula of the distance d[X(i), X(j)] is: d[X(i),X(j)]=max|x(i+k)-x(j+k); 1≤i,j≤N-m+1, where k is the index difference of the subsequence, and i and j are the starting indexes of the subsequences respectively; for each distance d, determine whether it is less than the threshold r; count the number of distances that meet the above conditions, and calculate the ratio to the total number of statistics. The specific calculation formula is: Among them, num[] is used to count the number of distances d less than the threshold r; according to Define the average similarity when the number of subsequences is m. The specific calculation formula is: Calculate the average similarity when the number of subsequences is m+1, and get Φ m+1 (r); find Φ m (r) and Φ m+1 The difference of (r) gives the approximate entropy ApEn, and ApEn = Φ m (r)-Φ m+1 (r); S103. The events recorded in the fault log include fault events and normal events; the selected time period for the approximate entropy analysis is determined according to the time interval of the fault events or normal events corresponding to the fault log, and each selected time period has and only has one fault event or normal event; the fault event refers to an event in the fault log that is handled by maintenance or related personnel, and the normal event refers to other events other than the fault event, which are called normal events; according to S101 and S102, the approximate entropy of all fault events and normal events is calculated to form an approximate entropy set, and the fault events and normal events are matched with each element in the approximate entropy set according to the selected time period; Step S200. Acquire historical flow meter data, perform fractal analysis on the historical flow meter data, and thereby obtain a fractal index set; correspond each element in the fractal index set to a fault log event according to the time point of the event recorded in the fault log; The step S200 includes: S201. Obtain historical flow meter data according to the selected time period of the approximate entropy analysis, convert the historical flow meter data into time series data X, accumulate the time series data, and perform standardization to obtain the accumulated time series Y(t), where t represents the index of the data point in the accumulated time series, which is a positive integer; S202. The cumulative time series Y(t) is divided into non-overlapping scale segments, each of which has a length of s and s is not equal; a linear fit is performed on each scale segment to obtain a local trend line y(t), and y(t)=at+b, where a is the slope of the linear fit and b is the intercept of the linear fit; the residual is calculated by combining the time series Y(t) and the local trend line y(t), and the residual calculation formula is: F(t,s)=Y(t)-y(t), According to the above residual formula, the corresponding residual is calculated for each time point and scale segment; for each scale segment, the root mean square root of the residual is calculated. The specific calculation formula is: Where T represents the number of time points in the scale segment; in logarithmic coordinates, the time scale s and the root mean square root number F RMS (s) performing a linear fit to obtain a slope of the linear fit, and using the slope of the linear fit as a fractal index α; S203. Fault events and normal events are divided in the same manner as in S103, and the fractal index α of all fault events and normal events is calculated according to S201 and S202, thereby forming a fractal index set, and the fault events and normal events are matched with each element in the fractal index set according to the selected time period; Step S300. Obtain the corresponding results of the approximate entropy set and the events recorded in the fault log and the corresponding results of the fractal index set and the events recorded in the fault log respectively, and perform correlation analysis; according to the correlation analysis results, construct a fault prediction model; The step S300 includes: S301. Obtain an approximate entropy set and a fractal index set, and construct a fault event data table according to the fault events corresponding to the elements in the approximate entropy set and the fractal index set; construct a normal event data table according to the normal events corresponding to the elements in the approximate entropy set and the fractal index set; each row of the fault event data table records the fault event number, approximate entropy and fractal index, and each row of the normal event data table records the normal event number, approximate entropy and fractal index, and each fault event number and normal event number are unique, and each row of the fault event data table is in the format of: fault event number-approximate entropy-fractal index, and each row of the normal event data table is in the format of: normal event number-approximate entropy-fractal index; S302. Extract each row of data from the fault event data table to form a fault event feature vector V 1K , and V 1K =(ApEn 1k ,α 1k ), where 1k represents the fault event number; each row of data extracted from the normal event data table constitutes a normal event feature vector V 2K , and V 2K =(ApEn 2k ,α 2k ), where 2k represents the normal event number; linear correlation analysis is performed on all fault event feature vectors and normal event feature vectors, thereby obtaining the linear correlation coefficient r1 of the fault event and the linear correlation coefficient r2 of the normal event; If the absolute values of the linear correlation coefficients r1 and r2 are both less than or equal to β, and β represents the correlation threshold, the deviation value G of the approximate entropy and fractal index of the fault event and the normal event is calculated respectively. The specific calculation formula is: Wherein, μ represents the deviation coefficient, ε represents the error factor, B represents the approximate entropy or fractal index of the fault event or normal event, B0 represents the average value of the approximate entropy or fractal index of the fault event or normal event, B_max represents the maximum value of the approximate entropy or fractal index of the fault event or normal event, and B_min represents the minimum value of the approximate entropy or fractal index of the fault event or normal event; the calculated deviation value G is used to obtain the deviation value threshold intervals Q1 and Q2 according to the corresponding relationship between the fault event and the normal event; If the absolute value of the linear correlation coefficient r1 is less than or equal to β, and the absolute value of r2 is greater than β; for a fault event, calculate the deviation value G between the approximate entropy of the fault event and the fractal index, so as to obtain the deviation value threshold interval Q1 of the fault event; for a normal event, convert the normal event feature vector V 2K In the plane rectangular coordinate system, the normal event numbers are expressed in order, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent feature vectors in the plane rectangular coordinate system are connected, and the slope e2 of the adjacent data points is calculated, so as to obtain the normal event slope threshold interval E2; If the absolute value of the linear correlation coefficient r1 is greater than β, and the absolute value of r2 is less than or equal to β; for fault events, the fault event feature vectors are represented in the order of the fault event numbers in the plane rectangular coordinate system, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent feature vectors in the plane rectangular coordinate system are connected, and the slope e1 of the adjacent data points is calculated, thereby obtaining the fault event slope threshold interval E1; for normal events, the deviation value G of the normal event approximate entropy and the fractal index is calculated, thereby obtaining the deviation value threshold interval Q2 of the normal event; If the absolute values of the linear correlation coefficients r1 and r2 are both greater than β, the fault event feature vector V 1K and the normal event feature vector V 2K They are respectively represented in the order of fault event numbers or normal event numbers in a plane rectangular coordinate system, and the horizontal axis of the plane rectangular coordinate system represents the approximate entropy, and the vertical axis represents the fractal index. The data points of two adjacent eigenvectors in the plane rectangular coordinate system are connected, and the slopes e1 and e2 of the adjacent data points of the fault event and the normal event are respectively calculated, so as to obtain the fault event slope threshold interval E1 and the normal event slope threshold interval E2; S303. According to the analysis of S302, the corresponding correlation is obtained, and a fault prediction model Z(ApEn,α) is constructed according to the correlation. Approximate entropy and fractal index are input, and fault prediction results are output. There are three types of fault prediction results, namely: fault, normal, and others. Step S400: Acquire real-time flow meter data, analyze the real-time flow meter data according to the fault prediction model, output the result of the fault prediction model, and perform corresponding processing according to the result of the fault prediction model.
2. According to the method for intelligent flow meter data management based on the Internet of Things in claim 1, it is characterized by: The step S400 includes: Acquire real-time flow meter data, analyze the real-time flow meter data, and obtain a real-time feature vector V = (ApEn, α); input the real-time feature vector V into the fault prediction model Z (ApEn, α), and output the result of the fault prediction model. If the output is a fault, notify the relevant personnel and have them perform maintenance; if the output is normal, do not perform any processing; if the output is other, notify the relevant personnel and have them determine whether the current event is a new fault event or a normal event. If it is a new fault event or a normal event, update the corresponding threshold interval after the relevant personnel complete the processing; if it is not a fault event or a normal event, mark the current data and store it as an abnormal event, and record the processing process of the relevant personnel.
3. An intelligent flow meter data management system based on the Internet of Things, using an intelligent flow meter data management method based on the Internet of Things as described in any one of claims 1-2, characterized in that: The system includes: a data collection and processing module, a historical data analysis module, a correlation analysis and model building module, a real-time data analysis and prediction module, and an abnormal event processing module; The data acquisition and processing module is used to obtain historical flow meter data and real-time flow meter data from the intelligent flow meter monitoring system, and perform preliminary processing and storage on the data; the historical data analysis module performs approximate entropy analysis and fractal analysis on the historical flow meter data to obtain an approximate entropy set and a fractal index set, as well as events recorded in the fault log; the association analysis and model construction module constructs a fault prediction model by associating the corresponding results of the approximate entropy set and the events recorded in the fault log, and the corresponding results of the fractal index set and the events recorded in the fault log; the real-time data analysis and prediction module is used to obtain real-time flow meter data, analyze the real-time flow meter data according to the fault prediction model, output the results of the fault prediction model, and perform corresponding processing according to the results; the abnormal event processing module is used to record and process abnormal events found in the real-time data analysis, including notifying relevant personnel, recording the processing process, and updating the threshold interval.
4. According to claim 3, an intelligent flow meter data management system based on the Internet of Things is characterized by: The data acquisition and processing module includes a data acquisition unit and a data processing unit; The data acquisition unit is responsible for acquiring historical flow meter data and real-time flow meter data from the intelligent flow meter monitoring system; the data processing unit converts the collected flow meter data into time series data.
5. The intelligent flow meter data management system based on the Internet of Things according to claim 3 is characterized by: The historical data analysis module includes an approximate entropy analysis unit, a fractal analysis unit and a fault log recording unit; The approximate entropy analysis unit performs an approximate entropy analysis on the historical flow meter data, thereby obtaining an approximate entropy set; the fractal analysis unit performs a fractal analysis on the historical flow meter data, thereby obtaining a fractal index set; The fault log recording unit records fault events and normal events occurring in historical data.
6. The intelligent flow meter data management system based on the Internet of Things according to claim 3 is characterized by: The association analysis and model building module includes an association analysis unit and a model building unit; The correlation analysis unit performs correlation analysis on the approximate entropy set and the fractal index set and the events recorded in the fault log; and the model construction unit constructs a fault prediction model based on the correlation analysis result.
7. The intelligent flow meter data management system based on the Internet of Things according to claim 3 is characterized by: The real-time data analysis and prediction module includes a real-time data analysis unit and a prediction model application unit; The real-time data analysis unit analyzes the real-time flow meter data based on the analysis process of the historical flow meter data to obtain the approximate entropy and fractal index; the prediction model application unit uses the constructed fault prediction model to perform prediction analysis on the real-time flow meter data and outputs the prediction result.
