Gas pollutant diffusion characteristic prediction method based on machine learning

By combining computational fluid dynamics and machine learning, the neural network model is used to predict the diffusion characteristics of gas pollutants in the ventilation system, solving the problems of complexity and high research cost of the diffusion characteristics of gas pollutants in the ventilation system, and achieving efficient and accurate multi-dimensional prediction. Factor analysis and prediction.

CN118675651APending Publication Date: 2024-09-20HUBEI CONSTR ENG TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410728536.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In ventilation systems, predicting the diffusion characteristics of gas pollutants is complex and requires consideration of multiple factors. Existing methods consume a lot of manpower and material resources, and are difficult to effectively perform linear analysis.

Method used

A method based on machine learning is used, combined with computational fluid dynamics (CFD) and Latin hypercube sampling, to construct a neural network model, and a genetic algorithm is used to optimize weights and thresholds to predict the diffusion characteristics of gas pollutants and reduce research costs.

Benefits of technology

It realizes multi-factor analysis of the diffusion characteristics of gas pollutants in a ventilation environment, saves experimental research resources, improves prediction efficiency and accuracy, and avoids local optimization of the neural network model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675651A
    Figure CN118675651A
Patent Text Reader

Abstract

The invention discloses a machine learning-based gas pollutant diffusion characteristic prediction method. The method comprises the following steps of S1, determining and extracting gas pollutant release characteristics, ventilation system space layout parameters and ventilation system operation parameters; latin hypercube uniform sampling is carried out in potential release parameters of a dye source, layout parameters in a ventilation system space and operation parameters of the dye source according to a specified range, numerical simulation calculation is carried out by combining a CFD method according to an experimental design scheme, the numerical simulation calculation is verified, and parameter characteristics and an output mapping set construct a sample set; performing standardization processing on the sample set; dividing the sample set into a training set and a test set; constructing a neural network topological structure; optimizing a weight and a threshold value of the neural network by adopting a genetic algorithm; training the neural network optimized by the genetic algorithm; the method has the beneficial effects that experiments and other studies are not needed, and manpower and material resources can be greatly saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of ventilation system control, and in particular relates to a method for predicting diffusion characteristics of gaseous pollutants based on machine learning. Background Art

[0002] For environments with potential pollution sources, ventilation is an important means of controlling air pollutants in buildings. Different ventilation system layouts, ventilation system operation characteristics and release characteristics of potential pollution sources will produce different ventilation effects. Therefore, it is of great significance to predict the diffusion characteristics of potential gaseous pollutants under different factors.

[0003] There are too many factors to consider in the ventilation control of polluted gas emissions, and they affect each other, which makes the prediction of the diffusion characteristics of gas pollutants under ventilation conditions no longer a simple linear problem. At the same time, using experimental and other research methods to study ventilation control will consume a lot of manpower and material resources. Summary of the invention

[0004] The purpose of the present invention is to provide a method for predicting the diffusion characteristics of gaseous pollutants based on machine learning to solve the technical problems mentioned in the above background technology.

[0005] The above technical objectives of the present invention are achieved through the following technical solutions:

[0006] A method for predicting the diffusion characteristics of gaseous pollutants based on machine learning, the method comprising the following steps:

[0007] Step S1: determining the gas pollutant release characteristics and the ventilation system spatial layout parameters and ventilation system operation parameters;

[0008] Step S2: extracting gaseous pollutant release characteristics and ventilation system spatial layout parameters and ventilation system operation parameters;

[0009] Step S3: Latin hypercube uniform sampling is performed in the specified range among the potential release parameters of the pollution source, the layout parameters of the ventilation system space and its operating parameters, numerical simulation calculations are performed according to the experimental design scheme combined with the CFD method, and the calculations are verified, and a sample set is constructed from the mapping set of parameter characteristics and output;

[0010] Step S4: standardize the sample set;

[0011] Step S5: Divide the sample set into a training set and a test set;

[0012] Step S6: constructing a neural network topology structure;

[0013] Step S7: using genetic algorithm to optimize the weights and thresholds of the neural network;

[0014] Step S8: training the neural network optimized by the genetic algorithm;

[0015] Step S9: Evaluate the neural network model using evaluation indicators such as determination coefficient, root mean square error and mean absolute error. If it does not meet expectations, retrain and optimize the neural network until the calculation results are consistent.

[0016] Furthermore: the number of spatial layout parameters of the ventilation system in step S1 or step S2 include: fresh air inlet position, number of fresh air inlets, exhaust outlet position; ventilation system operation parameters include: fresh air flow rate, fresh air temperature; gas pollutant release characteristics include: pollution source type, pollution source emission rate; and the diffusion characteristics of gas pollutants under ventilation state are used as design targets.

