A gas concentration prediction method considering wind impact

By constructing a time window and calculating the periodic law of gas concentration, the importance of time dimension and the degree of influence of wind, and building a prediction model, the network pressure and accuracy problems in gas concentration data transmission are solved, and more efficient data transmission is achieved.

CN118707049BActive Publication Date: 2024-11-05北京云摩科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411194602.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-05
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

In the existing gas concentration data transmission, due to the excessive amount of data, the network broadband pressure is too large and the storage demand increases. The accuracy of the LSTW model prediction is low, which cannot guarantee the accuracy of the sampling rate, affecting data transmission.

Method used

By obtaining the historical gas concentration of the leakage monitoring point and the gas concentration difference on both sides, a time window is constructed, the periodicity degree, time dimension importance and wind influence of the gas concentration are calculated, the data weighted value is obtained, the prediction model is constructed, and the current time window is calculated. and data transmission.

Benefits of technology

It improves the accuracy of sampling rate calculation, ensures effective transmission of important data, reduces the amount of data, and improves transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707049B_ABST
    Figure CN118707049B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of digital information transmission technology, and specifically to a method for predicting gas concentration with comprehensive wind influence, including: obtaining the periodic regularity of the gas concentration at each historical moment according to the fluctuation difference of the same gas concentration at different historical moments; obtaining the time dimension importance of each historical moment according to the change of the gas concentration at adjacent historical moments; obtaining the wind influence degree at each historical moment according to the difference of the gas concentration on both sides of the leakage monitoring point; thereby obtaining the data weighted value of each historical moment and constructing a prediction model according to the interval between each historical moment and the initial moment of the time window in which it is located, obtaining the predicted gas concentration of the current time window, and calculating the sampling rate of the current time window in combination with the actual gas concentration to sample the data and then transmit it. The present invention predicts the current gas concentration by the gas concentration at important historical moments, thereby determining the sampling rate of the current time window for important data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of digital information transmission, and in particular to a method for predicting gas concentration with comprehensive wind impact. Background Art

[0002] In the long-term environmental management and monitoring of factories, it is necessary to install MEMS sensors to monitor gas concentrations and transmit data. However, during the transmission process, due to the excessive amount of gas concentration data, it will cause excessive pressure on network bandwidth, increased storage requirements and other transmission difficulties. Therefore, it is necessary to select some data for transmission.

[0003] For all data collected by the MEMS sensor, different sampling rates can be selected for different time windows to reduce the transmission frequency and data volume; the LSTW model can predict the current data through historical data, and determine the sampling rate after comparing it with the actual predicted value. However, due to the different importance of different time points, the prediction accuracy is low, and the accuracy of the sampling rate cannot be guaranteed for data transmission, so further optimization is needed. Summary of the invention

[0004] The present invention provides a gas concentration prediction method considering wind power influence to solve the existing problems.

[0005] A method for predicting gas concentration based on wind power influence of the present invention adopts the following technical solution:

[0006] An embodiment of the present invention provides a method for predicting gas concentration with comprehensive wind impact, the method comprising the following steps:

[0007] Obtain the gas concentration of the leakage monitoring point at historical moments, as well as the gas concentration on both sides of the leakage monitoring point at the same moment, and construct several time windows of the leakage monitoring point;

[0008] According to the time interval fluctuation difference of the same gas concentration at different historical moments, the periodic regularity of the gas concentration at each historical moment is obtained; according to the change of the gas concentration at adjacent historical moments, the time dimension importance of each historical moment is obtained;

[0009] According to the difference in gas concentration on both sides of the leakage monitoring point, the degree of wind influence at each historical moment is obtained;

[0010] According to the wind impact degree and time dimension importance at each historical moment, as well as the interval between each historical moment and the initial moment of the time window, the data weighted value of each historical moment is obtained; according to the data weighted value of each historical moment, a prediction model is constructed for the gas concentration at each historical moment to obtain the predicted gas concentration of the current time window;

[0011] The sampling rate of the current time window is calculated according to the predicted gas concentration and the actual gas concentration of the current time window; the data of the current time window is sampled and transmitted according to the sampling rate of the current time window.

[0012] Furthermore, the step of obtaining the periodic regularity of the gas concentration at each historical moment includes the following specific steps:

[0013]

