A method for testing carbon dioxide concentration

By collecting multi-wavelength spectral data and environmental data, using a quantum cascade laser infrared spectrometer and temperature and humidity sensor, data packaging and preliminary analysis are carried out, and the data packets are encrypted and transmitted to the cloud, integrated into a data lake, and data fusion and correction are carried out through deep learning technology, a CO2 concentration correction model is constructed, and intelligent early warning and long-term trend prediction are carried out, which solves the problems of real-time monitoring, data security transmission, unified data analysis and environmental factor correction in the existing technology, and a high-precision and intelligent CO2 monitoring system is realized.

CN119104512BActive Publication Date: 2025-05-23SHANGHAI INST OF SPECIAL EQUIP INSPECTION & TECHN RES +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411121053.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2025-05-23
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The prior art has problems such as difficulty in real-time monitoring, poor data security transmission, difficulty in data analysis and insufficient correction of environmental factors in CO2 concentration measurement.

Method used

By collecting multi-wavelength spectral data and environmental data, data packaging and preliminary analysis are performed using a quantum cascade laser infrared spectrometer and a temperature and humidity sensor. Then the data packet is encrypted and transmitted to the cloud, integrated into a data lake, and data fusion and correction are carried out through deep learning technology, a CO2 concentration correction model is built, and intelligent early warning and long-term trend prediction are carried out.

Benefits of technology

It realizes high-precision real-time monitoring of CO2 concentration, ensures safe transmission and unified analysis of data, improves the accuracy and reliability of measurement results, and provides strong data support for environmental protection and public health management through intelligent early warning and trend prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119104512B_ABST
    Figure CN119104512B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for testing carbon dioxide concentration, which relates to the technical field of environmental monitoring. The method includes collecting multi-wavelength spectral data and environmental data, and performing data packaging and preliminary analysis; encrypting the data packet and sending it to the cloud server using wireless transmission. The cloud server decrypts the data and integrates it into a data lake; constructing a CO2 concentration correction model based on the integrated data set to adjust the CO2 concentration measurement value; combining the adjusted CO2 concentration measurement value and historical data analysis to perform intelligent early warning by calculating dynamic thresholds. The present invention realizes high-precision CO2 monitoring by integrating multi-wavelength spectra and environmental data, and combining advanced infrared spectrometers and sensors. Using deep learning to optimize data, the intelligent early warning system dynamically monitors the concentration changes, and time series analysis predicts trends, enhancing data security and system intelligence, which is crucial for environmental protection and health management, helps to cope with climate change, and maintains ecological balance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of environmental monitoring, in particular to a method for testing carbon dioxide concentration. Background Art

[0002] Carbon dioxide (CO 2 ) is an important component of greenhouse gases and plays a vital role in global climate change research, environmental monitoring and industrial production. 2 Concentration measurement methods mainly rely on chemical titration, electrochemical sensors, non-dispersive infrared (NDIR) sensors, and Fourier transform infrared spectroscopy (FTIR). In recent years, with the development of quantum cascade lasers (QCLs) technology, high-precision CO 2 Measurement technology has gradually become a research hotspot. QCLs can provide high-power, narrow-linewidth infrared light sources, especially suitable for CO in atmospheric environments. 2 The precise detection of absorption peaks significantly improves the sensitivity and selectivity of the measurement.

[0003] Although the existing technology in CO 2 Significant progress has been made in the field of concentration measurement, but there are still some shortcomings. On the one hand, traditional measurement methods often need to be carried out in laboratory environments, which makes it difficult to achieve real-time, online monitoring, especially in remote areas or complex environments. On the other hand, there is a lack of effective methods to ensure the accuracy and security of data during data processing and transmission, especially in the wireless transmission link. The application of data encryption and compression technology is not yet mature, resulting in low data transmission efficiency and susceptibility to interference. In addition, due to the lack of effective data fusion and analysis methods, data from different monitoring points are difficult to manage and analyze uniformly, which limits the application of CO 2 More importantly, the existing technology is relatively rough in dealing with environmental factor correction and fails to make full use of advanced algorithms such as deep learning to fine-tune CO 2 The concentration measurement value affects the accuracy and reliability of the measurement results. Summary of the invention

[0004] In view of the above existing problems, the present invention is proposed.

[0005] Therefore, the present invention provides a method for testing carbon dioxide concentration to solve the problems of insufficient real-time monitoring, secure data transmission, unified data analysis and refined correction of environmental factors.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a method for testing carbon dioxide concentration, which includes collecting multi-wavelength spectral data and environmental data, packaging and preliminary analysis of the data; encrypting the data packet and sending it to a cloud server using wireless transmission, the cloud server decrypting the data and integrating it into a data lake; fusing the data in the data lake on the cloud platform and integrating it into a data set; constructing a CO2 concentration based on the integrated data set. 2 Concentration correction model, adjust CO 2 Concentration measurements; combined with adjusted CO 2 Concentration measurement values ​​and historical data analysis are used to calculate dynamic thresholds for intelligent early warning. Early warning records are stored in the cloud platform database, and time series analysis is used to predict CO 2 Long-term trends in concentrations.