[0017] Further: the sample set is standardized in step S4, specifically: the parameterizable data is directly normalized, and the "diffusion characteristics" that cannot be parameterized are converted into a sparse matrix; and the sample set is divided into a training set and a test set in a ratio of 7:3.

[0018] Further: in the step S6, a neural network topology is established according to the parameters to be input and the diffusion characteristics of the gas pollutants to be predicted, and the number of hidden layers and the number of hidden layer nodes are determined.

[0019] Further: the sources of the weights and thresholds in step S7 are: encoding the initial weights and thresholds, using the training error of the BP neural network as the fitness value of the genetic algorithm, and performing selection, crossover and mutation operations, and calculating the errors until the selected weights and thresholds can meet the error requirements, and outputting the weights and thresholds.

[0020] Further: in the step S8, the weights and thresholds outputted in the step S7 are decoded and optimized and used as the weights and thresholds of the neural network; the sample set after the standardization processing in the step S4 is used as a training sample to repeatedly iterate the training of the neural network.

[0021] Further: in step S9, the trained neural network model of step S8 is evaluated: the neural network model is evaluated using comprehensive evaluation indicators such as correlation coefficient R2, root mean square error RMSE and mean absolute error MAE; if it does not meet expectations, the neural network training and optimization process is repeated until the training results meet expectations;

[0022] Further: the gas pollutant release characteristics in step S1 or step S2 also include: the size of the potential leakage hole.

[0023] In summary, the present invention has the following beneficial effects:

[0024] ① The present invention combines computational fluid dynamics (CFD) methods with machine learning, uses machine learning to process complex nonlinear problems with complex environmental information, unknown knowledge, and unclear rules, and uses computational fluid dynamics (CFD) to study the diffusion characteristics of gaseous pollutants under ventilation conditions. No experiments or other research are required, which can save a lot of manpower and material resources.

[0025] ② The flexibility, efficiency and versatility of computational fluid dynamics can be used to carry out multi-factor analysis of gas diffusion behavior under ventilation conditions.

[0026] ③ The Latin hypercube sampling technique is used to ensure that only a small number of samples are needed to represent the entire sample space, further reducing research costs.

[0027] ④ Using genetic algorithm to optimize BP neural network can avoid the local optimal situation of neural network model.

[0028] ⑤ The neural network prediction model based on multi-factor training can predict the diffusion characteristics of gaseous pollutants based on specified factors. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of a flow chart of the present invention;

[0030] Figure 2 A schematic diagram of the topological structure of a neural network in the present invention;

[0031] Figure 3 The result of iteratively training the neural network for the sample set. DETAILED DESCRIPTION

[0032] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0033] Example:

[0034] See also Figure 1-Figure 3 , the present invention provides a technical solution:

[0035] A method for predicting the diffusion characteristics of gaseous pollutants based on machine learning, the method comprising the following steps:

[0036] Step S1: determining the gas pollutant release characteristics and the ventilation system spatial layout parameters and ventilation system operation parameters;

[0037] Step S2: extracting gaseous pollutant release characteristics and ventilation system spatial layout parameters and ventilation system operation parameters;

[0038] Step S3: Latin hypercube uniform sampling is performed in the specified range among the potential release parameters of the pollution source, the layout parameters of the ventilation system space and its operating parameters, numerical simulation calculations are performed according to the experimental design scheme combined with the CFD method, and the calculations are verified, and a sample set is constructed from the mapping set of parameter characteristics and output;

[0039] Step S4: standardize the sample set;

[0040] Step S5: Divide the sample set into a training set and a test set;

[0041] Step S6: constructing a neural network topology structure;

[0042] Step S7: using genetic algorithm to optimize the weights and thresholds of the neural network;

[0043] Step S8: training the neural network optimized by the genetic algorithm;

[0044] Step S9: Evaluate the neural network model using evaluation indicators such as determination coefficient, root mean square error and mean absolute error. If it does not meet expectations, retrain and optimize the neural network until the calculation results are consistent.

[0045] The number of spatial layout parameters of the ventilation system in step S1 or step S2 includes: fresh air inlet position, number of fresh air inlets, exhaust outlet position; ventilation system operation parameters include: fresh air flow rate, fresh air temperature; gas pollutant release characteristics include: pollution source type, pollution source emission rate; the diffusion characteristics of gas pollutants under ventilation state are used as design targets.

[0046] The sample set is standardized in step S4, specifically: the parameterizable data is directly normalized, and the "diffusion characteristics" that cannot be parameterized are converted into a sparse matrix; and the sample set is divided into a training set and a test set in a ratio of 7:3.

[0047] In step S6, a neural network topology is established based on the parameters to be input and the diffusion characteristics of the gas pollutants to be predicted, and the number of hidden layers and the number of hidden layer nodes are determined, such as Figure 2 shown.