[0014] in, Indicates the periodic regularity of the gas concentration at the Qth historical moment, represents an exponential function with a natural constant as the base, h represents the number of moments with the same gas concentration as the Qth historical moment, represents the i-th moment with the same gas concentration as the Q-th historical moment, represents the i-1th moment with the same gas concentration as the Qth historical moment, Indicates the i+1th moment with the same gas concentration as the Qth historical moment.

[0015] Furthermore, the specific steps of obtaining the time dimension importance of each historical moment are as follows:

[0016]

[0017] in, Indicates the importance of the time dimension of the Qth historical moment, represents the gas concentration at the Qth historical moment, represents the gas concentration at the Q-1th historical moment, represents the gas concentration at the Q+1th historical moment, Indicates the periodic regularity of the gas concentration at the Qth historical moment, represents an exponential function with a natural constant as base, is a linear normalization function.

[0018] Furthermore, the step of obtaining the wind impact degree at each historical moment includes the following specific steps:

[0019]

[0020] in, Indicates the wind impact at the Qth historical moment, MAX indicates the maximum value. represents the wind deviation index at the Q-1th historical moment, represents the wind deviation index at the Q+1th historical moment, Represents the wind deviation index at the Qth historical moment.

[0021] Furthermore, the specific method of obtaining the wind deviation index is as follows:

[0022]

[0023] in, represents the wind deviation index at the Qth historical moment, k represents the number of sensor pairs set on both sides of the leakage monitoring point, It represents the gas concentration difference between the jth pair of sensors on both sides of the leakage monitoring point at the Qth historical moment.

[0024] Furthermore, the step of obtaining the weighted value of the data at each historical moment includes the following specific steps:

[0025]

[0026] in, represents the spatiotemporal importance of the Qth historical moment, represents the data weighted value of the Qth historical moment of the LSTW model, represents an exponential function with a natural constant as base, represents the Qth historical moment, Indicates the initial moment of the time window where the Qth historical moment is located.

[0027] Furthermore, the specific method of obtaining the spatiotemporal importance is as follows:

[0028]

[0029] in, represents the spatiotemporal importance of the Qth historical moment, represents an exponential function with a natural constant as base, represents the degree of wind impact at the Qth historical moment, Indicates the time dimension importance of the Qth historical moment.

[0030] Furthermore, the step of obtaining the predicted gas concentration in the current time window includes the following specific steps:

[0031] The gas concentration at each historical moment is weighted according to the data weight value at each historical moment, and the weighted gas concentration at each historical moment is used as the data set of the input sequence to train the LSTM model to obtain the predicted gas concentration in the current time window.

[0032] Furthermore, the specific steps of calculating the sampling rate of the current time window are as follows:

[0033]

[0034] in, represents the sampling rate of the current time window, Indicates the selection of the minimum value, m indicates the number of data in the current time window, represents the gas concentration at the vth moment in the current time window, It represents the predicted gas concentration at the vth moment in the current time window, and a is the preset sampling parameter.

[0035] The beneficial effects of the technical solution of the present invention are: according to the fluctuation difference of the same gas concentration at different historical moments, the periodic regularity of the gas concentration at each historical moment is obtained, and the data importance of the periodic regularity is lower; according to the change of the gas concentration at adjacent historical moments, the time dimension importance of each historical moment is obtained, which is expressed in terms of the importance in time; according to the difference in gas concentration on both sides of the leakage monitoring point, the wind influence degree at each historical moment is obtained, which expresses the influence of wind on the gas concentration; thus, according to the interval between each historical moment and the initial moment of the time window, the data weighted value of each historical moment is obtained and a prediction model is constructed to obtain the predicted gas concentration of the current time window, and the sampling rate of the current time window is calculated in combination with the actual gas concentration, thereby improving the accuracy of the sampling rate calculation, and the data is transmitted after sampling, so as to effectively transmit the important data of the current time window. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 The present invention is a flow chart of the steps of a method for predicting gas concentration taking into account wind impact. DETAILED DESCRIPTION

[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, characteristics and effects of a gas concentration prediction method based on the comprehensive wind influence proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0040] The specific scheme of the method for predicting gas concentration with comprehensive wind impact provided by the present invention is described in detail below with reference to the accompanying drawings.

[0041] See also Figure 1 , which shows a flow chart of the steps of a method for predicting gas concentration under comprehensive wind influence provided by an embodiment of the present invention, the method comprising the following steps:

