Non-contact alcohol concentration measuring device and method based on spectral analysis
Through spectral analysis technology and support vector machine algorithm, non-contact measurement of alcohol concentration is achieved, solving the complex problems of traditional measurement methods and improving the convenience and accuracy of measurement.
Patent Information
- Application Number
- CN202410479984.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-08-27
AI Technical Summary
Traditional alcohol concentration measurement methods are complex and inconvenient, making it difficult to achieve efficient and accurate measurement.
Non-contact measurement devices and methods based on spectral analysis are used to collect spectral data using light sources, cuvettes and spectrometers, and predict alcohol concentration through support vector machine algorithms to achieve non-contact measurement.
It improves the convenience and accuracy of alcohol concentration measurement, with small size and accurate measurement results.
Smart Images

Figure CN118549338A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of alcohol concentration measurement, and in particular to a non-contact alcohol concentration measurement device and method based on spectral analysis. Background Art
[0002] An alcohol meter, also known as a breathalyser or ethanol meter, is a device used to measure alcohol concentration. These instruments are often used in areas such as traffic enforcement, workplace safety, drug testing, and personal health monitoring. Existing alcohol meters work on the basis of the interaction between alcohol and specific chemicals. The most common principle is based on the interaction of alcohol evaporation in the exhaled breath with a gas sensor, producing an electrochemical reaction or optical change. Another principle is to use liquid refractive index measurement. An alcohol meter usually contains a gas sensor or an optical sensor. The gas sensor can be an electrochemical sensor (such as an electrode sensor or a fuel cell sensor) or a semiconductor sensor. Optical sensors use a detector to measure changes in reflected light. An alcohol meter usually has a built-in data processing system that can convert the measurement results into an alcohol concentration value, usually in percentage or milligrams per liter (mg / L).
[0003] However, the traditional method of measuring alcohol concentration has the problem of complex measurement. Summary of the invention
[0004] Based on this, in order to solve the above technical problems, a non-contact alcohol concentration measurement device and method based on spectral analysis is provided to improve the convenience of alcohol concentration measurement.
[0005] A non-contact alcohol concentration measuring device based on spectral analysis, the device comprising: a light source, a cuvette, a spectrometer, and an analysis device, wherein:
[0006] The light source is arranged in front of the cuvette and is used to generate a light beam;
[0007] The cuvette is arranged in front of the spectrometer, and an alcohol solution is placed in the cuvette;
[0008] The spectrometer comprises a slit, a spectroscopic device, a CCD camera, and a data transmission module, wherein the data transmission module is used for performing data transmission with the analysis device;
[0009] The light splitting device is arranged in front of the CCD camera lens and is tilted relative to the incident light beam;
[0010] The light beam generated by the light source is irradiated onto the cuvette, penetrating the alcohol solution to form an incident light beam; the incident light beam is converted into spectral data by the spectrometer; the spectral data is transmitted to the analysis device through the data transmission module, and the concentration of the alcohol solution is predicted and displayed by the analysis device.
[0011] In one embodiment, the spectrometer further includes a filter and a polarizer; the filter and the polarizer are both arranged at the position of the CCD camera.
[0012] In one embodiment, the spectroscopic device is a diffraction grating.
[0013] In one of the embodiments, the CCD camera is provided with a photosensitive element for receiving light intensity and converting it into visible data.
[0014] In one embodiment, the distance between the light source and the cuvette is 8 cm to 12 cm.
[0015] A non-contact alcohol concentration measurement method based on spectral analysis is applied to a non-contact alcohol concentration measurement device based on spectral analysis, the method comprising:
[0016] The light source generates a light beam which is irradiated on the cuvette containing the alcohol solution to generate an incident light beam;
[0017] Collecting spectral data corresponding to the incident light beam through a spectrometer, and analyzing and processing the spectral data to obtain processed data;
[0018] The processed data is input into an analysis device, and the analysis device performs error analysis and precision fitting based on a prediction model of a support vector machine algorithm to output a concentration prediction result of an alcohol solution;
[0019] The concentration prediction result is displayed through the display interface of the analysis device.
[0020] In one embodiment, the method further comprises:
[0021] Alcohol solutions of different concentrations are placed in different cuvettes, and a light source is used to illuminate the cuvettes containing the alcohol solutions;
[0022] Placing a spectrometer directly behind the cuvette and placing the cuvette close to the light inlet of the spectrometer;
[0023] Connecting the spectrometer to an analysis device, and collecting spectral data corresponding to alcohol solutions of different concentrations through the spectrometer;
[0024] Analyzing and processing the spectral data by the analysis device to obtain a spectral data set;
[0025] The prediction model based on the support vector machine algorithm is obtained by training the spectral data set through the analysis device.
[0026] In one embodiment, the method further comprises:
[0027] Determining a training data set and a sample data set according to the spectral data set by the analysis device;
[0028] Using a hinge loss function to find soft margin parameters in the training data set and the sample data set;
[0029] The kernel parameters are determined according to the soft margin parameters, and the kernel technique is used based on the kernel parameters to design a support vector machine algorithm.
[0030] In one embodiment, the method further comprises:
[0031] The analysis device is used to search under a sequence grid in which the soft interval parameter and the kernel parameter are exponentially increasing, and cross-validation is used to check the soft interval parameter and the kernel parameter.
[0032] In one embodiment, the method further comprises:
[0033] Collecting data import instructions through the analysis device, and displaying the spectral data in the data import interface of the analysis device according to the data import instructions;
[0034] Alcohol concentration prediction instructions are collected through the analysis device, and the concentration prediction results are displayed in the display interface of the analysis device according to the alcohol concentration prediction instructions.
[0035] The above-mentioned non-contact alcohol concentration measurement device and method based on spectral analysis, by setting a light source, a cuvette, a spectrometer, and an analysis device to cooperate with each other, processes the collected spectral data, and completes the measurement of alcohol concentration through a calculation method based on a vector machine algorithm. It can realize non-contact measurement of alcohol solutions, and has the advantages of small size and high accuracy, which can improve the convenience of alcohol concentration measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of the structure of a non-contact alcohol concentration measuring device based on spectral analysis in one embodiment;
[0037] Figure 2 A schematic diagram of a flow chart of a non-contact alcohol concentration measurement method based on spectral analysis in one embodiment;
[0038] Figure 3 A spectrum waveform diagram in one embodiment;
[0039] Figure 4 A schematic diagram of dividing sample data into different feature classes in one embodiment;
[0040] Figure 5 This is a schematic diagram of a data import interface in an embodiment;
[0041] Figure 6 A schematic diagram of an interface showing an alcohol spectrum after data is imported in one embodiment;
[0042] Figure 7 A schematic diagram of an interface for predicting alcohol concentration and displaying the degree of fit in one embodiment;
[0043] Figure 8 The figure is a diagram showing the internal structure of an analysis device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] In one embodiment, Figure 1 As shown, a non-contact alcohol concentration measuring device based on spectral analysis is provided, comprising: a light source 100, a cuvette 200, a spectrometer 300, and an analysis device 400, wherein: the light source 100 is arranged in front of the cuvette 200 to generate a light beam; the cuvette 200 is arranged in front of the spectrometer 300, and an alcohol solution is placed in the cuvette 200; the spectrometer 300 comprises a slit, a spectroscopic device, a CCD camera, and a data transmission module, and the data transmission module is used to transmit data with the analysis device 400; the spectroscopic device is arranged in front of the CCD camera lens and is inclined relative to the incident light beam; the light beam generated by the light source 100 irradiates the cuvette 200, penetrates the alcohol solution to form an incident light beam; the incident light beam is converted into spectral data by the spectrometer 300; the spectral data is transmitted to the analysis device 400 through the data transmission module, and the concentration of the alcohol solution is predicted and displayed by the analysis device 400.
[0046] The light source 100 may be a Baoshida BL-9W6400K fluorescent tube for generating a light beam.
[0047] An alcohol solution whose alcohol concentration needs to be measured can be placed in the cuvette 200, and the light source 100 can be placed right in front of the cuvette 200. The generated light beam can irradiate the cuvette 200 to form an incident light beam that penetrates the alcohol solution.
[0048] The cuvette 200 can be arranged in front of the spectrometer 300 to facilitate the incident light beam to enter the spectrometer 300 for light beam analysis. The spectrometer 300 includes a slit, a spectroscopic device, a CCD camera, and a data transmission module, wherein the data transmission module is used for data transmission with the analysis device 400. After the incident light beam of the spectrometer 300 is converted into spectral data, it can be sent to the analysis device 400 through the data transmission module, so as to facilitate the next step of analysis and prediction.
[0049] Specifically, the light beam generated by the light source 100 irradiates the cuvette 200 and penetrates the alcohol solution to form an incident light beam; the incident light beam is converted into spectral data by the spectrometer 300; the spectral data is transmitted to the analysis device 400 through the data transmission module, and the concentration of the alcohol solution is predicted and displayed by the analysis device 400.
[0050] The incident light beam can be directed directly to the CCD camera in the spectrometer without reflection. Specifically, since the light passes through the transparent plastic layer twice (more different angles), this tends to diffuse the light and expand the light spot, which spreads the spectral line. Furthermore, the inclination angle of the grating and the camera must be fixed at two different angles, and it is very difficult to find a suitable angle, which will increase the cost to a certain extent. If the grating is not completely flat, it will cause nonlinear distortion of the measured wavelength scale. In the reflected state, the lines are wider, the resolution is lower, there are more reflections and artifacts, calibration is more difficult, and it is more sensitive to changes in position and rotation. Therefore, the incident light beam is directly directed to the CCD camera in the spectrometer, avoiding the problems that are prone to occur in the reflected state.
[0051] In this embodiment, by arranging the light source 100, the cuvette 200, the spectrometer 300, and the analysis equipment 400 to cooperate with each other, the collected spectral data is processed, and the alcohol concentration is measured by a calculation method based on a vector machine algorithm. Non-contact measurement of the alcohol solution can be achieved, and it has the advantages of small size and high accuracy, which can improve the convenience of alcohol concentration measurement.
[0052] In one embodiment, the spectrometer further includes a filter and a polarizer; the filter and the polarizer are both arranged at the position of the CCD camera.
[0053] In one embodiment, the light splitting device is a diffraction grating. Since the prism of the light splitting device will distort the actual area of different colored lights, that is, the light splitting effect of the prism is not linear, and the diffraction grating does not have this problem, therefore, the diffraction grating is used as the light splitting device in this embodiment.
[0054] Specifically, a camera with a diffraction grating can be placed in front of the lens and tilted relative to the incident light beam, so that purple light and ultraviolet light will irradiate the leftmost receiving screen, while red light and infrared light will irradiate the right receiving screen. In this embodiment, in order to detect infrared light, the built-in infrared filter of the camera can be removed.
[0055] In one embodiment, a photosensitive element is disposed on the CCD camera for receiving light intensity and converting it into visible data.
[0056] In one embodiment, the distance between the light source and the cuvette is 8 cm to 12 cm. Preferably, the light source can be installed at a position 10 cm away from the cuvette, so as to ensure that the light can irradiate the cuvette containing the alcohol solution each time.
[0057] The non-contact alcohol concentration measurement method based on spectral analysis provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Figure 1 As shown, the application environment includes a light source 100, a cuvette 200, a spectrometer 300, and an analysis device 400. The light source 100 generates a light beam that irradiates the cuvette 200 containing the alcohol solution to generate an incident light beam; the spectrometer 300 collects the spectral data corresponding to the incident light beam, and analyzes and processes the spectral data to obtain processed data; the processed data is input into the analysis device 400, and the analysis device 400 performs error analysis and precision fitting based on the prediction model of the support vector machine algorithm, and outputs the concentration prediction result of the alcohol solution; the concentration prediction result is displayed through the display interface of the analysis device 400. Among them, the analysis device 400 can be, but is not limited to, various personal computers, laptops, smart phones, robots, tablet computers and other devices.
[0058] In one embodiment, Figure 2 As shown, a non-contact alcohol concentration measurement method based on spectral analysis is provided, comprising the following steps:
[0059] Step 202: A light source generates a light beam which is irradiated onto a cuvette containing an alcohol solution to generate an incident light beam.
[0060] Step 204, collecting spectral data corresponding to the incident light beam through a spectrometer, and analyzing and processing the spectral data to obtain processed data.
[0061] The analysis and processing of the spectral data may include recording the spectral data and organizing the spectral data to facilitate input into the prediction model for subsequent processing.
[0062] Step 206, input the processed data into the analysis device, and use the analysis device to perform error analysis and accuracy fitting based on the prediction model of the support vector machine algorithm to output the concentration prediction result of the alcohol solution.
[0063] The prediction model of the support vector machine algorithm can be a binary differentiation model, which divides the samples by seeking a hyperplane. The principle of segmentation is to maximize the interval, and finally it is transformed into a convex quadratic programming problem to solve.
[0064] Step 208: Display the concentration prediction result through the display interface of the analysis device.
[0065] The display interface of the analysis device can be designed using the GUI panel design function in Matlab software. The designed display interface can include controls. By clicking the controls, corresponding control instructions can be issued, and the corresponding screen can be displayed on the display interface. Specifically, the display interface can include a concentration prediction control. After the user clicks the concentration prediction control, the concentration prediction result of the alcohol solution can be displayed on the display interface.
[0066] In this embodiment, a non-contact alcohol concentration measurement method based on spectral analysis is provided. The collected spectral data is processed and the measurement of the alcohol concentration is completed by a calculation method based on a vector machine algorithm. It can realize non-contact measurement of alcohol solutions and has the advantages of small size and high accuracy, which can improve the convenience of alcohol concentration measurement.
[0067] In one embodiment, a non-contact alcohol concentration measurement method based on spectral analysis is provided, which may also include a process of experimental data collection, and the specific process includes: placing alcohol solutions of different concentrations in different cuvettes, and using a light source to illuminate the cuvette containing the alcohol solution; placing a spectrometer directly behind the cuvette, and placing the cuvette close to the light entrance of the spectrometer; connecting the spectrometer to an analysis device, and collecting spectral data corresponding to alcohol solutions of different concentrations through the spectrometer; analyzing and processing the spectral data through the analysis device to obtain a spectral data set; and obtaining a prediction model based on a support vector machine algorithm through training according to the spectral data set through the analysis device.
[0068] Before the formal measurement of alcohol solution concentration, the collection and analysis of alcohol spectrum data can be performed. Specifically, 20 cups of alcohol solutions with different concentrations (0% to 95%) can be prepared, with each concentration interval of 5%. Each alcohol solution with different concentrations can be placed in the same standard cuvette that has been cleaned and dried; then, the Baoshida BL-9W6400K fluorescent tube can be installed ten centimeters away from the cuvette to ensure that the light can irradiate the cuvette containing the alcohol solution each time; the spectrometer is placed directly behind the cuvette, and the cuvette is placed close to the light inlet of the spectrometer.
[0069] The spectrometer can perform spectral analysis to obtain the transmission spectrum of the alcohol solution at various wavelengths, and can obtain a complete waveform diagram, such as Figure 3 shown.
[0070] Next, the spectrometer can be connected to an analysis device that can use Matlab 2021 via a USB interface, the software program can be started, and the analysis code can be run; the alcohol solution in each cuvette can be irradiated in turn, and the spectral data of the concentration can be recorded after each irradiation; after all alcohol solutions are irradiated, the collected data can be sorted.
[0071] In one embodiment, a non-contact alcohol concentration measurement method based on spectral analysis is provided, which may also include a process of designing a support vector machine algorithm, the specific process including: determining a training data set and a sample data set based on a spectral data set through an analysis device; finding soft interval parameters in the training data set and the sample data set using a hinge loss function; determining kernel parameters based on the soft interval parameters, and using kernel techniques based on the kernel parameters to design a support vector machine algorithm.
[0072] Specifically, in the support vector machine algorithm process, n can be defined as a sample and m as a dimension. In this embodiment, n can be defined as each wavelength, and m can be defined as the light transmittance of alcohol solutions of different concentrations at the wavelength; then, a hyperplane with a dimension of (m-1) can be designed. Given a training data set T in a feature space, T = {(x1, y1), (x2, y2), ..., (x n ,y n )}; Then, the samples can be divided into two different feature classes, such as Figure 4 As shown, represents the normal vector, represents the distance between two hyperplanes, Represents the normal vector from the far point The offset to the hyperplane.
[0073] Next, the hinge loss function can be used to find the soft margin parameters in the training dataset and the sample dataset, where the hinge loss function can be Since the data presents a multi-dimensional situation in the support vector machine algorithm, the kernel technique can be used for planning and processing, and the classification vector Among them, c i It is a variable parameter set to find the optimal solution. i In the process, quadratic programming can be used to solve, At this time, we can use quadratic programming to find a solution that makes 0 < c i <(2nλ) -1 The isolation boundary of , and then solve, Finally, we can get the new classification point
[0074] Next, we can analyze the parameters of the device and find out that the effectiveness of the support vector machine algorithm depends on the kernel function, and the kernel parameters in the kernel function depend on the selection of the soft interval parameters.
[0075] In one embodiment, a non-contact alcohol concentration measurement method based on spectral analysis is provided, which may also include a parameter verification process, which specifically includes: searching under a sequence grid with exponential growth of soft interval parameters and kernel parameters by an analysis device, and using cross-validation to check the rationality of soft interval parameters and kernel parameters.
[0076] In one embodiment, a non-contact alcohol concentration measurement method based on spectral analysis is provided, which may also include a data visualization process, the specific process including: collecting data import instructions through an analysis device, and displaying spectral data in a data import interface of the analysis device according to the data import instructions; collecting alcohol concentration prediction instructions through an analysis device, and displaying concentration prediction results in a display interface of the analysis device according to the alcohol concentration prediction instructions.
[0077] By using the GUI panel design function in Matlab software, the interface design can be carried out through the analysis equipment. The designed button one, namely the import data button, can be used to realize the function of Matlab reading spectral data. The button two, namely the SVM button control, can be used to filter multiple groups of spectral data. The GUI controls and display windows can be used to complete the prediction of unknown concentrations and display the results.
[0078] The prediction results can be visualized through Matlab GUI interface design. Figure 5 As shown, a data import interface can be designed on the analysis device to visualize the collected data set. The user can click the import data button to generate a data import instruction. The display interface of the analysis device can display the spectrum of the alcohol concentration in the data set. The displayed spectrum is as follows Figure 6 shown.
[0079] An SVM button control can also be set on the display interface of the analysis device. The user can click the SVM button control to predict the unknown concentration of alcohol. At the same time, the quality of the fit can be displayed through a visual table, that is, the comparison result between the predicted value and the true value, such as Figure 7 shown.
[0080] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0081] In one embodiment, an analysis device is provided. The analysis device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The analysis device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the analysis device is used to provide computing and control capabilities. The memory of the analysis 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 network interface of the analysis device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a non-contact alcohol concentration measurement method based on spectral analysis is implemented. The display screen of the analysis device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the analysis device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the shell of the analysis device, or an external keyboard, touchpad or mouse, etc.
[0082] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a portion of the structure related to the scheme of the present application, and does not constitute a limitation on the analysis device to which the scheme of the present application is applied. The specific analysis device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0083] In one embodiment, an analysis device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of a non-contact alcohol concentration measurement method based on spectral analysis are implemented.
[0084] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a non-contact alcohol concentration measurement method based on spectral analysis are implemented.
[0085] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0086] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0087] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A non-contact alcohol concentration measuring device based on spectral analysis, It is characterized in that The device comprises: a light source, a cuvette, a spectrometer, and an analysis device, wherein: The light source is arranged in front of the cuvette and is used to generate a light beam; The cuvette is arranged in front of the spectrometer, and an alcohol solution is placed in the cuvette; The spectrometer comprises a slit, a spectroscopic device, a CCD camera, and a data transmission module, wherein the data transmission module is used for performing data transmission with the analysis device; The light splitting device is arranged in front of the CCD camera lens and is tilted relative to the incident light beam; The light beam generated by the light source is irradiated onto the cuvette, penetrating the alcohol solution to form an incident light beam; the incident light beam is converted into spectral data by the spectrometer; the spectral data is transmitted to the analysis device through the data transmission module, and the concentration of the alcohol solution is predicted and displayed by the analysis device.
2. The non-contact alcohol concentration measuring device based on spectral analysis according to claim 1, It is characterized in that The spectrometer further comprises a filter and a polarizer; the filter and the polarizer are both arranged at the position of the CCD camera.
3. The non-contact alcohol concentration measuring device based on spectral analysis according to claim 1, It is characterized in that The light splitting device is a diffraction grating.
4. The non-contact alcohol concentration measuring device based on spectral analysis according to claim 1, It is characterized in that The CCD camera is provided with a photosensitive element for receiving light intensity and converting it into visible data.
5. The non-contact alcohol concentration measuring device based on spectral analysis according to claim 1, It is characterized in that The distance between the light source and the cuvette is 8 cm to 12 cm.
6. A non-contact alcohol concentration measurement method based on spectral analysis, applied to the non-contact alcohol concentration measurement device based on spectral analysis in any one of claims 1 to 5, It is characterized in that The method comprises: The light source generates a light beam which is irradiated on the cuvette containing the alcohol solution to generate an incident light beam; Collecting spectral data corresponding to the incident light beam through a spectrometer, and analyzing and processing the spectral data to obtain processed data; The processed data is input into an analysis device, and the analysis device performs error analysis and precision fitting based on a prediction model of a support vector machine algorithm to output a concentration prediction result of an alcohol solution; The concentration prediction result is displayed through the display interface of the analysis device.
7. The non-contact alcohol concentration measurement method based on spectral analysis according to claim 6, It is characterized in that The method further comprises: Alcohol solutions of different concentrations are placed in different cuvettes, and a light source is used to illuminate the cuvettes containing the alcohol solutions; Placing a spectrometer directly behind the cuvette and placing the cuvette close to the light inlet of the spectrometer; Connecting the spectrometer to an analysis device, and collecting spectral data corresponding to alcohol solutions of different concentrations through the spectrometer; Analyzing and processing the spectral data by the analysis device to obtain a spectral data set; The prediction model based on the support vector machine algorithm is obtained by training the spectral data set through the analysis device.
8. The non-contact alcohol concentration measurement method based on spectral analysis according to claim 7, It is characterized in that The method further comprises: Determining a training data set and a sample data set according to the spectral data set by the analysis device; Using a hinge loss function to find soft margin parameters in the training data set and the sample data set; The kernel parameters are determined according to the soft margin parameters, and the kernel technique is used based on the kernel parameters to design a support vector machine algorithm.
9. The non-contact alcohol concentration measurement method based on spectral analysis according to claim 8, It is characterized in that The method further comprises: The analysis device is used to search under a sequence grid in which the soft interval parameter and the kernel parameter are exponentially increasing, and cross-validation is used to check the soft interval parameter and the kernel parameter.
10. The non-contact alcohol concentration measurement method based on spectral analysis according to claim 6, It is characterized in that The method further comprises: Collecting data import instructions through the analysis device, and displaying the spectral data in the data import interface of the analysis device according to the data import instructions; Alcohol concentration prediction instructions are collected through the analysis device, and the concentration prediction results are displayed in the display interface of the analysis device according to the alcohol concentration prediction instructions.
