A method for monitoring and warning abnormal industrial water use in enterprises in a specific area

Through the LSTM model and nonlinear phase space reconstruction technology, the global and local features of enterprise water consumption are extracted and spliced, solving the complexity of abnormal water consumption monitoring in specific industrial areas, achieving accurate detection and early warning of enterprise water consumption, and improving improve monitoring efficiency and accuracy.

CN114611764BActive Publication Date: 2024-09-20JINAN YOUGE INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202210154493.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2024-09-20
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

Existing technology cannot effectively monitor and provide early warning for abnormal corporate water use in specific industrial areas, ignores the correlation between corporate water consumption, and cannot effectively combine global water consumption and local water consumption characteristics for accurate prediction.

Method used

The LSTM model is combined with nonlinear phase space reconstruction and autoregressive models to extract global and local features of enterprise water consumption, and detect abnormal water consumption through feature splicing. The LSTM model is used for prediction and comparison to determine whether water consumption is abnormal.

Benefits of technology

It achieves accurate and efficient detection of enterprise water use anomalies in a specific area, combines local and global features, and improves the accuracy of water consumption prediction and monitoring accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114611764B
    Figure CN114611764B
Patent Text Reader

Abstract

A method for monitoring and warning of abnormal industrial water use of enterprises in a specific area includes: respectively using an LSTM model for global time series data prediction and a chaotic sequence modeling for local nonlinear time series analysis to extract the water consumption characteristics of individual enterprise users, and using a feature aggregation module to aggregate and embed the two feature vectors to form a water use feature vector for a single enterprise user. By connecting the water use feature vectors of individual enterprise users, a total water consumption prediction model for enterprise users in a specific area is established. Combined with the total water consumption prediction in a specific area and the water consumption prediction model for individual enterprise users, it is analyzed whether there is any water use abnormality in the area. In view of the complex process of monitoring water use abnormalities of enterprises in a specific area, the present invention uses a water use abnormality monitoring model based on a single enterprise and multiple enterprises in a specific area, and combines local features and global features to realize water use abnormality detection of enterprises in a specific area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention discloses an abnormal monitoring and early warning method for industrial water use of enterprises in a specific area, and belongs to the technical field of abnormal intelligent monitoring of water use. Background Art

[0002] Water conservation is closely related to the future sustainable development of enterprises. For water use monitoring of enterprises in a specific area, the traditional method of allocating water use indicators to each enterprise within the specified water use capacity range cannot monitor the water use of enterprises in real time, resulting in waste of water resources. Therefore, there is an urgent need for a technical solution that can monitor the production water use of enterprises in a specific area, so that enterprises can promptly detect abnormal production water use and deal with it in a timely manner, which can reduce the waste of water resources and save costs.

[0003] Chinese patent document CN111259334A discloses a method for monitoring and warning of abnormal water consumption of large users in industrial enterprises. The present invention first establishes a water consumption monitoring database for industrial enterprises. Secondly, the dynamic 24-hour water consumption in the historical stable period is calculated, and the KS test is used to verify the normal distribution of the 24-hour water consumption sequence. When it is a skewed distribution, the upper and lower limit parameters of the box plot are calculated; when it is a normal distribution, the SPC control chart parameters are calculated. Finally, the SCADA measured data is obtained, and the 24-hour water consumption is calculated for each sampling moment, and compared with the upper and lower thresholds to make an over-limit judgment and early warning.

[0004] Chinese patent document CN113537469A discloses a method for predicting urban water demand based on LSTM network and Attention mechanism. The method uses Attention mechanism to improve the general LSTM model, then uses the data set to train the improved model, compares the output of LSTM with the actual value, obtains the prediction error, and then uses the prediction error to update the network parameters. This continuous iteration enables the LSTM model improved by Attention to automatically learn the urban water demand rules hidden in the urban water demand prediction data, thereby realizing urban water demand prediction.

[0005] However, existing technologies still cannot provide early warnings for water consumption anomalies in specific areas. For example, only the water consumption of a single enterprise is monitored and warned, but no monitoring and warning of water consumption anomalies for each enterprise within a certain range of total water consumption in a specific industrial area is performed, ignoring the correlation between the water consumption of enterprises in the industrial area. Similarly, the existing technology also uses the Attention mechanism to improve the general LSTM model, but still ignores the chaotic distribution of the overall water consumption, so it is impossible to combine the global water consumption and local water consumption features to accurately predict the industrial water consumption of enterprises. Summary of the invention

[0006] In view of the deficiencies in the prior art, the present invention discloses a method for monitoring and early warning of abnormal industrial water use of enterprises in a specific area.