[0048] The sources of the weights and thresholds in step S7 are: encoding the initial weights and thresholds, using the training error of the BP neural network as the fitness value of the genetic algorithm, and performing selection, crossover and mutation operations, and calculating the errors until the selected weights and thresholds can meet the error requirements, and outputting the weights and thresholds.

[0049] In step S8, the weights and thresholds outputted in step S7 are decoded and optimized and used as the weights and thresholds of the neural network; and the sample set after the standardization processing in step S4 is used as a training sample to repeatedly iterate the neural network.

[0050] In step S9, the neural network model trained in step S8 is evaluated: the comprehensive evaluation indicators correlation coefficient R2, root mean square error RMSE and mean absolute error MAE are used to evaluate the neural network model; if it does not meet expectations, the neural network training and optimization process is repeated until the training results meet expectations, such as Figure 3 As shown ( Figure 3 Actual class represents the actual value, and Predicted class represents the predicted output value);

[0051] The formula for the correlation coefficient R2 is:

[0052]

[0053] Among them, p i , a i (i=0, 1, ..., n) represent the predicted output value and the actual value respectively. and are the sample p i and a i The average value of .

[0054] The gas pollutant release characteristics in step S1 or step S2 further include: the size of the potential leakage hole.

[0055] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. A method for predicting the diffusion characteristics of gaseous pollutants based on machine learning, characterized in that: The method comprises the following steps: Step S1: determining the gas pollutant release characteristics and the ventilation system spatial layout parameters and ventilation system operation parameters; Step S2: extracting gaseous pollutant release characteristics and ventilation system spatial layout parameters and ventilation system operation parameters; Step S3: Latin hypercube uniform sampling is performed in the specified range among the potential release parameters of the pollution source, the layout parameters of the ventilation system space and its operating parameters, numerical simulation calculations are performed according to the experimental design scheme combined with the CFD method, and the calculations are verified, and a sample set is constructed from the mapping set of parameter characteristics and output; Step S4: standardize the sample set; Step S5: Divide the sample set into a training set and a test set; Step S6: constructing a neural network topology structure; Step S7: using genetic algorithm to optimize the weights and thresholds of the neural network; Step S8: training the neural network optimized by the genetic algorithm; Step S9: Evaluate the neural network model using evaluation indicators such as determination coefficient, root mean square error and mean absolute error. If it does not meet expectations, retrain and optimize the neural network until the calculation results are consistent.

2. The method for predicting gaseous pollutant diffusion characteristics based on machine learning according to claim 1, characterized in that: The number of spatial layout parameters of the ventilation system in step S1 or step S2 includes: fresh air inlet position, number of fresh air inlets, exhaust outlet position; ventilation system operation parameters include: fresh air flow rate, fresh air temperature; gas pollutant release characteristics include: pollution source type, pollution source emission rate; the diffusion characteristics of gas pollutants under ventilation state are used as design targets.

3. The method for predicting gaseous pollutant diffusion characteristics based on machine learning according to claim 1, characterized in that: The sample set is standardized in step S4, specifically: the parameterizable data is directly normalized, and the "diffusion characteristics" that cannot be parameterized are converted into a sparse matrix; and the sample set is divided into a training set and a test set in a ratio of 7:

3.

4. The method for predicting gaseous pollutant diffusion characteristics based on machine learning according to claim 1, characterized in that: In step S6, a neural network topology is established based on the parameters to be input and the diffusion characteristics of the gaseous pollutants to be predicted, and the number of hidden layers and the number of hidden layer nodes are determined.

5. The method for predicting gaseous pollutant diffusion characteristics based on machine learning according to claim 1, characterized in that: The sources of the weights and thresholds in step S7 are: encoding the initial weights and thresholds, using the training error of the BP neural network as the fitness value of the genetic algorithm, and performing selection, crossover and mutation operations, and calculating the errors until the selected weights and thresholds can meet the error requirements, and outputting the weights and thresholds.

6. The method for predicting gaseous pollutant diffusion characteristics based on machine learning according to claim 5, characterized in that: In step S8, the weights and thresholds outputted in step S7 are decoded and optimized and used as the weights and thresholds of the neural network; and the sample set after the standardization processing in step S4 is used as a training sample to repeatedly iterate the neural network.

7. The method for predicting gaseous pollutant diffusion characteristics based on machine learning according to claim 6, characterized in that: In step S9, the trained neural network model of step S8 is evaluated: the comprehensive evaluation indicators correlation coefficient R2, root mean square error RMSE and mean absolute error MAE are used to evaluate the neural network model; if it does not meet expectations, the neural network training and optimization process is repeated until the training results meet expectations.

8. The method for predicting gaseous pollutant diffusion characteristics based on machine learning according to claim 1, characterized in that: The gas pollutant release characteristics in step S1 or step S2 further include: the size of the potential leakage hole.