[0008] As a preferred embodiment of the method for testing carbon dioxide concentration of the present invention, the steps of collecting multi-wavelength spectral data and environmental data are as follows:

[0009] At selected monitoring points, infrared spectrometers equipped with quantum cascade lasers are installed to collect multi-wavelength spectral data;

[0010] Connect the built-in temperature and humidity sensor to the spectrometer to record the ambient temperature and humidity of the current environment;

[0011] The infrared spectrometer scans continuously, emitting infrared light and entering the monitoring environment through the optical path. The infrared light interacts with gas molecules, and different gases absorb light of different wavelengths, forming a unique spectrum.

[0012] The detector of the spectrometer receives the transmitted and reflected spectral signals and converts the optical signals into electrical signals, thereby obtaining the spectral data of the ambient gas;

[0013] The temperature and humidity sensor simultaneously records the temperature and humidity of the current environment.

[0014] As a preferred solution of the method for testing carbon dioxide concentration of the present invention, data packaging and preliminary analysis are performed, and the specific steps are as follows:

[0015] The microcontroller executes a preliminary spectral data analysis algorithm to predict the gas concentration using the intensity of the transmitted light and the intensity of the incident light as well as the known optical path length and absorption coefficient. The expression is:

[0016]

[0017] Among them, I 0 is the intensity of the incident light, I is the intensity of the transmitted light, and C is the predicted CO 2The concentration of light, L is the length of the path through which light passes through the gas, and α is the absorption coefficient of the gas type and wavelength, which is related to the gas type and wavelength;

[0018] The built-in embedded microcontroller receives the spectral data and the temperature and humidity data, and packages the spectral data and the temperature and humidity data by organizing and formatting them, adding header and tail information, data compression, and data packet encapsulation.

[0019] As a preferred solution of the method for testing carbon dioxide concentration of the present invention, the data packet is encrypted and sent to the cloud server by wireless transmission, and the cloud server decrypts the data and integrates it into a data lake. The specific steps are as follows:

[0020] In the device, the end microcontroller uses the AES encryption algorithm to encrypt the environmental data packet, and uses the Diffie-Hellman protocol for key negotiation to generate an encrypted data stream;

[0021] Using Long Range, the encrypted data packets are converted into signals suitable for wireless transmission;

[0022] The wireless module on the device sends the modulated signal into the air and searches for the nearest gateway through the LoRaWAN network;

[0023] After the nearest LoRa gateway receives the signal, it demodulates and repackages the data, and after packaging, it forwards it to the cloud server for data transmission over the Internet;

[0024] The cloud server receives the data from the gateway and uses the same encryption algorithm and key as the device to decrypt the data containing CO 2 Information on concentration, temperature and humidity;

[0025] The server integrates the decrypted data with data from other monitoring points into a unified data lake and monitors the CO 2 Concentration data, temperature and humidity data are classified and stored.

[0026] As a preferred solution of the method for testing carbon dioxide concentration of the present invention, the data in the data lake is merged and integrated into a data set on the cloud platform, and the specific steps are as follows:

[0027] CO in the data lake 2 Clean, verify, standardize and normalize the concentration data and temperature and humidity data;

[0028] Based on the common time frame requirements of all monitoring point data in the data lake, a unified benchmark time interval is established as the time benchmark for all data in the data lake;

[0029] Adopt the nearest neighbor matching strategy to accurately find the data record closest to each benchmark time, and then use the linear interpolation method to fill in the missing monitoring point data near the benchmark time to align the time of data in different geographical locations in the data lake;

[0030] The address information of the monitoring points is converted into longitude and latitude coordinates through geocoding, and then these coordinates are unified into a common projection coordinate system through projection transformation;

[0031] Use spatial indexing technology to accelerate the retrieval and processing of geospatial data and perform spatial alignment of data from different geographic locations in the data lake;

[0032] Through comprehensive time alignment and space alignment, it facilitates the deep integration of cross-regional monitoring data in the data lake;

[0033] Use ETL to integrate the fused data into data set D.

[0034] As a preferred embodiment of the method for testing carbon dioxide concentration of the present invention, wherein: the CO 2 Concentration correction model, adjust CO 2 Concentration measurement value, the specific steps are as follows:

[0035] Based on spectral data and temperature and humidity information, a CO 2 The concentration correction model adjusts the CO 2 The concentration prediction result is expressed as:

[0036]

[0037] in, is the corrected CO 2 concentration, C is the CO obtained by preliminary analysis 2 concentration, T is the ambient temperature, H is the ambient humidity, T r is the reference temperature, H r is the reference humidity, β is the temperature sensitivity coefficient, γ is the humidity sensitivity coefficient, η is the seasonal fluctuation amplitude, ω is the angular frequency, t is the time, and φ is the periodic adjustment coefficient;

