Air quality monitoring method based on multi-sensor fusion
Through multi-sensor fusion and machine learning calibration models, sensor deployment locations are optimized to solve the problem of insufficient coverage and real-time performance of single sensor monitoring, achieve high precision and high reliability of air quality monitoring, and ensure the accuracy of monitoring results. and timeliness.
Patent Information
- Application Number
- CN202410661738.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Traditional air quality monitoring methods rely on a single sensor, resulting in limited monitoring coverage, data errors and uncertainties, difficulty in responding to complex environmental conditions, and insufficient real-time performance, and cannot comprehensively and accurately reflect air quality conditions.
Using a multi-sensor fusion method, by collecting and preprocessing data under the same conditions, a machine learning-based estimation error enhanced two-stage calibration model is designed, and combined with Pearson correlation analysis to optimize sensor deployment locations to achieve data calibration and real-time monitoring.
It improves the accuracy and reliability of air quality monitoring, enhances data stability, ensures the accuracy and real-time nature of monitoring results, enables a more comprehensive understanding of air quality distribution and changing trends, and supports timely response measures.
Smart Images

Figure CN118604249A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of sensors, and in particular relates to an air quality monitoring method based on multi-sensor fusion. Background Art
[0002] Air quality monitoring is crucial for environmental protection, public health and urban planning. With the acceleration of industrialization and urbanization, air pollution has become increasingly prominent, seriously affecting people's quality of life and health. Therefore, it is urgent to develop efficient and accurate air quality monitoring technology.
[0003] Traditional air quality monitoring methods mainly rely on a single sensor, which has the following limitations: it may not cover a wide range of monitoring areas, has data errors and uncertainties, and is difficult to cope with complex environmental conditions. Therefore, in order to improve the accuracy, comprehensiveness, and real-time performance of monitoring, it is necessary to develop an air quality monitoring technology based on multi-sensor fusion. The main disadvantages of existing monitoring technologies for air quality monitoring include:
[0004] (1) Single sensor limitation: Traditional monitoring methods mainly rely on a single sensor, which limits the monitoring coverage and monitoring capabilities. A single sensor may not be able to cover a wide monitoring area, resulting in monitoring results being limited to a specific location or area, making it difficult to fully reflect the overall status of air quality.
[0005] (2) Data errors and uncertainties: Data collected by a single sensor may contain errors and uncertainties, which are affected by environmental factors and equipment failures. These errors and uncertainties may lead to inaccurate monitoring results and affect the accurate assessment and prediction of air quality.
[0006] (3) Difficulty in coping with complex environmental conditions: Air quality monitoring often faces complex environmental conditions, such as complex terrain and uneven distribution of pollution sources in cities. A single sensor is difficult to cope with these complex environmental conditions, resulting in limitations and incompleteness of monitoring results.
[0007] (4) Monitoring data is not timely: Traditional monitoring methods usually require a certain amount of time to collect, process and analyze data, resulting in insufficient real-time monitoring results. When responding to air quality emergencies and taking emergency measures, timely monitoring data is particularly important, but traditional methods are difficult to meet this demand.
[0008] Therefore, in view of the shortcomings of the above scheme in actual production and implementation, it has been revised and improved. At the same time, in the spirit and concept of seeking excellence, with the assistance of professional knowledge and experience, and after many ingenuity and experiments, the present invention was created. In particular, an air quality monitoring method based on multi-sensor fusion is provided to solve the above problems. Summary of the invention
[0009] The present invention proposes an air quality monitoring method based on multi-sensor fusion, which solves the problems in the prior art.
[0010] The technical solution of the present invention is implemented as follows: an air quality monitoring method based on multi-sensor fusion, the method comprising:
[0011] S1. Collect the original PM concentration data measured by different sensors under the same conditions and pre-process the collected data;
[0012] S2. Create a training data set based on the actual PM concentration data of the observation station and use it as the monitoring target data for the sensor collection data;
[0013] S3. Design a two-stage calibration model based on machine learning estimation error enhancement, and use the model to calibrate the sensor data to obtain the standard PM target concentration data;
[0014] S4, designing a corresponding loss function for the two-stage calibration model, and using the training data set constructed in S2 to train the model;
[0015] S5. Optimize the sensor deployment location based on Pearson correlation analysis to ensure accurate and real-time monitoring of air quality data.
[0016] As a preferred implementation, the data collection and processing process includes:
[0017] S11: deploy multiple gas sensors at different locations to collect PM concentration data;
[0018] S12: Check sensor records for false alarms, inconsistent readings, and comparisons with earlier readings to determine data consistency and reliability;
[0019] S13: Eliminate any zero, negative, inconsistent, random or other values;
[0020] S14: identifying a peak value on the sensor instead of a peak value on the reference point, and comparing the value of the sensor with the value of the reference sensor to determine whether there is a measurement error or sensor failure;
[0021] As a preferred implementation, the air quality data labeling process includes:
[0022] S21: The value of the local reference observation station is used as the true and accurate PM concentration value, and is used as the monitoring target data of the data collected by the sensor;
[0023] S22: The data x collected by the sensor is converted into [x1, x2..., xN ] is combined with the reference observation station data Y to obtain a set of training data sets, where N represents the number of sensors:
[0024] D = [x, y];
[0025] By annotating and merging sensor data with reference observatory data, accurate label information can be provided for subsequent calibration model training, thereby improving the model's prediction performance.
[0026] As a preferred implementation, the process of establishing the model of the two-stage calibration method based on machine learning estimation error enhancement includes:
[0027] S31: The model of the first stage is (MLR), the NannyML model is (DLE), by estimating the The mean absolute error is used to calibrate the data collected by the sensor; Using datax train and train Training to obtain calibrated sensor measurements
[0028]
[0029] S32: Use x train and For the absolute error vector ε atrain right Training is performed, where the absolute error vector ε atrain is and train Formed between:
[0030]
[0031] S33: Trained The error vector can be obtained in real time without real-time monitoring data from ground monitoring stations
[0032]
[0033] in, is the NannyML model The estimated error vector.
[0034] S34: Test data x test Input into the calibration model, and then convert the predicted value and x test Passed to the NannyML model to get the estimated error vector Once you get It will be x test Enhanced together and input into the RF model; finally the RF model will give a calibration value corresponding to the input data
[0035] As a preferred implementation, the specific contents include:
[0036] S41: Divide the data set into training data sets (X) according to the standard 75% and 25% ratios. train ,y train ) and the test dataset (X test ,y test ); Using the training data set X train To train the MLR model, the goal is to minimize the predicted sensor value Compared with the reference instrument value (y train ) between the mean square error (MSE); the loss function is defined as follows:
[0037]
[0038] in, is a set of sensor values predicted based on the training data; is the corresponding reference instrument measurement value set; P represents the number of samples in the training set;
[0039] S42: Use the trained MLR model to predict the training data and calculate the absolute error vector ε between the predicted value and the actual value atrain :
[0040]
[0041]
[0042] S43: Use NannyML model (H) combined with training data x train and the predicted values generated by the MLR model And the error ε obtained previously atrain , learn the uncertainty in the MLR model prediction and estimate the new error estimator based on it
[0043]
[0044]
[0045] S44: In the second stage, a RF model is trained, and the training data x is expanded. train , adding the error estimate learned from the first stage The goal is to minimize the loss function for y on the test set, where K represents the number of samples in the test set. Therefore, P+K=N is the total number of samples. The loss function expression for this stage is:
[0046]
[0047] As a preferred implementation, the specific contents include:
[0048] S51: Using the Pearson correlation coefficient (PCC) to determine the correlation coefficient for the sensor network to optimize the deployment locations of different sensors, this process is optimized in conjunction with the detection calibration process:
[0049]
[0050] -1≤c ji ≤1
[0051]
[0052] Among them, c ji The value is the Pearson correlation coefficient, and cov refers to the sensor predicted output value at different positions. and The covariance between i and j is represented by different positions, and the term σ is the variable and If
[0053] c ji If the value of is close to ±1.0, the correlation is considered strong; the correlation coefficient threshold
[0054] c th It is set to 0.30. During the calibration process, correlation analysis of the detection values is performed simultaneously, and the sensor position is fine-tuned with the goal of minimizing the correlation. Ultimately, the data redundancy between sensors is minimized. Based on this principle, all sensors are adjusted and deployed in real time. At the same time, multiple local sensors are used to collect PM data, and the two-stage calibration model is used to calibrate the data to obtain accurate air quality monitoring results for the entire area, completing global real-time air quality detection.
[0055] After adopting the above technical solution, the beneficial effects of the present invention are:
[0056] (1) The multi-sensor fusion method can integrate data from multiple sources, thereby improving the precision and accuracy of air quality monitoring. Compared with single sensor monitoring, the integration of data from multiple sensors can more comprehensively reflect the actual air quality situation.
[0057] (2) Enhance data reliability and stability: The two-stage calibration method based on estimation error enhancement can effectively reduce the error of sensor data and improve the reliability and stability of data. Calibration can reduce the drift and deviation of sensor data, ensuring that the monitoring results are more reliable.
[0058] (3) Optimizing sensor deployment locations: The sensor deployment location optimization algorithm based on the Pearson correlation coefficient can be used to more scientifically determine the deployment locations of sensors, making the monitoring network coverage wider and more efficient, and helping to gain a more comprehensive understanding of the distribution and changing trends of air quality.
[0059] (3) Improving real-time monitoring capabilities: Through the comprehensive application of the above methods, the real-time monitoring capabilities of the air quality monitoring system can be improved; accurate data, stable sensors, and optimized deployment locations can provide reliable data support for timely response measures, which helps to protect public health and the environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] 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 labor.
[0061] Figure 1 This is the air quality monitoring flow chart of the present invention;
[0062] Figure 2 This is a model diagram of the two-stage calibration method of the present invention;
[0063] Figure 3 This is a diagram of the model calibration process of the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] like Figure 1 As shown, an air quality monitoring method based on multi-sensor fusion, the method comprising:
[0066] S1. Collect the original PM concentration data measured by different sensors under the same conditions and pre-process the collected data;
[0067] S2. Create a training data set based on the actual PM concentration data of the observation station and use it as the monitoring target data for the sensor collection data;
[0068] S3. Design a two-stage calibration model based on machine learning estimation error enhancement, and use the model to calibrate the sensor data to obtain the standard PM target concentration data;
[0069] S4, designing a corresponding loss function for the two-stage calibration model, and using the training data set constructed in S2 to train the model;
[0070] S5. Optimize the sensor deployment location based on Pearson correlation analysis to ensure accurate and real-time monitoring of air quality data.
[0071] Furthermore, the data collection and processing process includes:
[0072] S11: deploy multiple gas sensors at different locations to collect PM concentration data;
[0073] S12: Check sensor records for false alarms, inconsistent readings, and comparisons with earlier readings to determine data consistency and reliability;
[0074] S13: Eliminate any zero, negative, inconsistent, random or other values;
[0075] S14: identifying a peak value on the sensor instead of a peak value on the reference point, and comparing the value of the sensor with the value of the reference sensor to determine whether there is a measurement error or sensor failure;
[0076] Furthermore, the air quality data labeling process includes:
[0077] S21: The value of the local reference observation station is used as the true and accurate PM concentration value, and is used as the monitoring target data of the data collected by the sensor;
[0078] S22: The data x collected by the sensor is converted into [x1, x2..., x N ] is combined with the reference observation station data Y to obtain a set of training data sets, where N represents the number of sensors:
[0079] D = [x, y];
[0080] By annotating and merging sensor data with reference observatory data, accurate label information can be provided for subsequent calibration model training, thereby improving the model's prediction performance.
[0081] Furthermore, the establishment process of the estimation error enhancement two-stage calibration method model based on machine learning includes:
[0082] S31: The model of the first stage is (MLR), the NannyML model is (DLE), by estimating the The mean absolute error is used to calibrate the data collected by the sensor; Using datax train and train Training to obtain calibrated sensor measurements
[0083]
[0084] S32: Use x train and For the absolute error vector ε atrain right Training is performed, where the absolute error vector ε atrain is and train Formed between:
[0085]
[0086] S33: Trained The error vector can be obtained in real time without real-time monitoring data from ground monitoring stations
[0087]
[0088] in, is the NannyML model The estimated error vector.
[0089] S34: Test data x test Input into the calibration model, and then convert the predicted value and x test Passed to the NannyML model to get the estimated error vector Once you get It will be x test Enhanced together and input into the RF model; finally the RF model will give a calibration value corresponding to the input data The specific operation process is shown in 3;
[0090] In the two-stage calibration process, the two-stage models are operated in series in a specific manner to calibrate each sensor respectively. In the first stage, the present invention provides a sensor input x train and the local observation station measurement value y train, and get the first model calibration output And will Compared with the measured value y at the local observation station train The residual error vector ε between train The ε is input into the second model to calibrate the sensor model. However, in testing or remote real-time deployment, the data from the observation station cannot be obtained in real time, which makes it impossible to obtain ε in real time in practical applications. train Therefore, the present invention uses its NannyML model to train Make an estimate to get an estimate Rather than using ε directly in testing or live deployment train .
[0091] The model in the first stage uses the multivariate linear regression (MLR) model, and the model in the second stage uses the random forest (RF) model. The NannyML model between the two stages uses the direct loss estimation (DLE); the complete model framework flow chart is as follows Figure 2 As shown;
[0092] Furthermore, the specific contents include:
[0093] S41: Divide the data set into training data sets (x) according to the standard 75% and 25% ratios. train ,y train ) and the test dataset (x test ,y test ); Using the training data set X train To train the MLR model, the goal is to minimize the predicted sensor value Compared with the reference instrument value (y train ) between the mean square error (MSE); the loss function is defined as follows:
[0094]
[0095] in, is a set of sensor values predicted based on the training data; is the corresponding reference instrument measurement value set; P represents the number of samples in the training set;
[0096] S42: Use the trained MLR model to predict the training data and calculate the absolute error vector ε between the predicted value and the actual value atrain :
[0097]
[0098]
[0099] S43: Use NannyML model (H) combined with training data x train and the predicted values generated by the MLR model And the error ε obtained previously atrain , learn the uncertainty in the MLR model prediction and estimate the new error estimator based on it
[0100]
[0101]
[0102] S44: In the second stage, a RF model is trained, and the training data x is expanded. train , adding the error estimate learned from the first stage The goal is to minimize the loss function for y on the test set, where K represents the number of samples in the test set. Therefore, P+K=N is the total number of samples. The loss function expression for this stage is:
[0103]
[0104] Furthermore, the specific contents include:
[0105] S51: Using the Pearson correlation coefficient (PCC) to determine the correlation coefficient for the sensor network to optimize the deployment locations of different sensors, this process is optimized in conjunction with the detection calibration process:
[0106]
[0107] -1≤c ji ≤1
[0108]
[0109] Among them, c ji The value is the Pearson correlation coefficient, and cov refers to the sensor predicted output value at different positions. and The covariance between i and j is represented by different positions, and the term σ is the variable and If c ji If the value of is close to ±1.0, the correlation is considered strong; the correlation coefficient threshold c thIt is set to 030. During the calibration process, correlation analysis of the detection values is performed simultaneously, and the sensor position is fine-tuned with the goal of minimizing the correlation. Ultimately, the data redundancy between sensors is guaranteed to be minimal. Based on this principle, all sensors are adjusted and deployed in real time. At the same time, multiple local sensors are used to collect PM data, and the two-stage calibration model is used to calibrate to obtain accurate air quality monitoring results for the entire area, completing global real-time air quality detection.
[0110] The present invention proposes an air quality monitoring method based on multi-sensor fusion, including the collection and preprocessing of local air quality data, the preparation of a training data set, a two-stage calibration method based on estimation error enhancement, and sensor location deployment optimization based on the Pearson correlation coefficient.
[0111] First, local air quality data is collected and preprocessed. This step includes selecting appropriate sensor equipment and deploying it in the monitoring area, and then collecting the raw data measured by the sensor. The collected data is then preprocessed, including removing noise, calibrating data, filling missing values, etc., to ensure the accuracy and reliability of the data. After preprocessing, the data will provide a reliable basis for subsequent training and analysis. The preprocessed air quality data is then labeled to form a training data set for model training. Next, the sensor is calibrated using a two-stage calibration method based on estimation error enhancement. Subsequently, a sensor deployment location optimization algorithm based on the Pearson correlation coefficient is designed. Finally, the calibrated and optimized sensors are used to monitor air quality in real time to improve the credibility of the monitoring results.
[0112] In the description of the present invention, it should be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, or it can be the internal communication of two elements, it can be a direct connection, or it can be an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0113] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An air quality monitoring method based on multi-sensor fusion, characterized in that: The method includes: S1. Collect the original PM concentration data measured by different sensors under the same conditions and pre-process the collected data; S2. Create a training data set based on the actual PM concentration data of the observation station and use it as the monitoring target data for the sensor collection data; S3. Design a two-stage calibration model based on machine learning estimation error enhancement, and use the model to calibrate the sensor data to obtain the standard PM target concentration data; S4, designing a corresponding loss function for the two-stage calibration model, and using the training data set constructed in S2 to train the model; S5. Optimize the sensor deployment location based on Pearson correlation analysis to ensure accurate and real-time monitoring of air quality data.
2. The raw PM concentration data collection and preprocessing according to S1 of claim 1, characterized in that: The data collection and processing process includes: S11: deploy multiple gas sensors at different locations to collect PM concentration data; S12: Check sensor records for false alarms, inconsistent readings, and comparisons with earlier readings to determine data consistency and reliability; S13: Eliminate any zero, negative, inconsistent, random or other values; S14: Identify a peak value on the sensor instead of a peak value on the reference point, and compare the value of the sensor with the value of the reference sensor to determine whether there is a measurement error or sensor failure.
3. The process of preparing the training data set according to S2 in claim 1, characterized in that: The air quality data labeling process includes: S21: The value of the local reference observation station is used as the true and accurate PM concentration value, and is used as the monitoring target data of the data collected by the sensor; S22: The data collected by the sensor Combined with the reference observation station data Y, a training data set is obtained, where N represents the number of sensors: By annotating and merging sensor data with reference observatory data, accurate label information can be provided for subsequent calibration model training, thereby improving the model's prediction performance.
4. The estimation error enhanced two-stage calibration model based on machine learning as described in S3 of claim 1, characterized in that: The establishment process of the estimation error enhancement two-stage calibration method model based on machine learning includes: S31: The model of the first stage is The NannyML model is By estimating when reference station observation data are unavailable The mean absolute error is used to calibrate the data collected by the sensor; Using datax train and Training to obtain calibrated sensor measurements S32: Use x train and For the absolute error vector ε atrain right Training is performed, where the absolute error vector ε atrain is and Formed between: S33: Trained The error vector can be obtained in real time without real-time monitoring data from ground monitoring stations in, is the NannyML model The estimated error vector; S34: Test data Input into the calibration model, and then convert the predicted value and Passed to the NannyML model to get the estimated error vector Once you get It will Enhanced together and input into the RF model; finally the RF model will give a calibration value corresponding to the input data 5. The model in the training error enhanced two-stage calibration method according to S4 in claim 1, characterized in that: The specific contents include: S41: Divide the dataset into training datasets according to the standard 75% and 25% ratios And the test dataset Using the training dataset X train To train the MLR model, the goal is to minimize the predicted sensor value With reference instrument value The mean square error (MSE) between them; the loss function is defined as follows: in, is a set of sensor values predicted based on the training data; is the corresponding reference instrument measurement value set; P represents the number of samples in the training set; S42: Use the trained MLR model to predict the training data and calculate the absolute error vector ε between the predicted value and the actual value atrain : S43: Using NannyML model (H) combined with training data and the predicted values generated by the MLR model And the error ε obtained previously atrain , learn the uncertainty in the MLR model prediction and estimate the new error estimator based on it S44: In the second stage, a RF model is trained, and the training data is expanded. Add the error estimate learned from the first stage The purpose is to minimize the The loss function is , where K represents the number of samples in the test set. Therefore, P + K = N, which is the total number of samples. The loss function expression for this stage is:
6. According to claim 1, the re-optimization of sensor deployment position is used to monitor air quality in real time, characterized in that: The specific contents include: S51: Using the Pearson correlation coefficient (PCC) to determine the correlation coefficient for the sensor network to optimize the deployment locations of different sensors, this process is optimized in conjunction with the detection calibration process: -1≤c ji ≤1 Among them, c ji The value is the Pearson correlation coefficient, and cov refers to the sensor predicted output value at different positions. and The covariance between i and j is represented by different positions, and the term σ is the variable and If c ji If the value of is close to ±1.0, the correlation is considered strong; the correlation coefficient threshold c th It is set to 0.
30. During the calibration process, correlation analysis of the detection values is performed simultaneously, and the sensor position is fine-tuned with the goal of minimizing the correlation. Ultimately, the data redundancy between sensors is minimized. Based on this principle, all sensors are adjusted and deployed in real time. At the same time, multiple local sensors are used to collect PM data, and the two-stage calibration model is used to calibrate the data to obtain accurate air quality monitoring results for the entire area, completing global real-time air quality detection.
Citation Information
Patent Citations
Extracting and evaluating method for sensor data calibration characteristics
CN106908095A
PM10 concentration prediction method, system and equipment and storage medium
CN115238595A
Ozone monitoring downscaling method, device and equipment and computer readable storage medium
CN115825338A
Sparse site air quality hybrid prediction model based on spatial-temporal feature extraction
CN116561609A
Data calibration method of multispectral simulation system
CN118070626A
Cited By
Multi-numerical weather forecast mode intelligent integration method
CN119537868A