[0042] Step S001: Obtain the gas concentration of each sensor at each moment and construct a time window.

[0043] The purpose of this embodiment is to predict the current gas concentration by predicting the gas concentration at important moments in the historical moments, so as to determine the sampling rate of the current data to transmit important data. Therefore, a MEMS sensor is installed at the leakage monitoring point to monitor the concentration of the leaked gas, and several pairs of MEMS sensors are symmetrically installed on both sides of the leakage monitoring point to monitor the gas concentration, and the data collected by each sensor is stored in the memory; in this embodiment, 4 pairs of sensors are installed on both sides of the leakage monitoring point with an interval of 10 cm. The collection frequency of each sensor is once per minute, and the collection time is one week. Each hour is regarded as a time window, and all moments before the time window where the current moment is located are recorded as historical moments.

[0044] Step S002: According to the time interval fluctuation difference of the same gas concentration at different historical moments, the periodic regularity of the gas concentration at each historical moment is obtained; according to the change of the gas concentration at adjacent historical moments, the time dimension importance of each historical moment is obtained.

[0045] It should be noted that when predicting the gas concentration in the current time window by training the LSTW model, it is necessary to weight the important data moments to improve the accuracy of the prediction, so as to determine the sampling rate of the transmitted data. Therefore, the importance of the data at all moments is obtained first. Since factory emissions are cyclical, the less consistent with the cycle data is more important, and in the case of inconsistent with the cycle, the higher the leakage concentration, the more violent the fluctuation, the more important it is in the time dimension, and the more important it is for the prediction results.

[0046] Specifically, the calculation method of the periodic regularity of the gas concentration at the Qth moment is:

[0047]

[0048] in, Indicates the periodic regularity of the gas concentration at the Qth historical moment, represents an exponential function with a natural constant as the base, h represents the number of moments with the same gas concentration as the Qth historical moment, represents the i-th moment with the same gas concentration as the Q-th historical moment, represents the i-1th moment with the same gas concentration as the Qth historical moment, Indicates the i+1th moment with the same gas concentration as the Qth historical moment.

[0049] represents the fluctuation difference between the i-th moment and the left and right sides with the same gas concentration as the Q-th historical moment, It represents the average value of the fluctuation differences of all moments with the same gas concentration at the Qth historical moment. The smaller it is, the more similar the differences between adjacent moments are, and the more periodic the gas concentration at the Qth historical moment is.

[0050] It should be further explained that the LSTM model performs better in predicting periodic data. Therefore, the more periodic the data is, the less important it is. When the gas concentration volatility between adjacent moments of historical data is higher, the more likely it is that there will be a risk of excessive concentration leakage, and the data at this moment is more important.

[0051] Specifically, the calculation method of the time dimension importance at the Qth moment is:

[0052]

[0053] in, Indicates the importance of the time dimension of the Qth historical moment, represents the gas concentration at the Qth historical moment, represents the gas concentration at the Q-1th historical moment, represents the gas concentration at the Q+1th historical moment, Indicates the periodic regularity of the gas concentration at the Qth historical moment, represents an exponential function with a natural constant as base, is a linear normalization function.

[0054] The greater the concentration volatility at the Qth historical moment in the historical data, the more likely it is that an over-concentration leakage hazard may occur, and the more important the data at the Qth historical moment is. The smaller the time, the less periodic the data is and the higher its importance.

[0055] Step S003: Obtain the degree of wind influence at each historical moment according to the difference in gas concentration on both sides of the leakage point.

[0056] It should be noted that due to the different environments where the leakage point is located, natural wind may affect the gas concentration at the leakage point, thereby affecting the prediction results and data transmission; for the same moment, in the absence of wind, the sensors at the leakage monitoring point can directly monitor the gas leakage, and the gas concentration monitored by the symmetrical sensors on both sides of the leakage monitoring point is scattered from the monitoring point. The gas concentration leaked on both sides is basically equal, but when there is wind, the gas concentration detected on both sides will be different. Therefore, the impact of wind on gas concentration is obtained based on the monitoring data of the sensors on both sides.

[0057] Specifically, the calculation method of the wind deviation index at the Qth historical moment is:

[0058]

[0059] in, represents the wind deviation index at the Qth historical moment, k represents the number of sensor pairs set on both sides of the leakage monitoring point, It represents the gas concentration difference between the jth pair of sensors on both sides of the leakage monitoring point at the Qth historical moment.