[0038] As a preferred embodiment of the method for testing carbon dioxide concentration of the present invention, wherein: the CO 2 The concentration measurement and historical data analysis are used to calculate the dynamic threshold for intelligent early warning. The specific steps are as follows:

[0039] Using LSTM to identify CO 2 The trend and periodic pattern of concentration change over time, and the determination of CO2 Baseline concentration level;

[0040] Determine CO from historical data 2 The baseline level of concentration is used to calculate the dynamic threshold based on the fluctuation of baseline and historical data. The expression is:

[0041]

[0042] Among them, τ t is the alert level set at time point t based on the volatility of historical data, m t is the moving average at time point t, and w is the dynamic threshold τ t Sensitivity to recent data changes, k is a positive constant factor, x i is the CO at time point i 2 The measured value of concentration;

[0043] Real-time monitoring of corrected carbon dioxide concentration and with the dynamic threshold τ t Make comparisons to control the warning mechanism and the severity level of the warning;

[0044] when When CO 2 The concentration does not exceed the normal range, so there is no need to trigger the warning mechanism;

[0045] when When CO 2 The concentration exceeds the normal range, triggering the warning mechanism. Exceed τ t Determine the severity of the alarm and make corresponding strategies based on the severity level.

[0046] As a preferred solution of the method for testing carbon dioxide concentration of the present invention, the warning records are stored in the cloud platform database, and the CO is predicted by time series analysis. 2 The long-term trend of concentration is as follows:

[0047] The warning records, CO 2 The concentration and environmental parameters are stored in the cloud platform database, and the historical data are analyzed using time series to identify periodic patterns, seasonal changes and potential nonlinear relationships, and predict CO 2 Long-term trends in concentrations, while integrating external data sources to enhance the comprehensiveness and accuracy of forecasts;

[0048] Based on the results of trend forecasting, a long-term trend forecast report is generated.

[0049] In a second aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the method for testing carbon dioxide concentration as described in the first aspect of the present invention is implemented.

[0050] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the method for testing carbon dioxide concentration as described in the first aspect of the present invention is implemented.

[0051] The beneficial effects of the present invention are: by collecting multi-wavelength spectral data and environmental data, combining the infrared spectrometer of the quantum cascade laser with the temperature and humidity sensor, high-precision CO 2 Concentration measurement. Preliminary analysis of data, encrypted transmission to the cloud, and data fusion and correction using deep learning technology have significantly improved the accuracy and efficiency of monitoring. The intelligent early warning system can effectively monitor CO through dynamic threshold calculation. 2 In addition, time series analysis is used to predict CO concentration changes and timely warn of abnormal conditions. 2 The long-term trend of concentration provides strong data support for environmental protection and public health management. The integrated application of this series of technologies not only strengthens the security and reliability of data, but also greatly improves the intelligence level and response speed of the monitoring system, which is of great significance for responding to global climate change and maintaining ecological balance. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0053] Figure 1 This is a flow chart of the method for testing carbon dioxide concentration in Example 1.

[0054] Figure 2 This is a flow chart of the intelligent early warning in Example 1. DETAILED DESCRIPTION

[0055] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0056] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0057] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0058] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, provides a method for testing carbon dioxide concentration, comprising the following steps:

[0059] S1. Collect multi-wavelength spectral data and environmental data, and perform data packaging and preliminary analysis.

[0060] Furthermore, an infrared spectrometer equipped with a quantum cascade laser is installed at the selected monitoring point (the best installation location is selected according to the site conditions to ensure that the infrared spectrometer can fully contact the ambient air and avoid obstruction and reflection affecting the measurement accuracy). QCL can emit high-power, narrow-linewidth infrared light, which is suitable for CO 2 The absorption peak is precisely detected, with particular attention paid to the band around 4.26 μm, which is the wavelength of CO 2 The main absorption band.

[0061] Connect the built-in temperature and humidity sensor to the spectrometer to record the ambient temperature and humidity of the current environment;

[0062] The infrared spectrometer scans continuously, emitting infrared light and entering the monitoring environment through the optical path. The infrared light interacts with gas molecules, and different gases absorb light of different wavelengths, forming a unique spectrum.

[0063] The detector of the spectrometer receives the transmitted and reflected spectral signals and converts the optical signals into electrical signals, thereby obtaining the spectral data of the ambient gas;

[0064] The temperature and humidity sensor simultaneously records the temperature and humidity of the current environment;

[0065] The microcontroller executes a preliminary spectral data analysis algorithm to predict the gas concentration using the intensity of the transmitted light and the intensity of the incident light as well as the known optical path length and absorption coefficient. The expression is:

[0066]

[0067] Among them, I 0 is the intensity of the incident light, I is the intensity of the transmitted light, and C is the predicted CO 2 The concentration of light, L is the length of the path through which light passes through the gas, and α is the absorption coefficient of the gas type and wavelength, which is related to the gas type and wavelength;

