Data enhancement method in gas classification system, gas classification method and system
By using adjustable amplitude periodic signal driving technology in the MEMS gas sensor system, the response data of the gas sensor is enhanced, the problem of insufficient data sources is solved, a more accurate gas classification effect is achieved, and the system is kept small and low-power. consumption characteristics.
Patent Information
- Application Number
- CN202410606754.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-16
AI Technical Summary
The gas response data sources in existing MEMS gas sensor systems are limited, resulting in inaccurate classification results, and the characteristics of miniaturization, low power consumption, and low cost are lost as the number of sensors increases.
By using an amplitude-modulated periodic signal to drive the heating element in the gas sensor array, multiple voltage driving signals are generated, allowing the sensor to work under different voltage conditions, and the response data is collected for data enhancement to form a richer set of gas characteristic samples.
Without increasing the number of sensors, the information content of gas data is significantly increased, the accuracy of gas classification and the identification ability of the system are improved, and the hardware complexity and algorithm complexity are balanced.
Smart Images

Figure CN118169340B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of gas classification and electrical digital signal processing, and specifically relates to a data enhancement method, a gas classification method and a gas classification system in a gas classification system. Background Art
[0002] At present, most electronic nose systems based on MEMS gas sensors adopt a multi-sensor integrated hardware design solution, with the aim of providing as much raw data as possible for the subsequent recognition algorithm. However, when the number of physical sensors increases significantly, the characteristics of miniaturization, low power consumption and low cost are lost.
[0003] In existing related research, there are pulse heating modulation schemes, and their purposes are divided into two categories: one is to use high-frequency pulse modulation to achieve power consumption reduction while maintaining the stability of the sensor working condition; the other is to use low-frequency pulses to obtain "gas dynamic response" to improve classification accuracy. Obviously, the latter also has the characteristics of reducing power consumption, and it has been proven to have a beneficial effect on improving classification accuracy. However, in the aforementioned schemes, the designed methods and modulation schemes are single, and square waves, triangle waves or sine waves with fixed amplitudes are often used. After the heating voltage changes, it takes a certain amount of time for the sensor to reach a new steady state, which leads to limited information expansion and cannot significantly reduce network complexity and improve classification accuracy. Summary of the invention
[0004] In view of the above analysis, the embodiments of the present invention aim to provide a data enhancement method, a gas classification method and a gas classification system in a gas classification system, so as to solve the problems in the prior art that the gas response data source is limited and the gas classification effect is not accurate enough.
[0005] In one aspect of the present disclosure, a data enhancement method in a gas classification system is provided, comprising:
[0006] Perform the following operations for any gas sensor in the gas sensor array of the gas classification system:
[0007] Based on pre-set k regulated voltage levels, generating k A voltage drive signal;
[0008] A voltage driving signal is used to drive a heating element of a gas sensor in a gas classification system, so that the heating element of the gas sensor works under different voltage driving signals; the voltage driving signal is an amplitude-adjustable periodic signal;
[0009] Under each voltage driving signal, the response data of the gas sensor is collected as gas sample data for gas analysis.
[0010] Optionally, the pre-set k regulated voltage levels, generating k The voltage drive signals include:
[0011] At the first voltage V + and the second voltage V - Set within the range k Regulated voltages V1, V2, ... V k ;
[0012] The optimal driving voltage of the gas sensor is the baseline V0, and the corresponding gas-sensitive resistance is R0; a positive shift is applied to the optimal driving voltage to the first voltage V + The corresponding gas-sensitive resistance is R + ; Apply a negative offset to the optimal driving voltage to a second voltage V - The corresponding gas-sensitive resistance is R - .
[0013] Optionally, the step of using a voltage driving signal to drive a heating element of a gas sensor in a gas classification system comprises:
[0014] The microcontroller outputs a pulse width modulation signal, which, after passing through the gate driver, generates a switch control signal with the same frequency and duty cycle;
[0015] After low-pass filtering, the switch control signal outputs a DC signal whose voltage amplitude is positively correlated with the duty cycle;
[0016] The DC signal is used to control the current passing through the MOS tube, so that the heating element of the gas sensor works under different voltage driving signals.
[0017] Optionally, collecting response data of the gas sensor under each voltage driving signal includes:
[0018] Setting a unique driving state identification signal for each voltage driving signal;
[0019] generating a driving state identification signal when changing the sensor voltage driving signal;
[0020] The driving state identification signal and the response data are synchronously recorded to generate original data for storage.
[0021] Optionally, after collecting the response data of the gas sensor under each voltage driving signal, the method further includes:
[0022] Separating the original data according to the driving state identification signals of different voltage driving signals, and obtaining response data under each voltage driving signal after separation;
[0023] Remove lag residue from data;
[0024] Extract the envelope waveform of the data after the hysteresis residue is removed to obtain the envelope under each voltage driving signal;
[0025] Different envelopes belonging to the same response process are merged to form a characteristic sample of a single gas; a set of characteristic samples corresponding to multiple gas labels constitutes a data set of the gas analysis system.
[0026] A second aspect of the present disclosure provides a gas classification method, comprising:
[0027] Using any of the above data enhancement methods in the gas classification system to collect and obtain the gas sample data to be classified;
[0028] Inputting the to-be-classified gas sample data into a gas classification neural network model to obtain a classification result;
[0029] The gas classification neural network model is a model obtained by training the neural network model using a training data set, and the training data set is a set of feature samples of multiple gas labels collected using any of the data enhancement methods in the gas classification system described above.
[0030] In a third aspect of the present disclosure, there is provided a gas classification system, comprising a sensor array, a microcontroller, a sensor driving module, and a data processing module;
[0031] Wherein, the sensor array includes a sensor array composed of N gas sensors;
[0032] The sensor driving module is used to generate a voltage driving signal, and the voltage driving signal is used to drive the heating element of the gas sensor to drive the heating element of the gas sensor to k The voltage driving signal is an amplitude-adjustable periodic signal;
[0033] The microcontroller is connected to each gas sensor respectively, and is used to collect response data of the gas sensor under each voltage driving signal;
[0034] The data processing module is used to extract features from the response data, and compare the extracted features with known response features in a database to identify gas information.
[0035] Optionally, each gas sensor is connected to a differential amplifier circuit, and N gas sensors generate N voltage signal outputs through N groups of differential amplifier circuits; the N voltage signals are input to the acquisition port of the microcontroller.
[0036] Optionally, the sensor driving module includes a gate driver and a MOS tube;
[0037] The microcontroller is also used to generate a pulse width modulation signal and control the duty cycle of the pulse width modulation signal;
[0038] The pulse width modulation signal generates a switch control signal with the same frequency and duty cycle after passing through the gate driver;
[0039] After low-pass filtering, the switch control signal outputs a DC signal whose voltage amplitude is positively correlated with the duty cycle;
[0040] The DC signal is used to control the current passing through the MOS tube, so that the heating element of the gas sensor works under different voltage driving signals.
[0041] Optionally, the data processing module includes:
[0042] A data separation unit, used to separate the original data according to the driving state identification signals of different voltage driving signals, and obtain the response data under each voltage driving signal after separation;
[0043] A hysteresis residual removal unit, used to remove hysteresis residuals in data;
[0044] An envelope waveform extraction unit is used to extract the envelope waveform of the data after the hysteresis residue is removed to obtain the envelope under each voltage driving signal;
[0045] The data generation unit is used to merge different envelopes belonging to the same response process to form a characteristic sample of a single gas; a set of characteristic samples corresponding to multiple gas tags is generated to form a data set of the gas analysis system.
[0046] The data enhancement method in the gas classification system provided by the present application is for any gas sensor in the gas sensor array: based on the pre-set k voltage stabilization levels, k voltage drive signals are generated; the voltage drive signal is used to drive the heating element of the gas sensor in the gas classification system, so that the heating element of the gas sensor works under different voltage drive signals; under each voltage drive signal, the response data of the gas sensor is collected as gas sample data for gas analysis. The present application drives the sensor based on an adjustable amplitude periodic signal, and achieves the effect of increasing the number of sensors without increasing the actual number of sensors. It realizes the enhancement of source data at the source of data generation, greatly increases the amount of information of the gas data, and achieves a more accurate gas classification effect. In addition, the present application also provides a gas classification method and a gas classification system with the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of this specification 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 recorded in the embodiments of this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0048] Figure 1 A block diagram of the hardware infrastructure of the gas classification system provided for this application;
[0049] Figure 2 A flow chart of a data enhancement method in a gas classification system provided in the present application;
[0050] Figure 3 It is a schematic diagram of the waveform of an adjustable amplitude periodic voltage signal;
[0051] Figure 4 It is a schematic diagram of adjusting parameters of amplitude modulation periodic voltage signal;
[0052] Figure 5 Flowchart for further processing of the data;
[0053] Figure 6 A flow chart of a specific implementation process of the gas classification method provided in this application;
[0054] Figure 7 Another specific implementation process flow chart of the gas classification method provided in this application;
[0055] Figure 8 This is the logic block diagram of the sensor driver;
[0056] Fig. 9 It is a schematic diagram of the component concentration information of the mixed gas;
[0057] Fig.10 A schematic diagram of the original format signal waveform provided in an embodiment of the present application;
[0058] Fig.11 A schematic diagram of signal waveforms after four types of data are separated and spliced according to an embodiment of the present application;
[0059] Fig.12 A schematic diagram of a signal waveform after removing lag residues through a sliding window filtering method provided in an embodiment of the present application;
[0060] Fig.13 A schematic diagram of using the sum of change rates to perform sample capture according to an embodiment of the present application;
[0061] Fig.14 A response data diagram of a gas sample provided in an embodiment of the present application;
[0062] Fig.15 A schematic diagram of a constructed data set provided in an embodiment of the present application;
[0063] Fig.16 A schematic diagram of the final recognition result provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that, in the absence of conflict, the embodiments in the present disclosure and the features in the embodiments can be combined, separated, interchanged and / or rearranged with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0065] In the drawings, when the exemplary embodiments can be implemented differently, the specific process order can be performed in a different order than described. For example, two processes described successively can be performed substantially simultaneously or in a reverse order to the described order.
[0066] The terms used herein are for the purpose of describing specific embodiments and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "a (kind, person)" and "the (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is indicated that the stated features, integral bodies, steps, operations, parts, components and / or their groups exist, but it does not exclude the existence or addition of one or more other features, integral bodies, steps, operations, parts, components and / or their groups.
[0067] The present application provides a gas classification system, which specifically includes: a sensor array, a microcontroller, a sensor driving module and a data processing module. Figure 1 The hardware infrastructure block diagram of the gas classification system provided in this application is shown.
[0068] The sensor array includes a sensor array composed of N gas sensors. Specifically, a sensor array composed of N gas sensors can be constructed according to the expected goal of the classification task and the performance indicators of the optional sensors. For example, in a specific embodiment, N is selected as 4, the expected goal is to distinguish 27 three-component mixed gas environments, the sensor is a sensor array composed of 4 different MEMS gas sensors, and a voltage signal is selected as the driving signal of the gas sensor.
[0069] The sensor driving module is used to generate a voltage driving signal, and the voltage driving signal is used to drive the heating element of the gas sensor to drive the heating element of the gas sensor to k The device works under different voltage drive signals, wherein the voltage drive signal is an amplitude-adjustable periodic signal.
[0070] As a specific implementation, the sensor driving module in the system is implemented by a gate driver and a MOS tube. The microcontroller is used to generate a pulse width modulation signal (PWM signal) and control the duty cycle of the pulse width modulation signal. The pulse width modulation signal is filtered out by a filter to remove the high frequency part and then generates a switch control signal; the gate driver is used to receive the switch control signal and control the current passing through the MOS tube, so that the heating element of the gas sensor works under different voltage drive signals.
[0071] like Figure 1 As shown, a PWM signal with a frequency of 1 kHz is generated by a microcontroller to control a gate driver to generate a switch control signal with the same frequency. Since the complete gas response of the MEMS sensor is at the minute level, the amplitude modulation periodic signal used to drive the sensor should be a low-frequency signal (the actual measurement shows that the effect is better when this signal is at least ≤2Hz). The signal output by the gate driver is then filtered through a second-order RC filter to remove the high-frequency part of the switch control signal. In this way, by adjusting the duty cycle of the PWM signal generated by the microcontroller, the amplitude of the MOS tube's turn-on signal can be adjusted.
[0072] Correspondingly, the amplitude of the start-up signal of the MOS tube causes the heating drive signal of the sensor to change in the same regular pattern, thereby realizing the adjustable amplitude periodic voltage signal drive of the sensor.
[0073] The microcontroller is connected to each gas sensor respectively, and is used to collect response data of the gas sensor under each voltage driving signal.
[0074] The data processing module is used to extract features from the response data, and compare the extracted features with known response features in a database to identify gas information.
[0075] Each sensor has its own differential amplifier circuit. N gas sensors generate N voltage signal outputs through N groups of differential amplifier circuits. The N voltage signals are input to the acquisition port of the microcontroller. In order to save hardware costs, the N voltage signals are connected to the ADC acquisition port of the microcontroller through an external analog multiplexer to realize data acquisition.
[0076] Gas sensors output analog signals under different voltage drives, which usually reflect the sensor's response to a specific gas concentration. The analog signals are input to the ADC, and the response of each sensor is converted to digital form by the ADC. Among them, the data width of each sensor response signal after ADC conversion can be 12 bits, and the value range is 0~4095.
[0077] The data storage program inside the microcontroller receives the digital data from the ADC and further formats it, including using spaces as data separators, which facilitates subsequent reading and processing of the data. The response signals of each sensor at different voltage regulation levels are effectively identified for subsequent accurate analysis.
[0078] As a specific implementation, a unique driving state identification signal may be allocated to each voltage stabilization level stage, and the signals are stored in a fixed order with spaces as separators and line numbers as time sequence, and finally stored in a txt text format file.
[0079] Specifically, the data processing module provided in this application may specifically include:
[0080] The data separation unit is used to separate the original data according to the driving state identification signals of different voltage driving signals, and obtain the response data under each voltage driving signal after separation.
[0081] The hysteresis residual removal unit is used to remove the hysteresis residual in the data.
[0082] The envelope waveform extraction unit is used to extract the envelope waveform of the data after the lag residue is removed, so as to obtain the envelope under each voltage driving signal.
[0083] The data generation unit is used to merge different envelopes belonging to the same response process to form a characteristic sample of a single gas; a set of characteristic samples corresponding to multiple gas tags is generated to form a data set of the gas analysis system.
[0084] This application is based on the adjustable amplitude periodic signal driving sensor, which achieves the effect of increasing the number of sensors without increasing the actual number of sensors, realizes the enhancement of source data at the source of data generation, greatly increases the amount of information of gas data, and achieves a more accurate gas classification effect. This application can be embedded as a part of other similar related research to give full play to the potential of the overall system. In addition, the entire system described in this application is a balanced and coordinated system, which significantly improves the accuracy of task objectives while balancing the hardware structure and algorithm complexity.
[0085] The data enhancement method in the gas classification system provided in this application, and its specific implementation process flow chart is as follows Figure 2As shown, the process specifically includes:
[0086] Perform the following operations on any gas sensor in the gas sensor array of the gas classification system:
[0087] S201: Based on pre-set k regulated voltage levels, generating k A voltage drive signal.
[0088] Preset k These levels represent the driving voltage of the gas sensor heating element under different working conditions.
[0089] S202: Using a voltage driving signal to drive a heating element of a gas sensor in a gas classification system, so that the heating element of the gas sensor works under different voltage driving signals; the voltage driving signal is an amplitude-adjustable periodic signal.
[0090] Based on these regulated voltage levels, the k The gas sensor is driven by a voltage drive signal, each of which corresponds to a level. The signal is an adjustable amplitude periodic signal, that is, its amplitude (maximum value of the voltage) and period (frequency of signal repetition) can be adjusted as needed. These voltage drive signals are used to activate the heating element of the gas sensor. The heating element will produce different temperature conditions under different voltage drives, thereby changing the sensor's response characteristics to the gas.
[0091] S203: Under each voltage driving signal, the response data of the gas sensor is collected as gas sample data for gas analysis.
[0092] Under each voltage drive signal, the system collects the response data of the gas sensor. This data captures the sensor's reaction to the gas under specific heating conditions. The collected response data is used as gas sample data, and different types of gases can be detected and classified by analyzing this data.
[0093] It is understandable that, by changing the heating conditions of the sensor, the present application can obtain more information about the gas response, thereby increasing the diversity of the data set. Richer data enables the gas classification model to more accurately identify different gases or gas mixtures.
[0094] The following is based on the pre-set k regulated voltage levels, generating kThe process of a voltage drive signal is further elaborated in detail. For MEMS gas sensors, under different heating drive voltages, the baseline resistance R0 of its gas-sensitive part in the air will change greatly. As in the embodiment of the present application, the R0 variation range of the sensor is 10KΩ (standard operating drive voltage 3.3V) ~ 20MΩ (0.1V drive voltage). Therefore, it is necessary to set appropriate parameters for the adjustable periodic voltage signal to ensure that the resistance variation range of the sensor is always within the range of the differential amplifier circuit and the microcontroller ADC. Within.
[0095] According to the optimal driving voltage of the gas sensor as the baseline V0, the corresponding gas-sensitive resistance is R0; a positive offset is applied to it to the first voltage V + At this time, the corresponding gas-sensitive resistance is R + ; Apply a negative offset to the second voltage V - The corresponding gas-sensitive resistance is R - At the first voltage V + and the second voltage V - Set within the range k Regulated voltages V1, V2, ... V k . Figure 3 The waveform of the adjustable amplitude periodic voltage signal is shown. + and the second voltage V - range, set voltage regulation level 1, voltage regulation level 2, voltage regulation level 3 and voltage regulation level 4.
[0096] Using a voltage drive signal to drive a heating element of a gas sensor in a gas classification system includes:
[0097] A pulse width modulation signal is generated by a microcontroller; the average output voltage is controlled by adjusting the duty cycle of the pulse width modulation signal. The pulse width modulation signal output by the microcontroller generates a switch control signal with the same frequency and duty cycle after passing through a gate driver. The switch control signal is low-pass filtered to output a DC signal with a voltage amplitude positively correlated with the duty cycle. The DC signal is used to control the switch and the opening degree of the MOS tube, that is, to control the current passing through the MOS tube, so that the heating element of the gas sensor works under different voltage drive signals.
[0098] The microcontroller generates a PWM signal whose duty cycle (i.e. the proportion of time that the high level state occupies) can be adjusted. By adjusting the duty cycle of the PWM signal, its average voltage can be controlled. The higher the duty cycle, the higher the average voltage; the lower the duty cycle, the lower the average voltage.
[0099] After the PWM signal passes through the gate driver, it generates a switch control signal with the same frequency and duty cycle. After low-pass filtering, the switch control signal outputs a DC signal with a voltage amplitude positively correlated with the duty cycle. This DC signal is used to control the current passing through the MOS tube. When the DC signal is turned on, the MOS tube allows current to flow, thereby heating the sensor element. The MOS tube controls the size of the current flowing through the MOS tube according to the degree of opening of the DC signal, thereby controlling the current and temperature of the gas sensor heating element. The temperature of the heating element directly affects the response performance of the gas sensor to different gases.
[0100] The step of collecting the response data of the gas sensor under each voltage driving signal includes: setting a unique driving state identification signal for each voltage driving signal; generating a driving state identification signal when the sensor voltage driving signal is changed; and synchronously recording the driving state identification signal and the response data to generate raw data for storage.
[0101] A unique drive state identification signal is set for each voltage level stage. This signal can be a simple digital code or a more complex code to clearly indicate the voltage condition under which the sensor is working. The microcontroller generates a corresponding drive state identification signal when changing the voltage level of the sensor. This requires embedding specific logic in the microcontroller to ensure that each voltage change is accompanied by an update of the identification signal.
[0102] While the ADC converts the analog signal of the sensor into a digital signal, the drive state identification signal is recorded synchronously with the corresponding data. This usually means that an identification code is recorded next to each data sample, indicating the voltage state in which the data sample was collected. In this way, during the data analysis stage, the data collected under different voltage conditions can be filtered, classified or compared based on the drive state identification signal.
[0103] Figure 4 A schematic diagram of adjusting parameters of an amplitude modulation periodic voltage signal is shown, and driving state identifiers 1, 2, 3, and 4 are used to identify sampling signals under different voltage driving signals.
[0104] After collecting the response data of the gas sensor under each voltage driving signal, the process further includes: further processing the data. Figure 5 , the process specifically includes the following steps:
[0105] S501: Separating the original data according to the driving state identification signals of different voltage driving signals, and obtaining response data under each voltage driving signal after separation.
[0106] The collected continuous data are grouped into raw data according to the driving state identification signals at different voltage stabilization level stages, so as to analyze the response at each voltage stabilization level separately.
[0107] The drive state identification signal output by the microcontroller is used as a delimiter to divide the data according to the voltage drive stage. Each time the voltage changes, a new data group is recorded to ensure that the data is associated with a specific drive state.
[0108] S502: Remove lag residues in the data.
[0109] When the sensor heating drive signal changes, the sensor's working condition needs a certain amount of time to stabilize. The data collected directly from the change point may contain noise or mutations caused by state transition. Therefore, in the samples after the original data is spliced, a spike-like signal will be generated at the splicing point of adjacent samples - hysteresis residue. The direction of the spike depends on the change in the driving voltage when the sensor transitions from the previous working condition to the current working condition. For each group of separated signals, the direction of the spike is determined.
[0110] Determine the hysteresis residual width as The duration of each voltage regulation level segment is , the channel sampling rate is , then the number of data points that can be collected in a single voltage stabilization level segment is . Set a window length of ,in satisfy The maximum value filter is used to select the maximum value or the minimum value according to the spurt direction to remove the lag residue.
[0111] S503: extracting the envelope waveform of the data after the hysteresis residue is removed, and obtaining the envelope of each voltage driving signal.
[0112] After the hysteresis residue is removed, the sample obtained locally presents a sawtooth-like shape. This is because the sensor's response to the gas environment has not yet reached a steady state. However, the overall trend of the sample is the same as the sensor response trend in the single fixed voltage mode.
[0113] Using a sliding window median filter, the sample data can be quickly smoothed, and then a sliding window mean filter can generate the envelope of each sample.
[0114] For a single sensor, suppose you set k level of adjustable amplitude periodic voltage signal, then we can extract n=(k-1)×2 This is equivalent to virtualizing a MEMS sensor into n With only one sensor, the original sampled data can be enhanced.
[0115] S504: different envelopes belonging to the same response process are merged to form a characteristic sample of a single gas; a set of characteristic samples corresponding to multiple gas tags is generated to form a data set of the gas analysis system.
[0116] The specific gas response phase is extracted from the smoothed data, and the data is reorganized to construct feature samples for training or testing gas classification models.
[0117] According to the sum of the change rates of each group of envelope lines, by setting a suitable threshold, the target gas response phase and the clean air baseline phase can be distinguished. In this way, the gas data of the target gas response phase can be intercepted.
[0118] The envelopes of the same response process are combined and reorganized to form a characteristic sample of a gas tag. All characteristic samples of a gas tag constitute the characteristic sample group of the corresponding tag; the characteristic sample groups of all tags constitute the data set of the entire system.
[0119] Based on any of the above embodiments, the present application also provides a gas classification method, such as Figure 6 A specific implementation process of the gas classification method provided in this application is shown in the flowchart, and the process specifically includes:
[0120] S601: using the data enhancement method in the gas classification system to collect and obtain gas sample data to be classified;
[0121] S602: Inputting the to-be-classified gas sample data into a gas classification neural network model to obtain a classification result.
[0122] The gas classification neural network model is a model obtained by training the neural network model using a training data set, and the training data set is a collection of feature samples of multiple gas labels collected using the data enhancement method in the gas classification system.
[0123] Based on the training data set obtained by the aforementioned method, the parameters of the neural network model are tuned, which can be used to verify the recognition accuracy of the method described in the present invention.
[0124] The following uses the example of distinguishing 27 different mixed gases mixed with hydrogen, methane, and carbon monoxide to further elaborate on the method provided by the present application. Figure 7 Another specific implementation process diagram of the gas classification method provided in the present application, the process specifically includes:
[0125] S701: Construct a sensor array.
[0126] Four different sensors were selected to construct the sensor array based on the mission objectives. The sensors were selected based on their sensitivity and selectivity to specific gases.
[0127] S702: Build a hardware platform.
[0128] Specifically based on Figure 1 Build the corresponding hardware platform.
[0129] S703: Write a sensor driver.
[0130] Figure 8 Shows the logic block diagram of the sensor driver, based on Figure 8 Use the flowchart shown to write a sensor driver.
[0131] S704: Use an adjustable amplitude periodic voltage signal to drive the sensor.
[0132] Specifically, in this embodiment, a three-level adjustable amplitude periodic voltage signal is selected to drive the sensor. According to the sensor manual, the optimal driving voltages of the sensor are 2.8V, 2.5V, 2.5V, and 2.8V. Based on the optimal driving voltage values of the sensors, they are shifted up and down by 0.2V respectively. As long as the resistance variation range of the sensor is always within the range of the differential amplifier circuit and the microcontroller ADC, the sensor can be driven by the three-level adjustable amplitude periodic voltage signal. Within.
[0133] S705: Configure and sample gas.
[0134] according to Fig. 9 The component concentration information of the mixed gas is shown, and the corresponding 27 mixed gas samples are prepared. Start the sensor drive and signal sampling program, and when the sampling output signal baseline reaches a stable state; inject the prepared gas into the gas test chamber, wait for the sensor signal to reach a new steady state, inject clean air into the test chamber, and wait for the sensor to recover the baseline.
[0135] Repeat the above steps of "injecting the prepared gas into the gas test chamber, waiting for the sensor signal to reach a new steady state, injecting clean air into the test chamber, and waiting for the sensor to recover the baseline" until a predetermined number of times, such as 15 times, is reached to obtain 15 samples of a gas tag.
[0136] For each gas sample, repeat the above operation to obtain 15 samples for each gas label.
[0137] S706: Perform data processing.
[0138] The data was read and sorted, including sliding window filtering, median filtering, and smoothing to remove noise and residual fluctuations. Then, key features were extracted, such as the sum of the change rates, and thresholds were set to intercept useful response data. The 15 samples were integrated into one label category.
[0139] Read the txt file storing the data and get the data in original format, such as Fig.10 According to the pre-designed data sorting rules, the three-level data of each curve in each sample are divided into four categories and then spliced together to obtain the data as shown in Fig.11 The four types of data are subjected to sliding window maximum value filtering and median filtering; the data obtained by removing the lag residue is as follows Fig.12 shown.
[0140] The obtained data is filtered by sliding window mean to obtain a smooth envelope signal. The sum of the sample change rates is calculated, the threshold is set and the response data is intercepted, such as Fig.13 As shown. The 15 samples are integrated into one label category, such as Fig.14 Show.
[0141] S707: Model training and verification.
[0142] The neural network model is trained using the organized data set, and the model is validated after training to evaluate the effect of the model.
[0143] All the integrated samples are labeled with corresponding gas labels to complete the construction of the enhanced dataset. The dataset constructed in this example is as follows Fig.15 As shown. The obtained data set is used to train the neural network model. Fig.16 The training results shown verify the actual effect of this application.
[0144] The present application is based on an adjustable amplitude periodic signal driving sensor, which achieves the effect of increasing the number of sensors without increasing the actual number of sensors, realizes the enhancement of source data at the source of data generation, greatly increases the amount of information in the gas data, and achieves a more accurate gas classification effect.
[0145] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A data enhancement method in a gas classification system, characterized in that: include: Perform the following operations on any gas sensor in the gas sensor array of the gas classification system: Based on pre-set k regulation levels, generating k A voltage driving signal includes: at a first voltage V + and the second voltage V - Set within the range k Regulated voltages V1, V2, ... V k ; The optimal driving voltage of the gas sensor is the baseline V0, and the corresponding gas-sensitive resistance is R0; a positive shift is applied to the optimal driving voltage to the first voltage V + The corresponding gas-sensitive resistance is R + ; Apply a negative offset to the optimal driving voltage to a second voltage V - The corresponding gas-sensitive resistance is R - ; A voltage driving signal is used to drive a heating element of a gas sensor in a gas classification system, so that the heating element of the gas sensor works under different voltage driving signals; the voltage driving signal is an amplitude-adjustable periodic signal; The method of using a voltage drive signal to drive the heating element of the gas sensor in the gas classification system includes: a microcontroller outputs a pulse width modulation signal, which generates a switch control signal with the same frequency and duty cycle after passing through a gate driver; the switch control signal is low-pass filtered and outputs a DC signal with a voltage amplitude positively correlated with the duty cycle; the DC signal is used to control the current passing through the MOS tube, so that the heating element of the gas sensor works under different voltage drive signals; Under each voltage driving signal, the response data of the gas sensor is collected and used as gas sample data for gas analysis, including: separating the original data according to the driving state identification signals of different voltage driving signals, and obtaining the response data under each voltage driving signal after separation; removing the lag residue in the data; extracting the envelope waveform of the data after the lag residue is removed, and obtaining the envelope under each voltage driving signal; merging different envelopes belonging to the same response process to form a characteristic sample of a single gas; and generating a set of characteristic samples corresponding to multiple gas tags to form a data set of the gas analysis system.
2. The data enhancement method in the gas classification system according to claim 1, characterized in that: The step of collecting the response data of the gas sensor under each voltage driving signal includes: Setting a unique driving state identification signal for each voltage driving signal; generating a driving state identification signal when changing the sensor voltage driving signal; The driving state identification signal and the response data are synchronously recorded to generate original data for storage.
3. A gas classification method, characterized in that: include: Using the data enhancement method in the gas classification system according to any one of claims 1 or 2, collecting and obtaining the gas sample data to be classified; Inputting the to-be-classified gas sample data into a gas classification neural network model to obtain a classification result; Among them, the gas classification neural network model is a model obtained by training the neural network model using a training data set, and the training data set is a set of feature samples of multiple gas labels collected using the data enhancement method in the gas classification system according to any one of claims 1 to 2.
4. A gas classification system, characterized in that: It includes a sensor array, a microcontroller, a sensor driving module and a data processing module; Wherein, the sensor array includes a sensor array composed of N gas sensors; The sensor driving module is used to generate a voltage driving signal, and the voltage driving signal is used to drive the heating element of the gas sensor to drive the heating element of the gas sensor to k The voltage driving signal is an amplitude-adjustable periodic signal; The microcontroller is connected to each gas sensor respectively, and is used to collect response data of the gas sensor under each voltage driving signal; The data processing module is used to extract features from the response data, and compare the extracted features with known response features in a database to identify gas information; The data processing module includes: a data separation unit, which is used to separate the original data according to the driving state identification signals of different voltage driving signals, and obtain the response data under each voltage driving signal after separation; a hysteresis residue removal unit, which is used to remove the hysteresis residue in the data; an envelope waveform extraction unit, which is used to extract the envelope waveform of the data after the hysteresis residue is removed, and obtain the envelope under each voltage driving signal; a data generation unit, which is used to merge different envelopes belonging to the same response process to form a characteristic sample of a single gas; a set of characteristic samples corresponding to multiple gas tags is generated to form a data set of the gas analysis system; Among them, the sensor driving module includes a gate driver and a MOS tube; the microcontroller is also used to generate a pulse width modulation signal and control the duty cycle of the pulse width modulation signal; the pulse width modulation signal generates a switch control signal with the same frequency and duty cycle after passing through the gate driver; the switch control signal outputs a DC signal with a voltage amplitude positively correlated with the duty cycle after low-pass filtering; the DC signal is used to control the current passing through the MOS tube, so that the heating element of the gas sensor works under different voltage driving signals.
5. The gas classification system according to claim 4, characterized in that Each gas sensor is connected to a differential amplifier circuit, and N gas sensors generate N voltage signal outputs through N groups of differential amplifier circuits; the N voltage signals are input to the acquisition port of the microcontroller.