[0060] It represents the difference in gas concentration detected by each pair of sensors on both sides of the monitoring point at the Qth historical moment. The larger the difference, the more different the gas concentrations on both sides are, and the greater the degree of deviation caused by the wind.

[0061] It should be further explained that when the wind stops, the gas will move in the original direction, and the speed of movement will gradually decrease until it stops. Therefore, the gas deviation caused by the wind is continuous, and there is a deviation caused by the wind at consecutive moments. If only a single moment reflects the wind deviation, it may be noise data. Therefore, the maximum wind deviation degree of adjacent moments is used to correct the wind deviation index at each moment to obtain the degree of wind influence.

[0062] Furthermore, the calculation method of the wind impact degree at the Qth historical moment is:

[0063]

[0064] in, Indicates the wind impact at the Qth historical moment, MAX indicates the maximum value. represents the wind deviation index at the Q-1th historical moment, represents the wind deviation index at the Q+1th historical moment, Represents the wind deviation index at the Qth historical moment.

[0065] It indicates the degree of influence of the adjacent moments of the Qth historical moment. Since the gas deviation caused by wind is continuous, the higher the wind deviation index of the adjacent moments of the Qth historical moment, the greater the degree of influence on the Qth moment.

[0066] Step S004: Obtain the data weighted value at each moment according to the wind influence degree and time dimension importance at each historical moment, as well as the influence of time distance; construct a prediction model after weighting each data according to the data weighted value at each historical moment to obtain the predicted gas concentration in the current time window.

[0067] It should be noted that, under the influence of wind, the importance of data that does not conform to the cycle is affected, which increases the importance of moments that may not be very important. Therefore, when the wind influence is high, the importance of this moment is reduced to reduce the impact of wind.

[0068] The vector weighting algorithm can help improve the performance of the LSTM model in time series data prediction. Before training the LSTM model, the vector weighting algorithm can be used to weight the input sequence. Different weights are assigned according to the importance of the gas concentration at each moment, which helps the model better focus on important moments and thus improve prediction accuracy.

[0069] Specifically, the calculation method of the spatiotemporal importance of the Qth historical moment is:

[0070]

[0071]

[0072] in, represents the spatiotemporal importance of the Qth historical moment, represents the data weighted value of the Qth historical moment of the LSTW model, represents an exponential function with a natural constant as base, represents the degree of wind impact at the Qth historical moment, Indicates the importance of the time dimension of the Qth historical moment, represents the Qth historical moment, Indicates the initial moment of the time window where the Qth historical moment is located.

[0073] Indicates the importance of the impact of time distance on the data. The closer the distance, the greater the impact. However, the importance of data at distant moments may be higher. Therefore, when the spatiotemporal importance of the Qth historical moment is higher, the data at the Qth historical moment is more important and the data weighting value is larger.

[0074] The gas concentration at each historical moment is weighted according to the data weight value at each historical moment, and the weighted gas concentration at each historical moment is used as the data set of the input sequence to train the LSTM model to obtain the predicted gas concentration in the current time window.

[0075] Step S005: Calculate the sampling rate of the current time window according to the predicted gas concentration and the actual gas concentration of the current time window; and transmit the data of the current time window after sampling.

[0076] It should be noted that when determining the sampling rate of the current time window for data transmission, the predicted gas concentration value is compared with the actual value of the gas concentration. If the difference between the actual gas concentration and the predicted gas concentration is larger, the data is more important and more necessary to sample, and the data at this time needs to be transmitted.

[0077] Specifically, the sampling rate of the current time window is calculated as follows:

[0078]

[0079] in, represents the sampling rate of the current time window, Indicates the selection of the minimum value, m indicates the number of data in the current time window, represents the gas concentration at the vth moment in the current time window, It represents the predicted gas concentration at the vth moment in the current time window, a is a preset sampling parameter, and this embodiment is described by taking a=100% as an example, and other embodiments may set other values, which are not specifically limited in this embodiment.

[0080] Compare and analyze the actual data in the current time window with the predicted data. If the difference between the actual data and the predicted data is Relative to actual data The larger it is, the higher the sampling rate should be.

[0081] The data in the current time window is randomly sampled according to the sampling rate of the current time window, and the randomly sampled data is transmitted, thereby reducing the amount of transmitted data.