[0068] The built-in embedded microcontroller receives the spectral data and temperature and humidity data, and packages the data by organizing and formatting the data, adding header and footer information, data compression and data packet encapsulation.

[0069] It should also be noted that the process of converting optical signals into electrical signals and obtaining spectral data of environmental gases is achieved through an infrared spectrometer. Specifically, when the infrared beam emitted by the infrared spectrometer equipped with a quantum cascade laser (QCL) passes through the monitored environment, the CO 2 Molecules selectively absorb specific wavelengths of infrared light, forming characteristic absorption lines. After the infrared beam passes through the gas sample, the remaining light (transmitted light) is captured by the spectrometer's detector along with the reflected light. The detector, such as a photodiode array or a pyroelectric detector, converts the received light signal into an electrical signal that is proportional to the light intensity. This electrical signal is then amplified, digitized, and converted to a digital signal via an analog-to-digital converter (ADC) for processing by a microcontroller. By analyzing these digital signals, the microcontroller can reconstruct the CO 2 The spectral image, i.e. the light intensity distribution at different wavelengths, is used to extract CO 2 concentration information.

[0070] Data organization and formatting: The microcontroller organizes and formats the data. The data may need to be arranged according to a certain protocol or format, for example, placing spectral data in the first half of the data packet and environmental parameters in the second half, or defining data fields according to a specific protocol.

[0071] Add header and tail information: Add header information before the data, which usually contains metadata such as the data packet identifier, data type, data length, source address, destination address, etc. Add tail information at the end of the data packet, which may be a checksum or CRC (cyclic redundancy check) code for integrity checking.

[0072] Data compression: In order to reduce the bandwidth requirements and energy consumption of data transmission, data may be compressed. The compression algorithm can be a simple differential encoding (transmitting only the change in data) or a more complex algorithm such as LZ77, Huffman coding, etc.

[0073] Packet encapsulation: Finally, the data, header information, trailer information, and possible compression and encryption results are combined into a complete packet. This packet is now ready for transmission over the network or wireless interface.

[0074] S2, encrypts the data packet and sends it to the cloud server using wireless transmission. The cloud server decrypts the data and integrates it into a data lake.

[0075] Furthermore, in the device, the end microcontroller uses the AES encryption algorithm to encrypt the environmental data packet, and uses the Diffie-Hellman protocol for key negotiation to generate an encrypted data stream;

[0076] Using Long Range, the encrypted data packets are converted into signals suitable for wireless transmission;

[0077] The wireless module on the device sends the modulated signal into the air and searches for the nearest gateway through the LoRaWAN network;

[0078] After the nearest LoRa gateway receives the signal, it demodulates and repackages the data, and after packaging, it forwards it to the cloud server for data transmission over the Internet;

[0079] The cloud server receives the data from the gateway and uses the same encryption algorithm and key as the device to decrypt the data containing CO 2 Information on concentration, temperature and humidity;

[0080] The server integrates the decrypted data with data from other monitoring points into a unified data lake and monitors the CO 2 Concentration data, temperature and humidity data are classified and stored;

[0081] It should also be noted that the specific process of finding the nearest gateway through the LoRaWAN network is as follows: the wireless module on the device side is equipped with LoRa (Long Range) modulation technology, which converts the encrypted data packets into signals suitable for long-distance wireless transmission. LoRa technology utilizes the principle of spread spectrum communication and can provide long-distance transmission under low power consumption conditions, which is particularly suitable for remote monitoring devices in IoT applications. When the device sends these LoRa signals, the signals propagate in the air at a specific frequency and spread spectrum factor. The design of the LoRaWAN network allows multiple gateways to listen to the same wireless signal, which means that when the signal is broadcast, multiple gateways may receive the signal at the same time. However, because the LoRaWAN network uses geolocation and signal strength indication (RSSI) technology, it is able to identify the gateway with the strongest signal or the nearest one.

[0082] Demodulation and repackaging of data are as follows: After the nearest LoRa gateway receives the LoRa signal, it first demodulates the signal to recover the original data. This process involves reversing LoRa's modulation technology, extracting the data bit stream, and performing error correction. Subsequently, the gateway converts the data from the LoRa PHY layer format to the MAC layer, removes unnecessary overhead, and repacks it into a format that complies with IP network transmission. The data is securely transmitted to the cloud server via the Internet, achieving seamless conversion from physical layer signals to network layer data packets, ensuring remote transmission of monitoring data.

[0083] The integration into a unified data lake is as follows: After the server receives the decrypted monitoring data, it will integrate it with the previously collected data from other monitoring points to form a unified data lake. This process involves standardization and format unification of data to ensure that all data can be understood and processed under a common architecture. The data lake acts as a large, flexible repository that can accommodate data in various formats and sources, including structured, semi-structured and unstructured data. Through integration, the data lake provides a unified data view, which facilitates subsequent data analysis and mining.

