Intelligent environmental protection monitoring and analysis system and method for environmental pollution sources based on the Internet of Things
By setting up IoT devices and LSTM sensing units in the environmental pollution source monitoring area, intelligent prediction of future pollution concentration is achieved, solving the problem of inability to predict pollution concentration in existing technology, and improving the accuracy and energy efficiency of the monitoring system.
Patent Information
- Application Number
- CN202410842235.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing technology cannot predict the future pollution concentration of environmental pollution sources and lacks an intelligent and automated environmental monitoring system.
An intelligent environmental protection monitoring and analysis system for environmental pollution sources based on the Internet of Things is adopted. By dividing the monitoring area, setting up environmental sensors and Internet of Things equipment, the historical LSTM sensing unit and the real-time LSTM sensing unit are used to predict future pollution concentrations, and the fully connected layer and correction unit are used to improve Forecast accuracy.
It achieves accurate prediction of environmental pollution sources, improves prediction accuracy, and saves transmission energy through adaptive networking.
Smart Images

Figure CN118398111B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of environmental monitoring, and in particular to an intelligent environmental protection monitoring and analysis system and method for environmental pollution sources based on the Internet of Things. Background Art
[0002] Traditional environmental monitoring methods often rely on manual sampling and laboratory analysis, which is not only time-consuming and labor-intensive, but also difficult to achieve real-time and continuous monitoring. In order to more effectively monitor and manage environmental pollution sources and protect the ecological environment and human health, an intelligent and automated environmental monitoring system is urgently needed. As an emerging information and communication technology, the Internet of Things technology can realize the intelligent interconnection between objects and objects, and between objects and people. Applying the Internet of Things technology to the field of environmental monitoring can realize real-time, online, and remote monitoring and analysis of environmental pollution sources.
[0003] Existing technical solutions for monitoring and analyzing pollution only analyze the degree of pollution based on the concentration of pollutants and are unable to predict future pollution concentrations. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides an intelligent environmental monitoring and analysis system and method for environmental pollution sources based on the Internet of Things, which solves the existing problem of being unable to predict future pollution concentrations.
[0005] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: an intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things, comprising: a division unit, multiple environmental sensors, multiple Internet of Things devices, a monitoring terminal, a historical LSTM perception unit, a real-time LSTM perception unit, a fully connected layer and a correction unit;
[0006] The division unit is used to divide the monitoring area into monitoring sub-areas, and setting an environmental sensor and an IoT device in each monitoring sub-area, where N is a positive integer greater than 3;
[0007] The environmental sensor is used to collect pollution concentration;
[0008] Each of the IoT devices is used to form a local area network to transmit the pollution concentration to the monitoring end;
[0009] At the monitoring end, the historical LSTM perception unit is used to predict the first initial pollution concentration at a future moment according to the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence, and the real-time LSTM perception unit is used to predict the second initial pollution concentration at a future moment according to the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence;
[0010] The fully connected layer is used to obtain a predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration;
[0011] The correction unit is used to correct the predicted pollution concentration with prediction deviation to obtain the corrected pollution concentration of the monitoring sub-area.
[0012] The beneficial effects of the present invention are as follows: the present invention divides the monitoring area into A monitoring sub-area is configured, and an environmental sensor and an Internet of Things device are set in each monitoring sub-area. An environmental sensor is used to collect pollution concentration, and an Internet of Things device is used for local area network communication, so that all data are transmitted back to the monitoring end through the local area network. At the monitoring end, a historical LSTM perception unit is used to process two historical data, perceive the change characteristics of the historical data, and obtain the first initial pollution concentration at the future moment. A real-time LSTM perception unit is used to process two real-time data, perceive the change characteristics of the real-time data, and obtain the second initial pollution concentration at the future moment. A fully connected layer is used to obtain the predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration, thereby improving the accuracy of the prediction. At the same time, a correction unit is used to correct the predicted pollution concentration with prediction deviation, thereby further improving the accuracy of the prediction.
[0013] Furthermore, each of the IoT devices forms a local area network, and transmits the pollution concentration to the monitoring end specifically as follows: randomly select one unclassified IoT device as a candidate device; calculate the distance between other unclassified IoT devices and the candidate device, and add the IoT devices whose distance is less than the distance threshold to the class where the candidate device is located; determine whether the number of IoT devices in the class is greater than the first number threshold, if so, retain the class, and select new unclassified IoT devices as candidate devices to construct the next class until the number of classes no longer increases, if not, dissolve the class, and select new unclassified IoT devices as candidate devices to construct the next class; form a local area network with IoT devices in a class, select an IoT device from the local area network as a forwarding center, collect the pollution concentrations sent by the IoT devices in the class through the forwarding center, and transmit them to the monitoring end.
[0014] The beneficial effect of the above-mentioned further scheme is: the present invention realizes adaptive networking of various IoT devices, and classifies IoT devices whose distances meet a distance threshold into a class according to the distance between the IoT devices. When the number of IoT devices in the class is greater than a first number threshold, the class is retained, and the class with a small number of IoT devices in the class is disbanded, so that the number of classes is small, the forwarding centers are small, and transmission energy is saved.
[0015] Furthermore, the historical LSTM perception unit and the real-time LSTM perception unit both include: a first LSTM layer, a second LSTM layer, a first feature enhancement layer, a second feature enhancement layer, a first normalization layer, a second normalization layer, a fusion layer and an output layer;
[0016] The input end of the first LSTM layer serves as the first input end of the historical LSTM perception unit or the real-time LSTM perception unit;
[0017] The input end of the second LSTM layer serves as the second input end of the historical LSTM perception unit or the real-time LSTM perception unit;
[0018] The input end of the first feature enhancement layer is connected to the output end of the first LSTM layer, and the output end of the first feature enhancement layer is connected to the input end of the first normalization layer;
[0019] The input end of the second feature enhancement layer is connected to the output end of the second LSTM layer, and the output end of the second feature enhancement layer is connected to the input end of the second normalization layer;
[0020] The input end of the fusion layer is connected to the output end of the first normalization layer and the output end of the second normalization layer respectively, and the output end thereof is connected to the input end of the output layer;
[0021] The output end of the output layer serves as the output end of the historical LSTM perception unit or the real-time LSTM perception unit;
[0022] In the historical LSTM perception unit, the input end of the first LSTM layer is used to input the historical pollution concentration sequence, and the input end of the second LSTM layer is used to input the historical pollution concentration fluctuation sequence;
[0023] In the real-time LSTM perception unit, the input end of the first LSTM layer is used to input the real-time pollution concentration sequence, and the input end of the second LSTM layer is used to input the real-time pollution concentration fluctuation sequence.
[0024] The beneficial effects of the above-mentioned further scheme are as follows: the present invention adopts the first LSTM layer to process the historical pollution concentration sequence and the real-time pollution concentration sequence, and extracts the pollution concentration characteristics. The present invention adopts the second LSTM layer to process the historical pollution concentration fluctuation sequence and the real-time pollution concentration fluctuation sequence, and extracts the historical pollution concentration change characteristics. The first feature enhancement layer performs feature enhancement on the output of the first LSTM layer, and the second feature enhancement layer performs feature enhancement on the output of the second LSTM layer. The two normalization layers normalize the enhanced features, the fusion layer performs feature fusion, and the output layer predicts the initial pollution concentration based on the fused feature values, thereby realizing the comprehensive concentration data itself and the concentration data changes, and predicting the future initial pollution concentration.
[0025] Furthermore, the process of obtaining the historical pollution concentration sequence is as follows: according to the time t at the future moment, the pollution concentration at the time t of multiple historical days in the same monitoring sub-area is extracted to construct the historical pollution concentration sequence, wherein t is a specified time point;
[0026] The process of obtaining the pollution concentration fluctuation sequence is as follows: in multiple historical days, the pollution concentration at time t on the previous day is subtracted from the pollution concentration at time t on the next day in the same monitoring sub-area to obtain the pollution concentration difference of multiple adjacent days, and the pollution concentration difference of multiple adjacent days is constructed as a historical pollution concentration fluctuation sequence;
[0027] The process of obtaining the real-time pollution concentration sequence is as follows: extracting the pollution concentration in the latest period of time in the same monitoring sub-area to construct a real-time pollution concentration sequence;
[0028] The process of obtaining the real-time pollution concentration fluctuation sequence is as follows: extracting the pollution concentration in the latest period of time in the same monitoring sub-area, subtracting the pollution concentration at the next moment from the pollution concentration at the previous moment, obtaining the difference in pollution concentration at each adjacent moment, and constructing the real-time pollution concentration fluctuation sequence.
[0029] The beneficial effect of the above further scheme is that the historical pollution concentration sequence, historical pollution concentration fluctuation sequence, real-time pollution concentration sequence and real-time pollution concentration fluctuation sequence processed by the historical LSTM perception unit and the real-time LSTM perception unit of the present invention are derived from the same monitoring sub-area. The present invention extracts the pollution concentration at time t of many historical days in the monitoring sub-area according to the time t of the future moment to form a historical pollution concentration sequence, and then uses the pollution concentration at time t of the previous day minus the pollution concentration at time t of the next day to extract the change of pollution concentration on adjacent days, and construct a historical pollution concentration fluctuation sequence, thereby combining the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence to predict the first initial pollution concentration.
[0030] The present invention extracts the pollution concentration in the current latest period of time in the same monitoring sub-area, constructs a real-time pollution concentration sequence, subtracts the pollution concentration at a later moment from the pollution concentration at a previous moment, obtains the change of pollution concentration at adjacent moments, and constructs a real-time pollution concentration fluctuation sequence, thereby comprehensively combining the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence to predict the second initial pollution concentration.
[0031] Furthermore, the expressions of the first feature enhancement layer and the second feature enhancement layer are both:
[0032] ,
[0033] Wherein, Y is the output of the first feature enhancement layer or the second feature enhancement layer, H is the input of the first feature enhancement layer or the second feature enhancement layer, Maxpool is the maximum pooling operation, Avgpool is the average pooling operation, It is Hadamard.
[0034] The beneficial effects of the above further scheme are as follows: the present invention adopts the maximum pooling operation to extract significant features, adopts the average pooling operation to extract the global average features, and uses the Hadamard product to realize bitwise multiplication, so as to further enhance the significant features and the global average features.
[0035] Furthermore, the expression of the fusion layer is:
[0036] ,
[0037] Among them, x k is the kth eigenvalue output by the fusion layer, x 1,k is the kth eigenvalue output by the first normalization layer, x 2,k is the kth eigenvalue output by the second normalization layer, tanh is the hyperbolic tangent activation function, ω 1,k For x 1,k The weight of b 1,k For x 1,k The bias, ω 2,k For x 2,k The weight of b 2,k For x 2,k The bias.
[0038] The beneficial effect of the above further solution is: the present invention assigns weights and biases to the eigenvalues output by the first normalization layer and the eigenvalues output by the second normalization layer, respectively, to achieve more flexible mapping and automatically adjust the fusion ratio.
[0039] Further, the correction unit includes: a historical deviation coefficient calculation module, a prediction deviation coefficient calculation module, a coefficient gap calculation module, an abnormal prediction extraction module and an abnormal correction module;
[0040] The historical deviation coefficient calculation module takes each monitoring sub-area as the center, extracts multiple historical pollution concentrations of the center and the surrounding monitoring sub-areas, and calculates the historical deviation coefficient of the center and each surrounding monitoring sub-area based on the difference between the multiple historical pollution concentrations of the center and the multiple historical pollution concentrations of the surrounding monitoring sub-areas;
[0041] The prediction deviation coefficient calculation module is used to calculate the prediction deviation coefficient of the center and each surrounding monitoring sub-area based on the difference between the predicted pollution concentration of the center and the predicted pollution concentration of the surrounding monitoring sub-areas, with each monitoring sub-area as the center;
[0042] The coefficient difference calculation module is used to calculate the absolute value of the difference between the historical deviation coefficient and the predicted deviation coefficient at the same position to obtain the deviation coefficient difference;
[0043] The abnormal prediction and extraction module is used to count the number of deviation coefficient differences of a center that are greater than a difference threshold, and when the number is greater than a second number threshold, there is a prediction deviation in the predicted pollution concentration of the monitoring sub-area at the center;
[0044] The abnormal correction module is used to correct the predicted pollution concentration with prediction deviation according to the predicted pollution concentration of the surrounding monitoring sub-area to obtain the corrected pollution concentration.
[0045] The beneficial effect of the above further solution is that the correction unit of the present invention corrects the monitoring sub-area at the center according to the predicted pollution concentration of the surrounding monitoring sub-areas.
[0046] The present invention first calculates the difference in pollution concentration between the center and the surrounding monitoring sub-areas in history to obtain the historical deviation coefficient of each monitoring sub-area between the center and the surrounding, and then calculates the predicted deviation coefficient of each monitoring sub-area between the center and the surrounding according to the difference in predicted pollution concentration between the center and the surrounding monitoring sub-areas. Therefore, there are two deviation coefficients between the center and each monitoring sub-area around the surrounding. The deviation coefficient difference is calculated based on the two deviation coefficients at the same position. For one center, the number of deviation coefficient differences greater than the difference threshold is counted. When the number is greater than the second number threshold, there is a predicted deviation in the predicted pollution concentration of the monitoring sub-area at the center. Therefore, the predicted pollution concentration of the surrounding monitoring sub-areas is used to correct it.
[0047] Furthermore, the formula for calculating the historical deviation coefficient is:
[0048] ,
[0049] Among them, γ m is the mth historical deviation coefficient, arctan is the inverse tangent function, e is a natural constant, c o,n The nth historical pollution concentration centered at m,n is the nth historical pollution concentration of the mth peripheral monitoring sub-area, m and n are positive integers, and M is the number of pollution concentrations in the selected central or peripheral monitoring sub-areas;
[0050] The formula for calculating the forecast deviation coefficient is:
[0051] ,
[0052] Among them, θ m is the mth prediction deviation coefficient, r o The predicted pollution concentration at the center, r mis the predicted pollution concentration of the surrounding m-th monitoring sub-area.
[0053] Furthermore, the expression of the abnormal correction module is:
[0054] ,
[0055] in, is the corrected pollution concentration, s is the predicted pollution concentration of the monitoring sub-area with prediction deviation, and s m is the predicted pollution concentration of the mth monitoring sub-area around the monitoring sub-area with prediction deviation, K is the number of monitoring sub-areas around the monitoring sub-area with prediction deviation, σ is the sigmoid function, and m is a positive integer.
[0056] The beneficial effect of the above further solution is that the present invention sets a proportional coefficient when correcting When the proportional coefficient is larger, the deviation of the predicted pollution concentration in the monitoring sub-area with prediction deviation is more serious. Therefore, the correction ratio of the predicted pollution concentration in the monitoring sub-area with prediction deviation is larger, and adaptive adjustment correction is achieved.
[0057] A method for an intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things, comprising the following steps:
[0058] S1. Divide the monitoring area into Monitoring sub-areas are set up, and an environmental sensor and an IoT device are set up in each monitoring sub-area;
[0059] S2, collecting pollution concentration through various environmental sensors;
[0060] S3, through various IoT devices to form a local area network, the pollution concentration is transmitted to the monitoring end;
[0061] S4. At the monitoring end, based on the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence, predict the first initial pollution concentration at a future moment;
[0062] S5. predicting a second initial pollution concentration at a future time according to the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence;
[0063] S6. Obtain a predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration;
[0064] S7. Correct the predicted pollution concentration with prediction deviation to obtain the corrected pollution concentration of the monitoring sub-area. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1This is a system block diagram of an intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things;
[0066] Figure 2 To define the monitoring area;
[0067] Figure 3 Schematic diagram of the structure of the historical LSTM perception unit and the real-time LSTM perception unit. DETAILED DESCRIPTION
[0068] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0069] Example 1: Figure 1 As shown, an intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things includes: a division unit, multiple environmental sensors, multiple Internet of Things devices, a monitoring terminal, a historical LSTM perception unit, a real-time LSTM perception unit, a fully connected layer and a correction unit;
[0070] The division unit is used to divide the monitoring area into Monitoring sub-areas, such as Figure 2 As shown, an environmental sensor and an Internet of Things device are set in each monitoring sub-area, where N is a positive integer greater than 3;
[0071] The environmental sensor is used to collect pollution concentration;
[0072] Each of the IoT devices is used to form a local area network to transmit the pollution concentration to the monitoring end;
[0073] At the monitoring end, the historical LSTM perception unit is used to predict the first initial pollution concentration at a future moment according to the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence, and the real-time LSTM perception unit is used to predict the second initial pollution concentration at a future moment according to the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence;
[0074] The fully connected layer is used to obtain a predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration;
[0075] The correction unit is used to correct the predicted pollution concentration with prediction deviation to obtain the corrected pollution concentration of the monitoring sub-area.
[0076] In this embodiment, the pollution concentration includes: carbon dioxide concentration, formaldehyde concentration, TVOC concentration and PM2.5 concentration.
[0077] In this embodiment, the monitoring area is an area in the air environment, such as Figure 2 As shown, the monitoring area is divided N-1 times horizontally and N-1 times vertically, and the result is monitoring sub-regions, i and j are the position codes of the monitoring sub-regions, for example, (i, j) is the monitoring sub-region at the i-th row and j-th column.
[0078] The IoT devices form a local area network, and transmit the pollution concentration to the monitoring end specifically as follows: randomly select one unclassified IoT device as a candidate device; calculate the distance between other unclassified IoT devices and the candidate device, and add the IoT devices whose distance is less than the distance threshold to the class where the candidate device is located; determine whether the number of IoT devices in the class is greater than the first number threshold, if so, retain the class, and select new unclassified IoT devices as candidate devices to construct the next class until the number of classes no longer increases, if not, dissolve the class, and select new unclassified IoT devices as candidate devices to construct the next class; form a local area network with IoT devices in a class, select an IoT device from the local area network as a forwarding center, collect the pollution concentrations sent by the IoT devices in the class through the forwarding center, and transmit them to the monitoring end.
[0079] The present invention realizes adaptive networking of various Internet of Things devices. According to the distance between the Internet of Things devices, the Internet of Things devices whose distances meet a distance threshold are classified into one class. When the number of Internet of Things devices in the class is greater than a first number threshold, the class is retained, and the class with a small number of Internet of Things devices in the class is dissolved, so that the number of classes is small, the number of forwarding centers is small, and transmission energy is saved.
[0080] like Figure 3 As shown, the historical LSTM perception unit and the real-time LSTM perception unit both include: a first LSTM layer, a second LSTM layer, a first feature enhancement layer, a second feature enhancement layer, a first normalization layer, a second normalization layer, a fusion layer and an output layer;
[0081] The input end of the first LSTM layer serves as the first input end of the historical LSTM perception unit or the real-time LSTM perception unit; the input end of the second LSTM layer serves as the second input end of the historical LSTM perception unit or the real-time LSTM perception unit; the input end of the first feature enhancement layer is connected to the output end of the first LSTM layer, and its output end is connected to the input end of the first normalization layer; the input end of the second feature enhancement layer is connected to the output end of the second LSTM layer, and its output end is connected to the input end of the second normalization layer; the input end of the fusion layer is respectively connected to the output end of the first normalization layer and the output end of the second normalization layer, and its output end is connected to the input end of the output layer; the output end of the output layer serves as the output end of the historical LSTM perception unit or the real-time LSTM perception unit;
[0082] In the historical LSTM perception unit, the input end of the first LSTM layer is used to input the historical pollution concentration sequence, and the input end of the second LSTM layer is used to input the historical pollution concentration fluctuation sequence;
[0083] In the real-time LSTM perception unit, the input end of the first LSTM layer is used to input the real-time pollution concentration sequence, and the input end of the second LSTM layer is used to input the real-time pollution concentration fluctuation sequence.
[0084] In the present invention, the output layer is implemented using a fully connected layer.
[0085] The present invention adopts a first LSTM layer to process historical pollution concentration sequences and real-time pollution concentration sequences, and extracts pollution concentration features. The present invention adopts a second LSTM layer to process historical pollution concentration fluctuation sequences and real-time pollution concentration fluctuation sequences, and extracts historical pollution concentration change features. The first feature enhancement layer performs feature enhancement on the output of the first LSTM layer, and the second feature enhancement layer performs feature enhancement on the output of the second LSTM layer. Two normalization layers normalize the enhanced features, and the fusion layer performs feature fusion. The output layer predicts the initial pollution concentration according to the fused feature values, thereby realizing comprehensive concentration data itself and concentration data changes, and predicting the future initial pollution concentration.
[0086] The process of obtaining the historical pollution concentration sequence is as follows: according to the time t at the future moment, the pollution concentration at the time t of multiple historical days in the same monitoring sub-area is extracted to construct the historical pollution concentration sequence, where t is the specified time point;
[0087] The process of obtaining the pollution concentration fluctuation sequence is as follows: in multiple historical days, the pollution concentration at time t on the previous day is subtracted from the pollution concentration at time t on the next day in the same monitoring sub-area to obtain the pollution concentration difference of multiple adjacent days, and the pollution concentration difference of multiple adjacent days is constructed as a historical pollution concentration fluctuation sequence;
[0088] The process of obtaining the real-time pollution concentration sequence is as follows: extracting the pollution concentration in the latest period of time in the same monitoring sub-area to construct a real-time pollution concentration sequence;
[0089] The process of obtaining the real-time pollution concentration fluctuation sequence is as follows: extracting the pollution concentration in the latest period of time in the same monitoring sub-area, subtracting the pollution concentration at the next moment from the pollution concentration at the previous moment, obtaining the difference in pollution concentration at each adjacent moment, and constructing the real-time pollution concentration fluctuation sequence.
[0090] In this embodiment, for example, the pollution situation at 3 p.m. on the 25th is predicted, the pollution concentrations at 3 p.m. on the 24th, 23rd, and 22nd are extracted, and a historical pollution concentration sequence is constructed. The pollution concentration at 3 p.m. on the 22nd is subtracted from the pollution concentration at 3 p.m. on the 23rd, and the pollution concentration at 3 p.m. on the 23rd is subtracted from the pollution concentration at 3 p.m. on the 24th, to construct a historical pollution concentration fluctuation sequence.
[0091] The historical pollution concentration sequence, historical pollution concentration fluctuation sequence, real-time pollution concentration sequence and real-time pollution concentration fluctuation sequence processed by the historical LSTM sensing unit and the real-time LSTM sensing unit of the present invention are derived from the same monitoring sub-area. The present invention extracts the pollution concentration at time t of many historical days in the monitoring sub-area according to the time t of the future moment to form a historical pollution concentration sequence, and then uses the pollution concentration at time t of the previous day minus the pollution concentration at time t of the next day to extract the change of pollution concentration on adjacent days, and construct a historical pollution concentration fluctuation sequence, thereby combining the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence to predict the first initial pollution concentration.
[0092] The present invention extracts the pollution concentration in the current latest period of time in the same monitoring sub-area, constructs a real-time pollution concentration sequence, subtracts the pollution concentration at a later moment from the pollution concentration at a previous moment, obtains the change of pollution concentration at adjacent moments, and constructs a real-time pollution concentration fluctuation sequence, thereby comprehensively combining the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence to predict the second initial pollution concentration.
[0093] The expressions of the first feature enhancement layer and the second feature enhancement layer are both:
[0094] ,
[0095] Wherein, Y is the output of the first feature enhancement layer or the second feature enhancement layer, H is the input of the first feature enhancement layer or the second feature enhancement layer, Maxpool is the maximum pooling operation, Avgpool is the average pooling operation, It is Hadamard.
[0096] The present invention adopts the maximum pooling operation to extract significant features, adopts the average pooling operation to extract global average features, and uses the Hadamard product to realize bitwise multiplication, so as to further enhance the significant features and the global average features.
[0097] The expression of the fusion layer is:
[0098] ,
[0099] Among them, x k is the kth eigenvalue output by the fusion layer, x 1,k is the kth eigenvalue output by the first normalization layer, x 2,k is the kth eigenvalue output by the second normalization layer, tanh is the hyperbolic tangent activation function, ω 1,k For x 1,k The weight of b 1,k For x 1,k The bias, ω 2,k For x 2,k The weight of b 2,k For x 2,k The bias.
[0100] The present invention assigns weights and biases to the eigenvalues output by the first normalization layer and the eigenvalues output by the second normalization layer respectively, thereby achieving more flexible mapping and automatically adjusting the fusion ratio.
[0101] The correction unit includes: a historical deviation coefficient calculation module, a prediction deviation coefficient calculation module, a coefficient gap calculation module, an abnormal prediction extraction module and an abnormal correction module;
[0102] The historical deviation coefficient calculation module takes each monitoring sub-area as the center, extracts multiple historical pollution concentrations of the center and the surrounding monitoring sub-areas, and calculates the historical deviation coefficient of the center and each surrounding monitoring sub-area based on the difference between the multiple historical pollution concentrations of the center and the multiple historical pollution concentrations of the surrounding monitoring sub-areas;
[0103] The prediction deviation coefficient calculation module is used to calculate the prediction deviation coefficient of the center and each surrounding monitoring sub-area based on the difference between the predicted pollution concentration of the center and the predicted pollution concentration of the surrounding monitoring sub-areas, with each monitoring sub-area as the center;
[0104] The coefficient difference calculation module is used to calculate the absolute value of the difference between the historical deviation coefficient and the predicted deviation coefficient at the same position to obtain the deviation coefficient difference;
[0105] The abnormal prediction and extraction module is used to count the number of deviation coefficient differences of a center that are greater than a difference threshold, and when the number is greater than a second number threshold, there is a prediction deviation in the predicted pollution concentration of the monitoring sub-area at the center;
[0106] The abnormal correction module is used to correct the predicted pollution concentration with prediction deviation according to the predicted pollution concentration of the surrounding monitoring sub-area to obtain the corrected pollution concentration.
[0107] In the present invention, if Figure 2 As shown, there are at most 8 monitoring sub-areas around a monitoring sub-area at the center. When there are 8 monitoring sub-areas around a monitoring sub-area at the center, for the center, there are 8 historical deviation coefficients and 8 predicted deviation coefficients. Therefore, a center and each surrounding monitoring sub-area have 1 historical deviation coefficient and 1 predicted deviation coefficient. The absolute value of the difference between the two is taken to obtain the deviation coefficient gap.
[0108] The correction unit of the present invention corrects the monitoring sub-area at the center according to the predicted pollution concentration of the surrounding monitoring sub-areas.
[0109] The present invention first calculates the difference in pollution concentration between the center and the surrounding monitoring sub-areas in history to obtain the historical deviation coefficient of each monitoring sub-area between the center and the surrounding, and then calculates the predicted deviation coefficient of each monitoring sub-area between the center and the surrounding according to the difference in predicted pollution concentration between the center and the surrounding monitoring sub-areas. Therefore, there are two deviation coefficients between the center and each monitoring sub-area around the surrounding. The deviation coefficient difference is calculated based on the two deviation coefficients at the same position. For one center, the number of deviation coefficient differences greater than the difference threshold is counted. When the number is greater than the second number threshold, there is a predicted deviation in the predicted pollution concentration of the monitoring sub-area at the center. Therefore, the predicted pollution concentration of the surrounding monitoring sub-areas is used to correct it.
[0110] In this embodiment, all thresholds are set based on experiments and experience.
[0111] The formula for calculating the historical deviation coefficient is:
[0112] ,
[0113] Among them, γ m is the mth historical deviation coefficient, arctan is the inverse tangent function, e is a natural constant, c o,n The nth historical pollution concentration centered at m,n is the nth historical pollution concentration of the mth peripheral monitoring sub-area, m and n are positive integers, and M is the number of pollution concentrations in the selected central or peripheral monitoring sub-areas;
[0114] The formula for calculating the forecast deviation coefficient is:
[0115] ,
[0116] Among them, θm is the mth prediction deviation coefficient, r o The predicted pollution concentration at the center, r m is the predicted pollution concentration of the surrounding m-th monitoring sub-area.
[0117] The expression of the abnormal correction module is:
[0118] ,
[0119] in, is the corrected pollution concentration, s is the predicted pollution concentration of the monitoring sub-area with prediction deviation, and s m is the predicted pollution concentration of the mth monitoring sub-area around the monitoring sub-area with prediction deviation, K is the number of monitoring sub-areas around the monitoring sub-area with prediction deviation, σ is the sigmoid function, and m is a positive integer.
[0120] The present invention sets a proportional coefficient when correcting When the proportional coefficient is larger, the deviation of the predicted pollution concentration in the monitoring sub-area with prediction deviation is more serious. Therefore, the correction ratio of the predicted pollution concentration in the monitoring sub-area with prediction deviation is larger, and adaptive adjustment correction is achieved.
[0121] In this embodiment, the weights and biases in the historical LSTM perception unit, the real-time LSTM perception unit, and the fully connected layer are trained by the gradient descent method.
[0122] Embodiment 2: A method for an intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things, comprising the following steps:
[0123] S1. Divide the monitoring area into Monitoring sub-areas are set up, and an environmental sensor and an IoT device are set up in each monitoring sub-area;
[0124] S2, collecting pollution concentration through various environmental sensors;
[0125] S3, through various IoT devices to form a local area network, the pollution concentration is transmitted to the monitoring end;
[0126] S4. At the monitoring end, based on the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence, predict the first initial pollution concentration at a future moment;
[0127] S5. predicting a second initial pollution concentration at a future time according to the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence;
[0128] S6. Obtain a predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration;
[0129] S7. Correct the predicted pollution concentration with prediction deviation to obtain the corrected pollution concentration of the monitoring sub-area.
[0130] In the present invention, the specific implementation process of Example 2 is the same as that of Example 1.
[0131] The present invention divides the monitoring area into A monitoring sub-area is configured, and an environmental sensor and an Internet of Things device are set in each monitoring sub-area. An environmental sensor is used to collect pollution concentration, and an Internet of Things device is used for local area network communication, so that all data are transmitted back to the monitoring end through the local area network. At the monitoring end, a historical LSTM perception unit is used to process two historical data, perceive the change characteristics of the historical data, and obtain the first initial pollution concentration at the future moment. A real-time LSTM perception unit is used to process two real-time data, perceive the change characteristics of the real-time data, and obtain the second initial pollution concentration at the future moment. A fully connected layer is used to obtain the predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration, thereby improving the accuracy of the prediction. At the same time, a correction unit is used to correct the predicted pollution concentration with prediction deviation, thereby further improving the accuracy of the prediction.
[0132] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. 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 environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things, characterized in that: include: Partitioning unit, multiple environmental sensors, multiple IoT devices, monitoring end, historical LSTM perception unit, real-time LSTM perception unit, fully connected layer and correction unit; The division unit is used to divide the monitoring area into monitoring sub-areas, and setting an environmental sensor and an IoT device in each monitoring sub-area, where N is a positive integer greater than 3; The environmental sensor is used to collect pollution concentration; Each of the IoT devices is used to form a local area network to transmit the pollution concentration to the monitoring end; At the monitoring end, the historical LSTM perception unit is used to predict the first initial pollution concentration at a future moment according to the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence, and the real-time LSTM perception unit is used to predict the second initial pollution concentration at a future moment according to the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence; The fully connected layer is used to obtain a predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration; The correction unit is used to correct the predicted pollution concentration with prediction deviation to obtain the corrected pollution concentration of the monitoring sub-area; The historical LSTM perception unit and the real-time LSTM perception unit both include: a first LSTM layer, a second LSTM layer, a first feature enhancement layer, a second feature enhancement layer, a first normalization layer, a second normalization layer, a fusion layer and an output layer; The input end of the first LSTM layer serves as the first input end of the historical LSTM perception unit or the real-time LSTM perception unit; The input end of the second LSTM layer serves as the second input end of the historical LSTM perception unit or the real-time LSTM perception unit; The input end of the first feature enhancement layer is connected to the output end of the first LSTM layer, and the output end of the first feature enhancement layer is connected to the input end of the first normalization layer; The input end of the second feature enhancement layer is connected to the output end of the second LSTM layer, and the output end of the second feature enhancement layer is connected to the input end of the second normalization layer; The input end of the fusion layer is connected to the output end of the first normalization layer and the output end of the second normalization layer respectively, and the output end thereof is connected to the input end of the output layer; The output end of the output layer serves as the output end of the historical LSTM perception unit or the real-time LSTM perception unit; In the historical LSTM perception unit, the input end of the first LSTM layer is used to input the historical pollution concentration sequence, and the input end of the second LSTM layer is used to input the historical pollution concentration fluctuation sequence; In the real-time LSTM perception unit, the input end of the first LSTM layer is used to input the real-time pollution concentration sequence, and the input end of the second LSTM layer is used to input the real-time pollution concentration fluctuation sequence; The process of obtaining the historical pollution concentration sequence is as follows: according to the time t at the future moment, the pollution concentration at the time t of multiple historical days in the same monitoring sub-area is extracted to construct the historical pollution concentration sequence, where t is the specified time point; The process of obtaining the pollution concentration fluctuation sequence is as follows: in multiple historical days, the pollution concentration at time t on the previous day is subtracted from the pollution concentration at time t on the next day in the same monitoring sub-area to obtain the pollution concentration difference of multiple adjacent days, and the pollution concentration difference of multiple adjacent days is constructed as a historical pollution concentration fluctuation sequence; The process of obtaining the real-time pollution concentration sequence is as follows: extracting the pollution concentration in the latest period of time in the same monitoring sub-area to construct a real-time pollution concentration sequence; The process of obtaining the real-time pollution concentration fluctuation sequence is as follows: extracting the pollution concentration in the latest period of time in the same monitoring sub-area, subtracting the pollution concentration at the next moment from the pollution concentration at the previous moment, obtaining the difference of pollution concentration at each adjacent moment, and constructing the real-time pollution concentration fluctuation sequence; The correction unit includes: a historical deviation coefficient calculation module, a prediction deviation coefficient calculation module, a coefficient gap calculation module, an abnormal prediction extraction module and an abnormal correction module; The historical deviation coefficient calculation module takes each monitoring sub-area as the center, extracts multiple historical pollution concentrations of the center and the surrounding monitoring sub-areas, and calculates the historical deviation coefficient of the center and each surrounding monitoring sub-area based on the difference between the multiple historical pollution concentrations of the center and the multiple historical pollution concentrations of the surrounding monitoring sub-areas; The prediction deviation coefficient calculation module is used to calculate the prediction deviation coefficient of the center and each surrounding monitoring sub-area based on the difference between the predicted pollution concentration of the center and the predicted pollution concentration of the surrounding monitoring sub-areas, with each monitoring sub-area as the center; The coefficient difference calculation module is used to calculate the absolute value of the difference between the historical deviation coefficient and the predicted deviation coefficient at the same position to obtain the deviation coefficient difference; The abnormal prediction and extraction module is used to count the number of deviation coefficient differences of a center that are greater than a difference threshold, and when the number is greater than a second number threshold, there is a prediction deviation in the predicted pollution concentration of the monitoring sub-area at the center; The abnormal correction module is used to correct the predicted pollution concentration with prediction deviation according to the predicted pollution concentration of the surrounding monitoring sub-area to obtain the corrected pollution concentration; The formula for calculating the historical deviation coefficient is: , Among them, γ m is the mth historical deviation coefficient, arctan is the inverse tangent function, e is a natural constant, c o,n The nth historical pollution concentration centered at m,n is the nth historical pollution concentration of the mth peripheral monitoring sub-area, m and n are positive integers, and M is the number of pollution concentrations in the selected central or peripheral monitoring sub-areas; The formula for calculating the forecast deviation coefficient is: , Among them, θ m is the mth prediction deviation coefficient, r o The predicted pollution concentration at the center, r m is the predicted pollution concentration of the surrounding m-th monitoring sub-area; The expression of the abnormal correction module is: , in, is the corrected pollution concentration, s is the predicted pollution concentration of the monitoring sub-area with prediction deviation, and s m is the predicted pollution concentration of the mth monitoring sub-area around the monitoring sub-area with prediction deviation, K is the number of monitoring sub-areas around the monitoring sub-area with prediction deviation, σ is the sigmoid function, and m is a positive integer.
2. According to the Internet of Things-based intelligent environmental monitoring and analysis system for environmental pollution sources according to claim 1, it is characterized in that: The IoT devices form a local area network, and transmit the pollution concentration to the monitoring end specifically as follows: randomly select one unclassified IoT device as a candidate device; calculate the distance between other unclassified IoT devices and the candidate device, and add the IoT devices whose distance is less than the distance threshold to the class where the candidate device is located; determine whether the number of IoT devices in the class is greater than the first number threshold, if so, retain the class, and select new unclassified IoT devices as candidate devices to construct the next class until the number of classes no longer increases, if not, dissolve the class, and select new unclassified IoT devices as candidate devices to construct the next class; form a local area network with IoT devices in a class, select an IoT device from the local area network as a forwarding center, collect the pollution concentrations sent by the IoT devices in the class through the forwarding center, and transmit them to the monitoring end.
3. The intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things according to claim 1 is characterized in that: The expressions of the first feature enhancement layer and the second feature enhancement layer are both: , Wherein, Y is the output of the first feature enhancement layer or the second feature enhancement layer, H is the input of the first feature enhancement layer or the second feature enhancement layer, Maxpool is the maximum pooling operation, Avgpool is the average pooling operation, It is Hadamard.
4. The intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things according to claim 1 is characterized in that: The expression of the fusion layer is: , Among them, x k is the kth eigenvalue output by the fusion layer, x 1,k is the kth eigenvalue output by the first normalization layer, x 2,k is the kth eigenvalue output by the second normalization layer, tanh is the hyperbolic tangent activation function, ω 1,k For x 1,k The weight of b 1,k For x 1,k The bias, ω 2,k For x 2,k The weight of b 2,k For x 2,k The bias.
5. A method for an intelligent environmental monitoring and analysis system for environmental pollution sources based on the Internet of Things according to any one of claims 1 to 4, characterized in that: The following steps are involved: S1. Divide the monitoring area into Monitoring sub-areas are set up, and an environmental sensor and an IoT device are set up in each monitoring sub-area; S2, collecting pollution concentration through various environmental sensors; S3, through various IoT devices to form a local area network, the pollution concentration is transmitted to the monitoring end; S4. At the monitoring end, based on the historical pollution concentration sequence and the historical pollution concentration fluctuation sequence, predict the first initial pollution concentration at a future moment; S5. predicting a second initial pollution concentration at a future time according to the real-time pollution concentration sequence and the real-time pollution concentration fluctuation sequence; S6. Obtain a predicted pollution concentration of a monitoring sub-area according to the first initial pollution concentration and the second initial pollution concentration; S7. Correct the predicted pollution concentration with prediction deviation to obtain the corrected pollution concentration of the monitoring sub-area.
Citation Information
Patent Citations
Air pollutant monitoring and early-warning method and cloud platform
CN107193056A
PM2.5 concentration space-time change prediction method and system based on space-time diagram neural network
CN113919231A
