Spectrum detection method for distinguishing craft beer from industrial beer
The spectral data of beer is collected with a portable spectrometer, and the classification model is used to distinguish craft beer and industrial beer. This solves the problem of time-consuming and labor-intensive detection in the existing technology and achieves high accuracy and efficient differentiation effects.
Patent Information
- Application Number
- CN202311486134.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-08
- Publication Date
- 2024-08-27
AI Technical Summary
The existing technology lacks a simple and accurate method to distinguish craft beer from industrial beer. Traditional detection methods are time-consuming and labor-intensive and cannot effectively distinguish between the two.
Utilizing the absorption differences in the turbidity and color of the finished beer in the ultraviolet and visible spectrum and the alcohol content in the near-infrared spectrum caused by the differences in raw materials and processes between craft beer and industrial beer, the data is collected through a portable spectrometer and a classification model is trained to predict the two types of wine. .
It achieves high real-time and high accuracy in distinguishing craft beer from industrial beer, making up for the shortcomings of traditional methods and providing a convenient detection method.
Smart Images

Figure CN118549358A
Abstract
Description
Technical Field
[0001] The invention relates to the wine industry, and in particular to a spectral detection method for distinguishing craft beer from industrial beer. Background Art
[0002] There are significant differences between craft beer and industrial beer in terms of flavor, taste and brewing process, but there is no obvious difference in appearance. Craft beer is often superior in taste and mouthfeel. However, in the market, especially in nightclubs and bars, many barrels of beer are replaced by industrial beer instead of craft beer, which generates huge profits. Traditional detection methods usually rely on sommelier tasting and laboratory detection methods, which consume a lot of time, manpower and material resources. There is currently a lack of a simple and accurate method to distinguish these two types of beer. Therefore, in order to solve the above problems, the present invention uses the difference in raw materials and processes between craft beer and industrial beer, resulting in differences in the absorption of turbidity and chromaticity of finished beer in the ultraviolet and visible spectra, and the absorption difference of alcohol content at the near-infrared spectrum end. A portable spectrometer is used to collect spectral data with labels of two types of wine to train a classification model to predict the two types of wine, and a spectral detection method for distinguishing craft beer from industrial beer is proposed. Summary of the invention
[0003] The purpose of the present invention is to provide a spectral detection method for distinguishing between craft beer and industrial beer to solve the above problems. The advantages of the present invention are: through the difference in raw materials and processes between craft beer and industrial beer, resulting in the absorption difference of turbidity and chromaticity of finished beer in ultraviolet and visible spectra, and the absorption difference of alcohol content in the near-infrared spectrum, a portable spectrometer is used to collect spectral data of two labeled wines to train a classification model to predict the two wines, which has high real-time performance and accuracy. In addition, the portable spectrometer can be detected anytime and anywhere, and is easy to operate.
[0004] The present invention provides a spectral detection method for distinguishing craft beer from industrial beer, comprising the following steps:
[0005] Step 1: In order to realize a spectral detection method to distinguish between craft beer and industrial beer, full spectrum data collection is performed on the relevant indicators of several beer samples produced and brewed on the market. The available wavelengths are screened through data analysis and processing. The collected beer samples are divided into two states: room temperature and refrigerated.
[0006] At least 200 bottles of beer samples are collected, including 100 bottles of craft beer and 100 bottles of industrial beer. The spectral feature data of the 200 bottles collected are labeled accordingly, and 160 groups are randomly divided as modeling data, and the remaining 40 bottles are prediction data.
[0007] The spectral characteristic data of the 200 bottles are [a1, a2, …, a 44,], where a1~a8 are wavelengths in the ultraviolet region, and a9~a 22 is the wavelength in the visible region, where a 23 ~a 44 The wavelength is in the infrared region.
[0008] The temperature in the normal temperature state is 25-28°C, and the temperature in the refrigerated state is 4°C.
[0009] Step 2: Screen key indicator parameters for modeling, including turbidity, alcohol content, and chromaticity. Detect the true values of the indicators through physical and chemical tests, and then calibrate the data of the corresponding indicators for each spectral data. Analyze the correlation between each indicator and craft beer and industrial beer through visualization, dimensionality reduction and other means, and screen the indicators that can distinguish craft beer from industrial beer.
[0010] The turbidity index is obtained by directly measuring the turbidity of the beer sample by correcting a turbidity meter with a Formazin standard turbidity solution, and is expressed in turbidity units EBC.
[0011] The alcohol content index adopts the density bottle method, the principle of which is to use the mass ratio of alcohol aqueous solution to the same volume of pure water at 20°C to obtain the relative density. Then, the volume fraction of the alcohol content in the sample is obtained by looking up the table.
[0012] The color index adopts spectrophotometry, the principle is that the darker the color of the beer, the greater the absorbance value at a certain wavelength, so the absorbance can be directly measured and then converted into SRM units to represent the color.
[0013] Step 3: The device used in the present invention is a portable spectrometer. Therefore, in order to prevent the gap between devices, a self-checking compensation method can be used to solve the problem. The correction scheme is as follows:
[0014] After the portable spectrometer adjusts the light source intensity at the factory, it immediately collects a blank spectrum, which is the standard spectrum data S1. Before each collection, the device first collects a spectrum data S2, compares it with the standard spectrum S1, and adds or subtracts the difference. After compensating the spectrum value, it is put into the sample for prediction.
[0015] Step 4: Apply the spectral data of 200 bottles of craft beer and industrial beer collected in step 1 as well as the turbidity, alcohol content, and color label data as the support vector machine classification model variables, select the one-by-one elimination method, and the confidence level is 95% or above to obtain the prediction model that distinguishes craft beer from industrial beer. Save the support vector machine nonlinear classification model, and the prediction result is craft beer / industrial beer.
[0016] The remaining 40 bottles of prediction data in step 1 are used for prediction, and the final prediction result of the model for distinguishing between craft beer and industrial beer is an R-sq of 0.96.
[0017] The beneficial effects of the present invention are:
[0018] 1. The present invention uses the differences in raw materials and processes between craft beer and industrial beer to cause differences in the absorption of relevant physical and chemical indicators (turbidity, alcohol content, color, etc.) of finished beer products at the ultraviolet, visible and near-infrared spectral ends.
[0019] 2. The portable spectrometer of the present invention is easy to carry and has no requirements on the detection environment, so it is convenient for users to distinguish between craft beer and industrial beer anytime and anywhere.
[0020] 3. This method makes up for the shortcomings of traditional inconvenient methods. Combined with spectral artificial intelligence technology, it can efficiently solve the problem of distinguishing craft beer from industrial beer in real scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 Flowchart of a spectral detection method for distinguishing craft and industrial beer.
[0022] Figure 2 PCA dimension reduction 3D spectral feature data plot.
[0023] Figure 3 Full-band original spectral feature data diagram. DETAILED DESCRIPTION
[0024] The following will clearly and completely describe and discuss the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings of the present invention. Obviously, what is described here is only a part of the examples of the present invention, not all the examples. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0025] Implementation Example
[0026] Step 1: In order to realize a spectral detection method for distinguishing craft beer from industrial beer, labeled spectral data of 100 bottles of craft beer and 100 bottles of industrial beer samples produced and brewed on the market are collected. 160 bottles are randomly selected as modeling data, and the remaining 40 bottles are prediction data. The collected beer samples are divided into two states: room temperature 25-28℃ and refrigerated 4℃. The spectral collection equipment is a portable through-beam spectrometer with a wavelength range of 200-1700nm, and the container used is a 0.5mm quartz cuvette.
[0027] The brewed beers include Pilsner fresh beer, lager beer, Goose Island beer, Van Lerga wheat beer, Hoegaarden white beer, German wheat beer, and White Bear beer, totaling 100 bottles.
[0028] The industrial beer mentioned includes 100 bottles of pure draft beer, Budweiser, Brave Beer, Carlsberg Extra, Harbin Beer, Tsingtao Beer and Wusu Beer.
[0029] The 200 sets of spectral feature data are [a1, a2, ..., a 44 ,], where a1~a8 are wavelengths in the ultraviolet region, and a9~a 22 is the wavelength in the visible region, where a 23 ~a 44 The wavelength is in the infrared region.
[0030] Step 2: Screen key indicator parameters for modeling, including turbidity, alcohol content, and chromaticity. The indicators are tested for true values through physical and chemical tests. As shown in Table 1, the turbidity, chromaticity, and alcohol content of craft beer are higher than those of industrial beer. Then, the data of each spectral data is calibrated to the corresponding indicators, and the correlation between each indicator and craft beer and industrial beer is analyzed through visualization, dimensionality reduction, etc. Figure 2 PCA is used to reduce the dimension of 3D spectral feature data and Figure 3 From the full-band original spectral characteristic data graph, it can be seen that there are obvious distinctions in the entire spectrum, so the three indicators can be used as a basis for distinguishing craft beer from industrial beer.
[0031] The turbidity index is obtained by directly measuring the turbidity of the beer sample by correcting a turbidity meter with a Formazin standard turbidity solution, and is expressed in turbidity units EBC.
[0032] The alcohol content index adopts the density bottle method, the principle of which is to use the mass ratio of alcohol aqueous solution to the same volume of pure water at 20°C to obtain the relative density. Then, the volume fraction of the alcohol content in the sample is obtained by looking up the table.
[0033] The color index adopts spectrophotometry, the principle is that the darker the color of the beer, the greater the absorbance value at a certain wavelength, so the absorbance can be directly measured and then converted into SRM units to represent the color.
[0034] Table 1
[0035] Beer Name Turbidity (EBC) Chroma (SRM) Alcohol content (°) Pilsner Draft Beer (craft) 2.4 23 4 Lager (craft) 2 18 5.5 Goose Island(craft beer) 3.3 35 5.9 Fanjiale wheat beer (craft) 2.1 24 4.5 Hoegaarden (craft) 3.6 26 4.9 German wheat (craft beer) 3.2 35 3.7 White Bear Beer (craft) 4 40 4.7 Pure draft beer (industrial) 0.9 12 3.6 Budweiser (Industrial) 1.2 14 3.6 Brave the World(Industry) 0.8 10 3 Carlsberg Extra Pure(Industrial) 1.3 13 3.2 Harbin Beer (Industrial) 0.7 11 3.6 Tsingtao Brewery (Industrial) 0.7 12 3.1 Wusu Beer (Industrial) 0.9 12 4
[0036] Step 3: The device used in the present invention is a portable spectrometer. Therefore, in order to prevent the gap between devices, a self-checking compensation method can be used to solve the problem. The correction scheme is as follows:
[0037] After the portable spectrometer adjusts the light source intensity at the factory, it immediately collects a blank spectrum, which is the standard spectrum data S1. Before each collection, the device first collects a spectrum data S2, compares it with the standard spectrum S1, and adds or subtracts the difference. After compensating the spectrum value, it is put into the sample for prediction.
[0038] Step 4: Apply the 200 sets of craft and industrial beer spectral data collected in step 1 as well as turbidity, alcohol content, and color label data as support vector machine classification model variables, select the one-by-one elimination method, and the confidence level is 95% or above to obtain a prediction model that distinguishes craft beer from industrial beer. Save the support vector machine nonlinear classification model, and the prediction result is craft beer / industrial beer.
[0039] The remaining 40 bottles of prediction data in step 1 are used for prediction, and the final prediction result of the model for distinguishing between craft beer and industrial beer is an R-sq of 0.96.
[0040] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
[0041] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure should be limited by the appended claims.
Claims
1. A spectral detection method for distinguishing between craft beer and industrial beer, the present invention relates to the field of distinguishing between industrial craft beer, Features include Follow these steps: Step 1: In order to realize a spectral detection method to distinguish between craft beer and industrial beer, full spectral data collection is performed on the relevant indicators of several beer samples produced and brewed on the market. Step 2: Screen key indicator parameters for modeling, including turbidity, alcohol content, and chromaticity. Detect the true values of the indicators through physical and chemical tests, and then calibrate the data of the corresponding indicators for each spectral data. Analyze the correlation between each indicator and craft beer and industrial beer through visualization, dimensionality reduction and other means, and screen the indicators that can distinguish craft beer from industrial beer. Step 3: The device used in the present invention is a portable spectrometer, so in order to prevent the gap between devices, a self-checking compensation method can be used to solve it. Step 4: Apply the spectral data of 200 bottles of craft beer and industrial beer collected in step 1 as well as the turbidity, alcohol content, and color label data as the variables of the support vector machine nonlinear classification model. Select the one-by-one elimination method with a confidence level of 95% or above to obtain a prediction model that distinguishes craft beer from industrial beer. Save the support vector machine nonlinear classification model, and the prediction result is craft beer / industrial beer.
2. A spectral detection method for distinguishing between craft beer and industrial beer according to claim 1, Features: In step 1, the collection conditions are that the beer samples are divided into two states: room temperature and refrigerated. The room temperature is 25-28° C., and the refrigerated temperature is 4° C. The spectrum collection equipment is a portable through-beam spectrometer with a wavelength range of 200-1700 nm and a 0.5 mm quartz cuvette.
3. A spectral detection method for distinguishing between craft beer and industrial beer according to claim 1, It is characterized in that The correction scheme is as follows: After the portable spectrometer adjusts the light source intensity at the factory, it immediately collects a blank spectrum, which is the standard spectrum data S1. Before each collection, the device first collects a spectrum data S2, compares it with the standard spectrum S1, and adds or subtracts the difference. After compensating the spectrum value, it is put into the sample for prediction.
Citation Information
Cited By
Intelligent Baijiu blending system and method based on machine learning
CN119337101A