[0084] Classified storage is as follows: Classified storage refers to the organized management of data in the data lake to ensure that different types of data can be effectively retrieved and analyzed. 2 Environmental monitoring information such as concentration data, temperature and humidity data will be assigned to corresponding categories for storage. This usually involves establishing data tags and metadata, as well as using directory and indexing technologies to improve the efficiency of data queries. Classified storage helps maintain a clear structure of data and simplify the data analysis process. It also facilitates compliance with data compliance and privacy protection regulations, ensuring proper isolation and protection of sensitive data.

[0085] S3. Integrate the data in the data lake into a data set on the cloud platform.

[0086] Furthermore, the CO 2 Clean, verify, standardize and normalize the concentration data and temperature and humidity data;

[0087] Based on the common time frame requirements of all monitoring point data in the data lake, establish a unified benchmark time interval, such as integer times every minute, hour, or day, as the time benchmark for all data in the data lake;

[0088] Adopt the nearest neighbor matching strategy to accurately find the data record closest to each benchmark time. Even if a monitoring point has data before and after the benchmark time, the point closest to it will be selected as the matching object. Then use linear interpolation to fill in the missing monitoring point data near the benchmark time, and align the time of data from different geographical locations in the data lake.

[0089] The address information of the monitoring points is converted into longitude and latitude coordinates through geocoding, and then these coordinates are unified into a common projection coordinate system through projection transformation;

[0090] Use spatial indexing technology to accelerate the retrieval and processing of geospatial data and perform spatial alignment of data from different geographic locations in the data lake;

[0091] Through comprehensive time alignment and space alignment, it facilitates the deep integration of cross-regional monitoring data in the data lake;

[0092] Use ETL to integrate the merged data into data set D;

[0093] It should also be noted that data cleaning: In the data lake, each piece of data is first cleaned to remove any obvious erroneous data, such as outliers or missing values ​​that are beyond the normal range. For missing values, if the missing ratio is small, you can use interpolation methods such as time series interpolation or fill it based on the average value of neighboring points; if the missing ratio is large, consider discarding the entry or using a machine learning model to predict and fill it.

[0094] Data validation: Ensure that the data format is correct, such as whether the date and time stamps are consistent, whether the value type is correct, and whether the data units are consistent. In addition, the integrity of the data needs to be verified to ensure that no important fields are missing.

[0095] Standardization: Standardize the data to eliminate the impact of dimension so that data from different monitoring points can be compared on the same scale. Standardization can be achieved by subtracting the mean and dividing by the standard deviation;

[0096] Normalization: Further scale the data to a fixed range, such as between 0 and 1, expressed as:

[0097]

[0098] Among them, x max and x min are the minimum and maximum values ​​in the data set, respectively. x represents a specific value in the original data set, and x′ represents the value after normalization.

[0099] Use ETL to integrate the fused data into data set D as follows:

[0100] Data extraction: Extract processed data from different partitions or tables in the data lake using ETL (Extract, Transform, Load) tools.

[0101] Data Integration: Merge all extracted data into a middle tier, which is a data warehouse, to ensure data consistency and integrity.

[0102] Data loading: Load the integrated data into the final dataset, which is a specially optimized big data storage solution, such as Hadoop HDFS, Amazon S3.

[0103] S4. Build CO based on the integrated dataset 2 Concentration correction model, adjusting CO 2 Concentration measurement value.

[0104] Furthermore, based on the spectral data and temperature and humidity information, a CO 2 The concentration correction model adjusts the CO 2 Concentration prediction results, the model structure contains multiple convolutional layers, fully connected layers and attention mechanisms to capture the local features and overall patterns of spectral data, and use environmental data (temperature, humidity) for multimodal fusion, the expression is:

[0105]

[0106] in, is the corrected CO 2 concentration, C is the CO obtained by preliminary analysis 2 concentration, T is the ambient temperature, H is the ambient humidity, T r is the reference temperature, H r is the reference humidity, β is the temperature sensitivity coefficient, γ is the humidity sensitivity coefficient, η is the seasonal fluctuation amplitude, ω is the angular frequency, t is the time, and φ is the periodic adjustment coefficient;

[0107] when Close to C, it means that environmental factors have little influence on the measured value;

[0108] when Significantly greater or less than C, indicating that temperature, humidity or seasonal changes have a significant impact on the measured value;

[0109] Divide the dataset D into training set D t , validation set D v ;

[0110] The training set D t As model input, train CO 2Concentration correction model, minimizing the loss function, is expressed as:

[0111]

[0112] Among them, L(θ) is the loss function, θ is a parameter set, including temperature sensitivity coefficient, humidity sensitivity coefficient, seasonal fluctuation amplitude, etc., x represents the input feature vector, including the factors affecting CO 2 All relevant environmental variables for concentration measurement, such as temperature, humidity, etc.

[0113] Use the validation set D v Adjust hyperparameters and prevent overfitting;