[0007] The detailed technical scheme of the present invention is as follows:

[0008] A method for monitoring and warning abnormal industrial water use of enterprises in a specific area, characterized by comprising:

[0009] 1) Data records of water consumption of each enterprise in a specific area over a fixed period of time in the past:

[0010] Assuming that the number of enterprises in a specific area is N, the water consumption of the i-th enterprise in a fixed period of time in the past is recorded as:

[0011]

[0012] In formula (1), p is the total number of collection nodes within the fixed period of time. For example, for water consumption data records of enterprises in a specific area in the past year and a half, the collection frequency is once a day, that is: Where p is 540. Based on the determination of N and t, the actual water consumption of a company on a certain day can be known.

[0013] 2) A corresponding global model is constructed according to the water consumption of each enterprise in the region. The model uses the LSTM model to extract the corresponding feature expression to achieve feature dimension reduction and information compression. The process of extracting the global features of enterprise water consumption using the LSTM model is as follows:

[0014] 2-1) Construct a data matrix for the water consumption of each enterprise in the region. The rows of the matrix represent the water consumption of each collection node of a single enterprise, and the columns represent all enterprises in the region;

[0015] 2-2) Normalize the data matrix to obtain a normalized value Map it to the (0, 1) interval. The specific implementation process is:

[0016]

[0017] In formula (2), The minimum water consumption collected by the collection node; The maximum water consumption collected by the collection node;

[0018] 2-3) Construct an LSTM model to predict the daily water consumption of a single enterprise and a specific area:

[0019] The penultimate convolutional layer of the LSTM model is connected to two parallel convolutional layers, which are the water consumption prediction for a single enterprise and the water consumption prediction for a specific area.

[0020] The LSTM model has memory units, input gates, forget gates, and output gates: Assuming the number of hidden units is h, for a given input time step t, t and the hidden state H at the previous time step t-1 ; Input gate I at time step t t 、Forget Gate F t and output gate o t The calculations are as follows:

[0021] I t =σ(X t W xi +H t-1 W hi +b i ) (3)

[0022] F t =σ(X t W xf +H t-1 W hf +b f ) (4)

[0023] O t =σ(X t W xo +H t-1 W ho +b o ) (5)

[0024] Where σ is the ReLU nonlinear activation function; W xi , W xf , W xo and X t Parameters of the different gate filters connected; W hi , W hf , W ho and H t-1 Parameters of the different gate filters connected; b i , b f , b o are the deviation parameters of different gates, which can be obtained through model training;

[0025] 2-4) LSTM model training and model use:

[0026] According to the existing normalized data matrix Use the water consumption in different periods as training data samples, and the water consumption of the next day as labels, and send them to the LSTM model constructed in step 2-3) for training; the loss function of the model is the square of the difference between the predicted value and the true value. When the loss function no longer decreases, the optimal model is obtained;

[0027] 2-5) Extract the global feature f of each enterprise’s water consumption in the LSTM model i 1 , this feature can be obtained by extracting the output of the second-to-last convolutional layer in the LSTM model;

[0028] 3) Use nonlinear phase space reconstruction to construct a local model for each enterprise. The reason for this design is that since the water consumption of enterprises is limited by production volume and working days, its water consumption is generally a chaotic system. Therefore, it is considered to use nonlinear phase space reconstruction to construct a local model for each enterprise. The specific process of constructing the local model is:

[0029] 3-1) For each enterprise’s water consumption series Using the phase space reconstruction theory, it is reconstructed into a matrix with an embedding dimension of m and a sampling time interval of d. The vector in the matrix is ​​expressed as:

[0030]

[0031] Where N represents the current water consumption node;

[0032] 3-2) Using the time window method to simultaneously calculate m and d, formula (6) forms a linear m×(m-1)d-dimensional linear regression prediction equation:

[0033]

[0034] 3-3) Calculating the linear regression prediction equation parameters a0 and A in step 3-2) using the autoregressive model;

[0035] 3-4) Extract local features f i 2 :

[0036] According to the linear regression prediction equation calculated in step 3-2) Composing new delay variables

[0037] This variable is the local characteristic of the enterprise’s water consumption;

[0038] 4) Obtain the water use characteristics of a single enterprise:

[0039] Construct an independent potential expression space for each enterprise’s water consumption and generate the corresponding feature set f i 1 , f i 2 The feature extraction of each enterprise's water consumption is the concatenation of the enterprise's global and local features, expressed as

[0040] f i=[f i 1 , f i 2 ] (9)