[0082] is an exponential function with a natural constant as the base. To present the inverse proportional relationship and normalization processing, the implementer can set the inverse proportional function and normalization function according to the actual situation. Adjust the value of the preset exponential function to prevent the exponential function from approaching zero too early.

[0083] So far, the present invention is completed.

[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for predicting gas concentration considering wind power, characterized in that: The method comprises the following steps: Obtain the gas concentration of the leakage monitoring point at historical moments, as well as the gas concentration on both sides of the leakage monitoring point at the same moment, and construct several time windows of the leakage monitoring point; According to the time interval fluctuation difference of the same gas concentration at different historical moments, the periodic regularity of the gas concentration at each historical moment is obtained; according to the change of the gas concentration at adjacent historical moments, the time dimension importance of each historical moment is obtained; According to the difference in gas concentration on both sides of the leakage monitoring point, the degree of wind influence at each historical moment is obtained; According to the wind impact degree and time dimension importance at each historical moment, as well as the interval between each historical moment and the initial moment of the time window, the data weighted value of each historical moment is obtained; according to the data weighted value of each historical moment, a prediction model is constructed for the gas concentration at each historical moment to obtain the predicted gas concentration of the current time window; The sampling rate of the current time window is calculated according to the predicted gas concentration and the actual gas concentration of the current time window; the data of the current time window is sampled and transmitted according to the sampling rate of the current time window; The specific steps of obtaining the periodic regularity of the gas concentration at each historical moment are as follows: in, Indicates the periodic regularity of the gas concentration at the Qth historical moment, represents an exponential function with a natural constant as the base, h represents the number of moments with the same gas concentration as the Qth historical moment, represents the i-th moment with the same gas concentration as the Q-th historical moment, represents the i-1th moment with the same gas concentration as the Qth historical moment, represents the i+1th moment with the same gas concentration as the Qth historical moment; The specific steps of obtaining the time dimension importance of each historical moment are as follows: in, Indicates the importance of the time dimension of the Qth historical moment, represents the gas concentration at the Qth historical moment, represents the gas concentration at the Q-1th historical moment, represents the gas concentration at the Q+1th historical moment, Indicates the periodic regularity of the gas concentration at the Qth historical moment, represents an exponential function with a natural constant as base, is a linear normalization function; The specific steps of obtaining the wind impact degree at each historical moment are as follows: in, Indicates the wind impact at the Qth historical moment, MAX indicates the maximum value. represents the wind deviation index at the Q-1th historical moment, represents the wind deviation index at the Q+1th historical moment, represents the wind deviation index at the Qth historical moment; The specific method of obtaining the wind deviation index is as follows: in, represents the wind deviation index at the Qth historical moment, k represents the number of sensor pairs set on both sides of the leakage monitoring point, It represents the difference in gas concentration between the jth pair of sensors on both sides of the leakage monitoring point at the Qth historical moment; The specific steps of obtaining the data weighted value at each historical moment are as follows: in, represents the spatiotemporal importance of the Qth historical moment, represents the data weighted value of the Qth historical moment of the LSTW model, represents an exponential function with a natural constant as base, represents the Qth historical moment, Indicates the initial moment of the time window where the Qth historical moment is located; The specific method of obtaining the spatiotemporal importance is as follows: in, represents the spatiotemporal importance of the Qth historical moment, represents an exponential function with a natural constant as base, represents the degree of wind impact at the Qth historical moment, Indicates the time dimension importance of the Qth historical moment; The specific steps of obtaining the predicted gas concentration in the current time window are as follows: The gas concentration at each historical moment is weighted according to the data weight value at each historical moment, and the weighted gas concentration at each historical moment is used as the data set of the input sequence to train the LSTM model to obtain the predicted gas concentration in the current time window; The specific steps of calculating the sampling rate of the current time window are as follows: in, Indicates the sampling rate of the current time window, Indicates the selection of the minimum value, m indicates the number of data in the current time window, represents the gas concentration at the vth moment in the current time window, It represents the predicted gas concentration at the vth moment in the current time window, and a is the preset sampling parameter.

2. A method for predicting gas concentration based on wind power impact according to claim 1, characterized in that: The specific steps of sampling the data in the current time window and transmitting it include the following: The data of the current time window is randomly sampled according to the sampling rate of the current time window, and the randomly sampled data is transmitted.