[0114] It should also be noted that at the end of each epoch, the validation set D v Calculate the loss and indicators (such as accuracy, recall, etc.) on the validation set to evaluate the performance of the model;

[0115] Observe the performance on the validation set. If the model is v The poor performance on may be due to overfitting or underfitting;

[0116] According to D v Adjust hyperparameters based on the performance. For example, if the model is overfitting, you can increase the regularization strength, reduce the network complexity, or add dropout layers. If it is underfitting, you can try increasing the network depth or width, reducing the regularization strength, or increasing the number of training rounds.

[0117] Repeat the training and evaluation process until D v Achieve satisfactory performance;

[0118] Monitoring D v If the performance no longer improves or starts to deteriorate within a certain number of consecutive epochs, training should be stopped to prevent the model from overfitting on the training set.

[0119] S5. Combined with adjusted CO 2 Concentration measurements and historical data analysis, intelligent early warning by calculating dynamic thresholds.

[0120] Furthermore, LSTM is used to identify CO 2 The trend and periodic pattern of concentration change over time, and the determination of CO 2 The baseline level of concentration (this can be a long-term mean or median, depending on the data distribution);

[0121] Determine CO from historical data 2The baseline level of concentration, which can be a long-term average or median, depends on the data distribution. Based on the fluctuations of the baseline and historical data, the dynamic threshold is calculated. The dynamic threshold is automatically adjusted with seasonal changes and weather conditions to reflect the effects of different background conditions on CO 2 The effect of concentration is expressed as:

[0122]

[0123] Among them, τ t is the alert level set at time point t based on the volatility of historical data, m t is the moving average at time point t, and w is the dynamic threshold τ t Sensitivity to recent data changes, k is a positive constant factor, x i is the CO at time point i 2 The measured value of concentration;

[0124] Real-time monitoring of corrected carbon dioxide concentration and with the dynamic threshold τ t Make comparisons to control the warning mechanism and the severity level of the warning;

[0125] when When CO 2 The concentration does not exceed the normal range, so there is no need to trigger the warning mechanism;

[0126] when When CO 2 The concentration exceeds the normal range, triggering the warning mechanism. Exceed τ t Determine the severity of the alarm and make corresponding strategies based on the severity level.

[0127] For example, if Ratio τ t If the level is higher than 50%, a Level 1 warning is triggered. At this time, the environmental monitoring personnel should be notified immediately to check the sensor status, confirm whether it is a false alarm, and start monitoring trend changes and prepare further response plans.

[0128] if Ratio τ t If the level is 50% higher, a Level 2 warning is triggered and a comprehensive emergency response plan is immediately implemented, including emergency evacuation of potentially threatened areas, notification of local emergency management departments, initiation of pollution control and cleanup procedures, and issuance of emergency health warnings to the public;

[0129] It should also be noted that the alarm should include the following information: CO exceeding the limit 2 Concentration value: specific value;

[0130] Monitoring point location: geographical coordinates or description of the monitoring point where the exceedance occurred;

[0131] Recommended Action: Based on the extent of the exceedance, provide appropriate recommendations such as increasing ventilation, adjusting environmental control equipment, or taking other emergency measures.

[0132] S6. Store the warning records in the cloud platform database and use time series analysis to predict CO 2 Long-term trends in concentrations.

[0133] Furthermore, the warning records, CO 2 The concentration and environmental parameters (such as temperature and humidity) are stored in the cloud platform database, and the historical data are analyzed using time series to identify periodic patterns, seasonal changes and potential nonlinear relationships, and predict CO 2 The long-term trend of concentration is analyzed, and external data sources such as weather forecasts, industrial activity index and population density are integrated to enhance the comprehensiveness and accuracy of the forecast;

[0134] Based on the results of trend forecasting, a long-term trend forecast report is generated.

[0135] The report should include an explanation of the forecast results and a forecast of future CO 2 Analysis of possible drivers of concentration changes.

[0136] It should also be noted that the use of time series analysis to predict CO 2 To determine the long-term trend of CO concentration, first, we extracted the CO 2 The time series of CO2 concentrations are analyzed and statistical methods are applied to identify periodic patterns and seasonal changes, such as annual and daily changes. Then, LSTM is used to reveal nonlinear relationships and potential trends in the data. At the same time, a variety of external data sources are integrated, including weather forecast data, industrial activity index, and population density information, which are connected to CO2 through API or data import. 2 Concentration data can be associated with the model to enhance the comprehensiveness and accuracy of the prediction model. For example, meteorological data can provide environmental conditions such as temperature, wind speed and precipitation that affect CO 2 Emissions and diffusion; the industrial activity index reflects the intensity of economic activity and is a CO 2 Population density is an important driver of CO emissions; 2 By incorporating these external variables into the model, more accurate predictions of CO 2 The changing trend of concentration provides strong support for environmental management decisions.

[0137] This embodiment also provides a computer device, which is suitable for the method of testing carbon dioxide concentration, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the method of testing carbon dioxide concentration proposed in the above embodiment.

