Miniaturized odor accurate recognition system and method based on infrared spectrum
By using the miniaturized hardware structure and machine learning algorithm of infrared spectrum in VOCs detection equipment, the existing equipment has been solved, with large size, slow detection and low accuracy, and small, efficient and accurate gas detection and recognition.
Patent Information
- Application Number
- CN202411239722.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-09-03
- Filing Date
- 2024-09-05
- Publication Date
- 2024-11-29
AI Technical Summary
The existing VOCs detection equipment is large in size, long in detection cycle and insufficient accuracy, which limits its application in the fields of environmental protection and public health.
A miniaturized odor accuracy recognition system based on infrared spectroscopy was designed, and small, high-precision, and high-sensitivity spectral detection was achieved through a new structure of multi-light source group, double slits, gratings and receivers, combining PCA data dimensionality reduction and K- The means clustering algorithm uses the identification and classification of gas data.
It realizes small, portable, and high-precision gas detection, which can quickly identify multiple gas components, fast response speed, wide testing range, and high model identification accuracy.
Smart Images

Figure CN119044101A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of instruments and meters for gas component detection and concentration identification, and in particular to a miniaturized odor precision identification system and method based on infrared spectroscopy. Background Art
[0002] With the acceleration of global industrialization and urbanization, air quality issues such as haze, automobile exhaust and industrial emissions have attracted more and more public attention. Among the many air quality issues, volatile organic compounds (VOCs) are one of the key factors causing pollution. Some compounds in VOCs are irritating or toxic. Long-term or high-concentration exposure may cause headaches, irritation of the eyes, nose and throat, and may even cause chronic or acute poisoning symptoms. VOCs are important precursors to the formation of ground ozone and secondary organic aerosols (SOA). The ozone and particulate matter generated by these substances in the atmosphere can reduce air quality, affect visibility, and increase the occurrence of haze. The emission of VOCs may also affect the growth of crops, reduce crop yield and quality, and have a negative impact on agricultural production. Therefore, the development of a highly sensitive mobile detection platform that can accurately and quickly detect various types of harmful odors (including VOCs) is of great significance for environmental protection and public health.
[0003] In modern odor detection technology, spectral detection technology has become increasingly mature and has been widely used in many fields. At a specific frequency, gas phase molecules will show unique absorption characteristics, and the intensity of this absorption is proportional to the concentration of gas molecules. By measuring this absorption intensity, the concentration of gas molecules can be accurately measured. This method is called spectroscopy analysis and is one of the key technologies for monitoring the concentration of gas molecules in the atmosphere. However, the existing various types of VOCs detection equipment generally have some limitations, such as large size, long detection cycle, insufficient accuracy, etc. These problems limit the development of VOCs detection technology and bring challenges to researchers and engineers in related fields. Summary of the invention
[0004] In order to solve the above problems, the present invention discloses a miniaturized odor precision identification system and method based on infrared spectroscopy. Based on the manufacturing principle of the spectrometer, a small, portable spectrometer with simple structure and low cost is manufactured. It collects light signals and performs data analysis on the light signals through the same process as the existing spectrometer to accurately identify the type of odor. The problem that the present invention needs to solve is the structural design of the hardware system. By reasonably selecting multiple light source groups, double slits, gratings and new receiver structures, a small, high-precision and high-sensitivity small spectral odor detector can be built at a relatively low cost. At the same time, the construction of the database at the software level, the PCA feature processing method and the K-means clustering machine learning algorithm are also crucial to the identification and classification of gas data.
[0005] Technical solution: A precise odor identification system and method based on infrared spectroscopy. The specific implementation scheme includes hardware and software. The hardware implementation includes building a light source to emit near-infrared light, colored light and ultraviolet light, and realizing multi-light source coupling enhancement by forming a light source group, and the light is propagated into a closed chamber. The gas in the closed chamber absorbs the light intensity and produces an absorption spectrum. After that, the light passes through the multivariate enhancement of the double slits and comes to the grating arranged on the receiver. After the light is refracted, dispersion occurs. The dispersed light enters the light intensity receiver and is finally transmitted to the dedicated spectrum detection software.
[0006] Specifically, it includes a multi-light source emission array, which is responsible for providing the illumination required for infrared spectrum detection and realizing multi-band coupling of the spectrum. The sealed gas excitation chamber is used to isolate external interfering light and is the key area for gas molecules to be excited to a high energy state under multi-spectral radiation; the precision slit system converts the absorption spectrum into a line spectrum and performs multi-dimensional enhancement of the spectrum; the diffraction grating is used for interference and diffraction of the spectrum to form slender bright lines to determine the wavelength of the spectrum with high precision. The 1080p camera module has high resolution and sensitivity, and meets the needs of mobility and convenience while meeting the needs of spectral analysis. The camera module should be modified when used. Commonly used 1080p modules have infrared filters, which should be removed when used. At the same time, the grating sheet mentioned above should be properly cut to a suitable size and fixed to the front of the camera module. At the same time, the entire instrument should ensure that there is no light leakage. The coupling effect of the multi-spectral emission array, the multi-dimensional enhancement of the precision slit system, and the innovative structural design of the diffraction grating and the receiver are all key to achieving miniaturization and high resolution of the equipment.
[0007] The software design adopts the spectrum analysis software theremino_spectrometer. After the hardware system is built, the light source array is turned on, the range of the received light intensity is determined, and the spectrum data is received and processed in the software. Its data structure is in the form of an n×2 matrix, where the column vector represents the wavelength and the corresponding light intensity information, and the row represents the number of different wavelengths of light. During the acquisition process, the spectrometer is fixed at a certain point as much as possible to ensure the accuracy of the detection. 95% of the collected data is used as a training set and 5% as a test set for testing. The data set is read into the python program and becomes a data set of a matrix of 2000×1362 size after matrix transposition. The data set is standardized and normalized, and obvious error points are removed. At the same time, the important eigenvalues of the data set, such as the mean and standard deviation (STD), are recorded. The principal component analysis (PCA) data dimensionality reduction technology is used to compress the 1362-dimensional data to 3 dimensions, and a 2000×3 dimensionality reduction data set is obtained. While compressing the information dimension, the differences and characteristics in the data are retained to the maximum extent. Finally, the classic clustering algorithm (K-means) in Machine Learning is used for unsupervised learning to aggregate and classify data with similar characteristics to obtain n cluster centers. Each cluster center and its surrounding data points represent an odor label. The constructed labeled data set provides convenience for the detection and identification of unknown concentration gases in the future.
[0008] Beneficial effects of the present invention:
[0009] 1. The odor recognition system based on infrared spectroscopy, through the design of hardware structure and reasonable selection of devices, is smaller in size and cheaper than conventional equipment, and is more portable and widely used and tested.
[0010] 2. Compared with the gas sensor test mechanism, the infrared spectrum identification instrument can effectively realize the detection and analysis of multiple gases at the same time, with fast response speed and a wide range of tested gas components.
[0011] 3. Use PCA principal component analysis method to reduce data dimension, reduce the amount of calculation and improve data usability.
[0012] 4. Using K-means unsupervised clustering algorithm, the model recognition accuracy is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a hardware system for a miniaturized odor precision recognition system based on infrared spectroscopy;
[0014] Figure 2 A schematic diagram of the cluster learning classification center of a miniaturized odor precision recognition system based on infrared spectroscopy;
[0015] Figure 3 This is a gas detection flow chart of a miniaturized odor precision identification system based on infrared spectroscopy. DETAILED DESCRIPTION
[0016] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0017] The specific implementation scheme of the infrared spectroscopy-based odor accurate identification system and method of this embodiment includes two parts: hardware and software.
[0018] Specifically, the actual position relationship of the hardware parts is as shown in the attached Figure 1 As shown, the system includes, from left to right, a multi-light source emission array 1 and a sealed gas excitation chamber 2. The internal space of the excitation chamber should be kept as large as possible to ensure that there is a long enough distance for the odor to fully absorb the light source. A precision slit system (3) divides the internal space into two independent spaces. The only part of the spectrum that can pass through is the double slits on the slit wall. The diffraction grating 4 and the camera module 5. It should be noted that the grating is fixed at a close distance in front of the optical path of the camera lens module. Finally, the optical paths of the multi-light source array, slits, gratings, and camera module components should be kept on the same straight line as much as possible to ensure the efficiency of light intensity utilization to the greatest extent.
[0019] Specifically, the software design scheme uses the spectrum analysis software theremino_spectrometer. After the hardware system is built, the light source array is turned on, the range of received light intensity is determined, and the spectrum data is received and processed in the software. Its data structure is in the form of an n×2 matrix, where the column vector represents the wavelength and the corresponding light intensity information, and the row represents the number of different wavelengths of light. During the acquisition process, the spectrometer is fixed at a certain point as much as possible to ensure the accuracy of the detection. 95% of the collected data is used as a training set and 5% as a test set for testing. The data set is read into the python program, and after the matrix is transposed, it becomes a data set of a matrix of size 2000×1362. The data set is standardized and normalized, and obvious errors are eliminated. At the same time, the important eigenvalues of the data set, such as the mean and standard deviation (STD), are recorded.
[0020] Using principal component analysis (PCA) data dimensionality reduction technology, the 1362-dimensional data is compressed to 3 dimensions, resulting in a 2000×3 dimensionality reduction data set, which compresses the information dimension while retaining the differences and characteristics in the data to the maximum extent.
[0021] According to the attached Figure 2 As shown in the figure, the classic clustering algorithm (K-means) in Machine Learning is finally used for unsupervised learning to aggregate and classify data with similar characteristics to obtain n cluster centers. Each cluster center and its surrounding data points represent an odor label. The constructed label data set provides convenience for the detection and identification of unknown concentration gases in the future.
[0022] In summary, the gas detection process of a miniaturized odor accurate identification system based on infrared spectroscopy is as follows: Figure 3 As shown. The hardware part includes a multi-light source emission array, which is responsible for providing the illumination required for infrared spectrum detection and realizing multi-band coupling of the spectrum. The emitted light passes through a sealed gas excitation chamber, which is used to isolate external interference light. It is the key area for gas molecules to be excited to a high energy state under multi-spectral radiation; then the light path passes through a precision slit system to convert the absorption spectrum into a line spectrum and perform multi-dimensional enhancement of the spectrum; then the light path passes through a diffraction grating fixed in front of the camera module, and after interference and diffraction of the spectrum, it forms a long and thin bright pattern and reaches the 1080p camera module. The camera module has a high resolution and sensitivity, and meets the needs of spectral analysis while meeting the needs of mobility and convenience. The camera module should be modified when used. Common 1080p modules have infrared filters, which should be removed when used. At the same time, the grating sheet mentioned above should be properly cut to a suitable size and fixed in front of the camera module. At the same time, the entire instrument should ensure that there is no light leakage. The final absorption spectrum data was received by the spectral analysis software theremino_spectrometer. After data cleaning and preprocessing, the PCA (principal component analysis) method was used to compress the collected high-dimensional data (1362) into low-dimensional data (3), maximizing the retention of differences and features in the data for subsequent analysis. The final dimensionality-reduced data was trained and classified using the "k-means" unsupervised learning method in machine learning to obtain different gas type clustering centers for accurate identification of odors.
[0023] The coupling effect of the multi-spectral emission array, the multi-dimensional enhancement of the precision slit system, and the innovative structural design of the diffraction grating and receiver are all key to achieving miniaturization and high resolution of the device.
[0024] The technical means disclosed in the scheme of the present invention are not limited to the technical means disclosed in the above-mentioned implementation mode, but also include technical schemes composed of any combination of the above technical features.
Claims
1. An accurate odor recognition system based on infrared spectroscopy, characterized by: The system comprises, from left to right, a multi-light source emission array (1), a sealed gas excitation chamber (2), a precision slit system (3), a diffraction grating (4) and a camera module (5); wherein the interior space of the precision slit system (3) is divided into two independent spaces, and the only part through which the spectrum can pass is the double slits on the slit wall; wherein the diffraction grating (4) is fixed in front of the optical path of the camera module (5), and the method adopted is to directly attach the grating sheet in front of the lens of the camera module; The optical paths of the multi-light source emission array (1), the sealed gas excitation chamber (2), the precision slit system (3), the diffraction grating (4) and the camera module (5) are on the same straight line.
2. A method for accurate odor identification based on infrared spectroscopy, characterized in that: The following steps are involved: Step 1: The software design adopts the spectrum analysis software theremino_spectrometer to receive and process spectrum data, including wavelength and corresponding light intensity information; by collecting and analyzing a large amount of data, Step 2: Use principal component analysis (PCA) data compression technology to maximize the differences and characteristics of the data. Step 3: Use the clustering algorithm K-means for unsupervised machine learning to aggregate and classify data with similar characteristics. The constructed data set facilitates the detection and identification of unknown concentration gases in the future.
3. The method for accurate odor identification based on infrared spectroscopy according to claim 2, characterized in that: In step 1, the spectrum analysis software theremino_spectrometer is used. After the hardware system is built, the light source array is turned on, the range of received light intensity is determined, and the spectrum data is received and processed in the software. Its data structure is in the form of an n×2 matrix, where the column vector represents the wavelength and the corresponding light intensity information, and the row represents the number of different wavelengths of light. During the acquisition process, the spectrometer is fixed at a certain point as much as possible to ensure the accuracy of the detection. 95% of the collected data is used as a training set, and 5% is used as a test set for testing.
4. The method for accurate odor identification based on infrared spectroscopy according to claim 2, characterized in that: In step 2, the data set is read into the Python program and transformed into a 2000×1362-sized matrix data set after matrix transposition. The data set is standardized and normalized, and obvious errors are removed. At the same time, the important eigenvalue mean and standard deviation STD parameters of the data set are recorded. The principal component analysis (PCA) data dimensionality reduction technique is used to compress the 1362-dimensional data to 3 dimensions, obtaining a 2000×3 dimensionality reduction data set, which compresses the information dimension while maximally retaining the differences and characteristics in the data.
5. The method for accurate odor identification based on infrared spectroscopy according to claim 2, characterized in that: In step 3, the classic clustering algorithm K-means in Machine Learning is used for unsupervised learning to aggregate and classify data with similar characteristics to obtain n cluster centers. Each cluster center and its surrounding data points represent an odor label. The constructed label data set facilitates the detection and identification of unknown concentration gases in the future.