[0041] For each enterprise’s water use, the f i 1 With f i 2 The association between features is realized by: i 1 After a linear convolution module W1, it is weighted and soft-max normalized, and then combined with f i 2 Multiply to get the associated f i 2′ Similarly, f i 2 After a linear convolution module W2, weighted and soft-max normalized, and combined with f i 2 Multiply to get the associated f i 2′ Get the associated f i 1′ , the specific implementation process is:

[0042] f i 1 ′=f i 1 Softmax((W1·f i 2 ) (10)

[0043] f i 2 ′=f i 2 Softmax((W1·f i 1 ) (11)

[0044] The water use characteristics of a single enterprise are expressed as:

[0045] f i ′=[f i 1 ′+f i 1 ,f i 2 ′+f i 2 ] (12)

[0046] 5) Methods for judging abnormal water use in a single enterprise:

[0047] The water consumption of a single enterprise is f i' Input the last convolutional layer of the LSTM model in step 2) for the water consumption of a single enterprise to predict the water consumption of a single enterprise, and use the difference between the predicted water consumption and the actual water consumption to determine whether the water consumption is abnormal:

[0048] If the difference is lower than 20% of the predicted value, the water consumption is judged to be normal, otherwise it is judged to be abnormal.

[0049] Preferably, according to the present invention, the method further includes a method for determining whether the total water consumption of all enterprises in a specific area is abnormal:

[0050] The total water consumption characteristics of all enterprises in a specific area are given by the water consumption characteristics of each enterprise involved, f i 'Perform feature splicing operation; and input the total water consumption feature after feature splicing into the last convolutional layer of the LSTM model in step 2) for water consumption in a specific area to predict the total enterprise water consumption, and use the difference between the predicted water consumption and the actual water consumption to determine whether the water consumption is abnormal:

[0051] If the difference is lower than 20% of the predicted value, the water consumption is judged to be normal, otherwise it is judged to be abnormal.

[0052] The technical advantages of the present invention are:

[0053] The present invention aims at solving the complex process of abnormal water usage monitoring for enterprises in a specific area. The present invention utilizes an abnormal water usage monitoring model based on a single enterprise and multiple enterprises in a specific area, and combines local features and global features to realize abnormal water usage detection for enterprises in a specific area. The abnormality judgment is more accurate and efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a water use feature extraction diagram of a single enterprise in the method of the present invention;

[0055] Figure 2 It is a flow chart for establishing a total water consumption model for multiple enterprises in a specific area in the method of the present invention;

[0056] Figure 3 It is a flow chart for monitoring and early warning of abnormal total water consumption of multiple enterprises in a specific area in the method described in the present invention. DETAILED DESCRIPTION

[0057] The following is a detailed description with reference to the embodiments and the accompanying drawings, but is not limited thereto.

[0058] Embodiment 1,

[0059] like Figure 1-3 As shown, a method for monitoring and warning abnormal industrial water use of enterprises in a specific area includes:

[0060] 1) Data records of water consumption of each enterprise in a specific area over a fixed period of time in the past:

[0061] Assuming that the number of enterprises in a specific area is N, the water consumption of the i-th enterprise in a fixed period of time in the past is recorded as:

[0062]

[0063] In formula (1), p is the total number of collection nodes within the fixed period of time. For example, for water consumption data records of enterprises in a specific area in the past year and a half, the collection frequency is once a day, that is: Where p is 540. Based on the determination of N and t, the actual water consumption of a company on a certain day can be known.

[0064] 2) A corresponding global model is constructed according to the water consumption of each enterprise in the region. The model uses the LSTM model to extract the corresponding feature expression to achieve feature dimension reduction and information compression. The process of extracting the global features of enterprise water consumption using the LSTM model is as follows:

[0065] 2-1) Construct a data matrix for the water consumption of each enterprise in the region. The rows of the matrix represent the water consumption of each collection node of a single enterprise, and the columns represent all enterprises in the region;

[0066] 2-2) Normalize the data matrix to obtain a normalized value Map it to the (0, 1) interval. The specific implementation process is:

[0067]

[0068] In formula (2), The minimum water consumption collected by the collection node; The maximum water consumption collected by the collection node;

[0069] 2-3) Construct an LSTM model to predict the daily water consumption of a single enterprise and a specific area:

[0070] The penultimate convolutional layer of the LSTM model is connected to two parallel convolutional layers, which are the water consumption prediction for a single enterprise and the water consumption prediction for a specific area.

[0071] The LSTM model has memory units, input gates, forget gates, and output gates: Assuming the number of hidden units is h, for a given input time step t, t and the hidden state H at the previous time step t-1 ; Input gate I at time step t t 、Forget Gate F t and output gate O t The calculations are as follows:

[0072] I t =σ(X t W xi +H t-1 W hi +b i ) (3)

[0073] F t =σ(X t W xf +H t-1 W hf +b f ) (4)

[0074] O t =σ(X t W xo +H t-1 W ho +b o ) (5)

[0075] Where σ is the ReLU nonlinear activation function; W xi , W xf , W xo and X t Parameters of the different gate filters connected; W hi , W hf , W ho and H t-1 Parameters of the different gate filters connected; b i , b f , b o are the deviation parameters of different gates, which can be obtained through model training;

[0076] 2-4) LSTM model training and model use:

[0077] According to the existing normalized data matrix Use the water consumption in different periods as training data samples, and the water consumption of the next day as labels, and send them to the LSTM model constructed in step 2-3) for training; the loss function of the model is the square of the difference between the predicted value and the true value. When the loss function no longer decreases, the optimal model is obtained;

[0078] 2-5) Extract the global feature f of each enterprise’s water consumption in the LSTM model i 1 , this feature can be obtained by extracting the output of the second-to-last convolutional layer in the LSTM model;

[0079] 3) Use nonlinear phase space reconstruction to construct a local model for each enterprise. The reason for this design is that since the water consumption of enterprises is limited by production volume and working days, its water consumption is generally a chaotic system. Therefore, it is considered to use nonlinear phase space reconstruction to construct a local model for each enterprise. The specific process of constructing the local model is:

[0080] 3-1) For each enterprise’s water consumption series Using the phase space reconstruction theory, it is reconstructed into a matrix with an embedding dimension of m and a sampling time interval of d. The vector in the matrix is ​​expressed as:

[0081]

[0082] Where N represents the current water consumption node;

[0083] 3-2) Using the time window method to simultaneously calculate m and d, formula (6) forms a linear m×(m-1)d-dimensional linear regression prediction equation:

[0084]

[0085] 3-3) Calculating the linear regression prediction equation parameters a0 and A in step 3-2) using the autoregressive model;

[0086] 3-4) Extract local features f i 2 ;

[0087] According to the linear regression prediction equation calculated in step 3-2) Composing new delay variables

[0088] This variable is the local characteristic of the enterprise’s water consumption;

[0089] 4) Obtain the water use characteristics of a single enterprise:

[0090] Construct an independent potential expression space for each enterprise’s water consumption and generate the corresponding feature set f i 1 , f i 2 The feature extraction of each enterprise's water consumption is the concatenation of the enterprise's global and local features, expressed as

[0091] f i =[f i 1 , f i 2 ] (9)

[0092] For each enterprise’s water use, the f i1 With f i 2 The association between features is realized by: i 1 After a linear convolution module W1, it is weighted and soft-max normalized, and then combined with f i 2 Multiply to get the associated f i 2′ Similarly, f i 2 After a linear convolution module W2, weighted and soft-max normalized, and combined with f i 2 Multiply to get the associated f i 2′ Get the associated f i 1′ , the specific implementation process is:

[0093] f i 1 ′=f i 1 Softmax((W1·f i 2 ) (10)

[0094] f i 2 ′=f i 2 Softmax((W1·f i 1 ) (11)

[0095] The water use characteristics of a single enterprise are expressed as:

[0096] f i ′=[f i 1 ′+f i 1 ,f i 2 ′+f i 2 ] (12)

[0097] 5) Methods for judging abnormal water use in a single enterprise:

[0098] The water consumption of a single enterprise is f i ' Input the last convolutional layer of the LSTM model in step 2) for the water consumption of a single enterprise to predict the water consumption of a single enterprise, and use the difference between the predicted water consumption and the actual water consumption to determine whether the water consumption is abnormal:

[0099] If the difference is lower than 20% of the predicted value, the water consumption is judged to be normal, otherwise it is judged to be abnormal.

[0100] Embodiment 2,

[0101] The method described in Example 1 also includes a method for determining that the total water consumption of all enterprises in a specific area is abnormal:

[0102] The total water consumption characteristics of all enterprises in a specific area are given by the water consumption characteristics of each enterprise involved, f i ′ performs feature splicing operation; and inputs the total water consumption feature after feature splicing into the last convolutional layer of the LSTM model in step 2) for water consumption in a specific area to predict the total enterprise water consumption, and uses the difference between the predicted water consumption and the actual water consumption to determine whether the water consumption is abnormal: if the difference is less than 20% of the predicted value, the water consumption is judged to be normal, otherwise the water consumption is judged to be abnormal.

Claims