[0138] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0139] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for testing the carbon dioxide concentration proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0140] In summary, the present invention integrates infrared spectroscopy technology and environmental sensing to accurately collect CO 2 Data; Encrypted transmission and cloud integration are used to ensure data security and build a unified data lake; Through data cleaning and deep learning models, CO 2Concentration measurement accuracy; the intelligent early warning system combines historical data, dynamically adjusts thresholds, and responds to abnormalities in a timely manner; stores early warning records, predicts long-term trends, and provides a scientific basis for environmental management, achieving CO 2 The automation and intelligence of monitoring have made significant contributions to environmental protection and climate research.

[0141] Example 2, referring to Table 1, is the second example of the present invention. To further verify the advancement of the present invention, experimental simulation data of a method for testing carbon dioxide concentration are provided.

[0142] The experiment was conducted at four different locations, each representing a typical environment (city center, suburbs, industrial area, forest edge), and an infrared spectrometer equipped with a quantum cascade laser (QCL) was installed at each monitoring point to ensure that the equipment had sufficient contact with the ambient air. The infrared spectrometer continuously scans, focusing on the band near 4.26μm to accurately detect CO 2 At the same time, the built-in temperature and humidity sensor records environmental parameters for later data correction.

[0143] First, an advanced infrared spectrometer system was deployed at four monitoring points in different environments to continuously collect CO 2 concentration and related environmental data, and package the data through preliminary algorithm analysis.

[0144] Secondly, the packaged data is securely encrypted and efficiently transmitted to the cloud through the LoRaWAN network. The cloud server decrypts and integrates the data to form a unified data lake.

[0145] Next, we use deep learning models to clean, integrate, and correct the information in the data lake to build an accurate CO 2 The concentration correction model is developed, and dynamic thresholds are determined based on historical data analysis to achieve intelligent early warning.

[0146] Finally, the warning records are stored in the cloud database, and the CO 2 The future trend of concentration is analyzed and detailed long-term prediction reports are generated, providing strong support for environmental monitoring and decision-making.

[0147] Table 1CO 2 Concentration prediction table

[0148]

[0149] Through the analysis of the data in the above table, it can be seen that the present invention monitors CO in different environments. 2The prediction accuracy of the concentration is higher than 95%, which reflects the high accuracy of the system. Compared with traditional monitoring methods, such as chemical sensors, whose accuracy is often limited by environmental factors, the present invention effectively overcomes the influence of environmental factors such as temperature and humidity on the measurement results through the correction of the deep neural network model, and significantly improves the CO 2 Accuracy of concentration measurement.

[0150] The method for measuring carbon dioxide concentration of the present invention can not only monitor the CO 2 content, ensuring the accuracy and timeliness of data, and being able to predict CO through an integrated intelligent analysis system 2 The concentration trend can provide early warning of possible environmental risks. Especially for climate change research and industrial emission monitoring, this method provides more detailed and comprehensive data support. This reflects the innovation and practicality of the present invention in the field of environmental monitoring technology, and provides a scientific basis for the formulation of sustainable development and environmental protection strategies.

[0151] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for testing carbon dioxide concentration, characterized in that: include, Collect multi-wavelength spectral data and environmental data, and perform data packaging and preliminary analysis; The data packets are encrypted and sent to the cloud server using wireless transmission. The cloud server decrypts the data and integrates it into a data lake. Integrate the data in the data lake into data sets on the cloud platform; A CO2 concentration correction model is constructed based on the integrated data set to adjust the CO2 concentration measurement value; Combine the adjusted CO2 concentration measurement value with historical data analysis to provide intelligent early warning by calculating dynamic thresholds; The warning records are stored in the cloud platform database, and the long-term trend of CO2 concentration is predicted using time series analysis; The specific steps for data packaging and preliminary analysis are as follows: The microcontroller executes a preliminary spectral data analysis algorithm to predict the gas concentration using the intensity of the transmitted light and the intensity of the incident light as well as the known optical path length and absorption coefficient. The expression is: Where I0 is the intensity of the incident light, I is the intensity of the transmitted light, C is the predicted CO2 concentration, L is the length of the light path through the gas, and α is the absorption coefficient of the gas type and wavelength; The built-in embedded microcontroller receives the spectral data and the temperature and humidity data, and packages the data by organizing and formatting the spectral data and the temperature and humidity data, adding header and footer information, data compression and data packet encapsulation; The data packet is encrypted and sent to the cloud server using wireless transmission. The cloud server decrypts the data and integrates it into a data lake. The specific steps are as follows: In the device, the end microcontroller uses the AES encryption algorithm to encrypt the environmental data packet, and uses the Diffie-Hellman protocol for key negotiation to generate an encrypted data stream; Using Long Range, the encrypted data packets are converted into signals suitable for wireless transmission; The wireless module on the device sends the modulated signal into the air and searches for the nearest gateway through the LoRaWAN network; After the nearest LoRa gateway receives the signal, it demodulates and repackages the data, and after packaging, it forwards it to the cloud server for data transmission over the Internet; The cloud server receives the data from the gateway and decrypts the information containing CO2 concentration, temperature and humidity using the same encryption algorithm and key as the device side; The server integrates the decrypted data with data from other monitoring points into a unified data lake, and classifies and stores CO2 concentration data, temperature and humidity data on the cloud platform; The specific steps of fusing and integrating the data in the data lake into a data set on the cloud platform are as follows: Clean, verify, standardize and normalize the CO2 concentration data and temperature and humidity data in the data lake; Based on the common time frame requirements of all monitoring point data in the data lake, a unified benchmark time interval is established as the time benchmark for all data in the data lake; Adopt the nearest neighbor matching strategy to accurately find the data record closest to each benchmark time, and then use the linear interpolation method to fill in the missing monitoring point data near the benchmark time to align the time of data in different geographical locations in the data lake; The address information of the monitoring points is converted into longitude and latitude coordinates through geocoding, and then these coordinates are unified into a common projection coordinate system through projection transformation; Use spatial indexing technology to accelerate the retrieval and processing of geospatial data and perform spatial alignment of data from different geographic locations in the data lake; Through comprehensive time alignment and space alignment, it facilitates the deep integration of cross-regional monitoring data in the data lake; Use ETL to integrate the merged data into data set D; The CO2 concentration correction model is constructed based on the integrated data set to adjust the CO2 concentration measurement value. The specific steps are as follows: According to the spectral data and temperature and humidity information, a CO2 concentration correction model based on deep neural network is constructed. By reducing the measurement error caused by environmental data, the CO2 concentration prediction result is adjusted. The expression is: in, is the CO2 concentration after correction, C is the CO2 concentration obtained by preliminary analysis, T is the ambient temperature, H is the ambient humidity, T r is the reference temperature, H r is the reference humidity, β is the temperature sensitivity coefficient, γ is the humidity sensitivity coefficient, η is the seasonal fluctuation amplitude, ω is the angular frequency, t is the time, and φ is the periodic adjustment coefficient.

2. The method for testing carbon dioxide concentration as claimed in claim 1, characterized in that: The specific steps of collecting multi-wavelength spectral data and environmental data are as follows: At selected monitoring points, infrared spectrometers equipped with quantum cascade lasers were installed; Connect the built-in temperature and humidity sensor to the spectrometer to record the ambient temperature and humidity of the current environment; The infrared spectrometer scans continuously, emitting infrared light and entering the monitoring environment through the optical path. The infrared light interacts with gas molecules, and different gases absorb light of different wavelengths, forming a unique spectrum. The detector of the spectrometer receives the transmitted and reflected spectral signals and converts the optical signals into electrical signals, thereby obtaining the spectral data of the ambient gas; The temperature and humidity sensor simultaneously records the temperature and humidity of the current environment.

3. The method for testing carbon dioxide concentration as claimed in claim 2, characterized in that: The method combines the adjusted CO2 concentration measurement value and historical data analysis to calculate the dynamic threshold for intelligent early warning. The specific steps are as follows: Use LSTM to identify the trend and periodic pattern of CO2 concentration over time, and determine the baseline level of CO2 concentration based on the change trend; The baseline level of CO2 concentration is determined based on historical data, and the dynamic threshold is calculated based on the fluctuation of baseline and historical data. The expression is: Among them, τ t is the alert level set at time point t based on the volatility of historical data, m t is the moving average at time point t, and w is the dynamic threshold τ t Sensitivity to recent data changes, k is a positive constant factor, x i is the measured value of CO2 concentration at time point i; Real-time monitoring of corrected carbon dioxide concentration and with the dynamic threshold τ t Make comparisons to control the warning mechanism and the severity level of the warning; when When the CO2 concentration exceeds the normal range, it is considered that the CO2 concentration does not exceed the normal range and there is no need to trigger the early warning mechanism; when When the CO2 concentration exceeds the normal range, the warning mechanism is triggered. Exceed τ t Determine the severity of the alarm and make corresponding strategies based on the severity level.

4. The method for testing carbon dioxide concentration as claimed in claim 3, characterized in that: The warning records are stored in the cloud platform database, and the long-term trend of CO2 concentration is predicted by time series analysis. The specific steps are as follows: Store warning records, CO2 concentrations, and environmental parameters in the cloud platform database, use time series to analyze historical data, identify periodic patterns, seasonal changes, and potential nonlinear relationships, and predict long-term trends in CO2 concentrations. At the same time, integrate external data sources to enhance the comprehensiveness and accuracy of predictions. Based on the results of trend forecasting, a long-term trend forecast report is generated.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method for testing the carbon dioxide concentration according to any one of claims 1 to 4 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for testing carbon dioxide concentration according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Environmental data monitoring method for industrial production site

    CN118464114A