1. A method for monitoring and warning abnormal industrial water use in enterprises in a specific area, characterized in that: include: 1) Data records of water consumption of each enterprise in a specific area over a fixed period of time in the past: Assuming that the number of enterprise units in a specific area is M, the water consumption of the i-th enterprise in a fixed period of time in the past is recorded as: In formula (1), p is the total number of acquisition nodes within the fixed period of time; 2) A corresponding global model is constructed according to the water consumption of each enterprise in the region. The process of extracting the global characteristics of enterprise water consumption using the LSTM model is as follows: 2-1) Construct a data matrix for the water consumption of each enterprise in the region. The rows of the matrix represent the water consumption of each collection node of a single enterprise, and the columns represent all enterprises in the region; 2-2) Normalize the data matrix to obtain a normalized value Map it to the (0, 1) interval. The specific implementation process is: In formula (2), The minimum water consumption collected by the collection node; The maximum water consumption collected by the collection node; 2-3) Construct an LSTM model to predict the daily water consumption of a single enterprise and a specific area: The penultimate convolutional layer of the LSTM model is connected to two parallel convolutional layers, which are the water consumption prediction for a single enterprise and the water consumption prediction for a specific area. 2-4) LSTM model training and model use: According to the existing normalized data matrix Use the water consumption in different periods as training data samples, and the water consumption of the next day as labels, and send them to the LSTM model constructed in step 2-3) for training; the loss function of the model is the square of the difference between the predicted value and the true value. When the loss function no longer decreases, the optimal model is obtained; 2-5) Extract the global feature f of each enterprise’s water consumption in the LSTM model i 1 , which is obtained by extracting the output of the penultimate convolutional layer in the LSTM model; 3) Use nonlinear phase space reconstruction to build a local model for each enterprise: 3-1) For each enterprise’s water consumption series Using the phase space reconstruction theory, it is reconstructed into a matrix with an embedding dimension of m and a sampling time interval of d. The vector in the matrix is ​​expressed as: Where N represents the current water consumption node; 3-2) Using the time window method to simultaneously calculate m and d, formula (6) forms a linear m×(m-1)d-dimensional linear regression prediction equation: 3-3) Calculating the linear regression prediction equation parameters a0 and A in step 3-2) using the autoregressive model; 3-4) Extract local features f i 2 : According to the linear regression prediction equation calculated in step 3-2) Composing new delay variables This variable is the local characteristic of the enterprise’s water consumption; 4) Obtain the water use characteristics of a single enterprise: Construct an independent potential expression space for each enterprise’s water consumption and generate the corresponding feature set f i 1 ,f i 2 The feature extraction of each enterprise's water consumption is the concatenation of the enterprise's global and local features, expressed as f i =[f i 1 ,f i 2 ] (9) For each enterprise’s water use, the f i 1 With f i 2 The association between features is realized by: i 1 After a linear convolution module W1, it is weighted and soft-max normalized, and then combined with f i 2 Multiply to get the associated f i 2′ Similarly, f i 2 After a linear convolution module W2, weighted and soft-max normalized, and combined with f i 2 Multiply to get the associated f i 2′ Get the associated f i 1′ , the specific implementation process is: f i 1' =f i 1 ·Softmax(W1·f i 2 ) (10) f i 2' =f i 2 ·Softmax(W1·f i 1 ) (11) The water use characteristics of a single enterprise are expressed as: f i ′=[f i 1′ +f i 1 ,f i 2′ +f i 2 ] (12) 5) Methods for judging abnormal water use in a single enterprise: The water consumption of a single enterprise is f i ' Input the last convolutional layer of the LSTM model in step 2) for the water consumption of a single enterprise to predict the water consumption of a single enterprise, and use the difference between the predicted water consumption and the actual water consumption to determine whether the water consumption is abnormal: If the difference is lower than 20% of the predicted value, the water consumption is judged to be normal, otherwise it is judged to be abnormal.

2. According to claim 1, a method for monitoring and early warning of abnormal industrial water use in enterprises in a specific area is characterized in that: The method also includes a method for determining that the total water consumption of all enterprises in a specific area is abnormal: The total water consumption characteristics of all enterprises in a specific area are given by the water consumption characteristics of each enterprise involved, f i 'Perform feature splicing operation; and input the total water consumption feature after feature splicing into the last convolutional layer of the LSTM model in step 2) for water consumption in a specific area to predict the total enterprise water consumption, and use the difference between the predicted water consumption and the actual water consumption to determine whether the water consumption is abnormal: If the difference is lower than 20% of the predicted value, the water consumption is judged to be normal, otherwise it is judged to be abnormal.

Citation Information

Cited By

  • Analysis, prediction and early warning method and system for abnormal water consumption of water meter

    CN121745902A