System and method for measuring optical parameters of turbid media based on deep learning model
Through the turbid medium optical parameter measurement system based on the deep learning model, combined with Monte Carlo calculation and GPU parallel calculation, the problems of low parameter identification efficiency and low accuracy in traditional methods are solved, and fast and accurate optical parameter measurement is achieved. And the system structure is stable.
Patent Information
- Application Number
- CN202211199223.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional optical parameter measurement methods for turbid media have problems such as low parameter identification efficiency, low accuracy, and complex measurement systems.
A turbid medium optical parameter measurement system based on a deep learning model is adopted, using a wide-spectrum light source connected with optical signals, a parabolic collimating mirror, a beam splitter, a slit, a collimator, a sample cell, a camera and a computer to extract turbidity through a deep learning model The absorption coefficient, scattering coefficient and anisotropy coefficient of the medium sample are combined with Monte Carlo calculation and GPU parallel calculation to reduce statistical fluctuation errors.
It achieves fast and accurate optical parameter measurement with short time, high efficiency, high precision, low relative error, and the measurement system structure is stable and easy to maintain.
Smart Images

Figure CN115639176B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of measuring optical parameters of turbid media, and in particular to a method for quickly obtaining the absorption coefficient μ of a turbid medium from a light intensity distribution image of a turbid medium transmission surface using a deep learning model. a , scattering coefficient μ s and anisotropy coefficient g. Background Art
[0002] The optical parameters of turbid media mainly include the absorption coefficient μ a , scattering coefficient μ s and anisotropy coefficient g, which are important indicators for characterizing the physical and chemical properties of turbid media. Accurate and rapid measurement of its optical parameters is of great significance in the fields of biomedicine, materials chemistry, environmental monitoring, and food and drug inspection. The radiation transfer equation can accurately describe the transmission of light in turbid media. This equation is a partial differential equation related to three-dimensional space and wavelength, and it is impossible to directly solve it to obtain the optical parameters. Obtaining the optical parameters of the medium from the radiation transfer equation belongs to the parameter estimation problem of the inverse problem, which usually has the characteristics of ill-posedness, large amount of calculation, and low efficiency. How to quickly and accurately obtain the optical parameters of turbid media is a difficulty that needs to be solved in current research. The basic idea of obtaining optical parameters based on the radiation transfer equation is to use experimental measurement to obtain the light radiation distribution related to the medium and spatial position, and combine a suitable inverse calculation algorithm to extract the medium optical parameters from the light radiation distribution. The experimental measurement of light radiation distribution mainly uses the measurement method of integrating sphere and photoelectric detectors at different angles. In recent years, some researchers have used CCD or CMOS to obtain the light radiation distribution of the reflection surface. We propose to design an optical system for measuring the light radiation distribution in the transmission direction to measure the light radiation distribution. Extracting the optical parameters of turbid media by inverse calculation requires a suitable forward calculation model. In the extraction of optical parameters based on radiation transfer theory, the Monte Carlo method is not affected by the structure and state of the sample. It is the best choice for measuring real samples and complex structure samples and has been widely used. However, the Monte Carlo method based on probability theory has statistical fluctuation errors. In order to reduce the statistical error, the amount of calculation needs to be increased. With the current computing power of ordinary computers, the Monte Carlo method with parallel calculation needs to obtain a lower error. A single forward calculation takes several seconds to several minutes. If the iterative inverse calculation algorithm in the three-dimensional space direction and wavelength is considered, the time will increase significantly.
[0003] Methods based on deep learning models are now widely used in image classification, target detection and recognition, and have good performance and great development. If reasonable data is selected and the deep learning model is trained well, it has the advantages of fast and accurate recognition in applications such as image classification and target recognition. To apply deep learning models to the measurement of optical parameters of turbid media, two problems need to be solved. One is to modify the model used for classification and recognition into a model for parameter recognition; the other is to obtain a large amount of reasonable training data. In terms of model modification, we delete the decision layer on the general deep learning network model and use the recognition probability as the feature of parameter recognition to obtain the required parameters; since it is impossible to obtain a large number of turbid medium samples with different optical parameters, and thus it is impossible to obtain a large amount of experimental measurement data to train the deep learning model, we propose to use Monte Carlo positive calculation data that has been strictly verified and reasonably handled as training data, and use this data as training data. This method has the advantages of high parameter measurement accuracy and fast parameter recognition speed after actual measurement and verification, and provides a new method for measuring optical parameters of turbid media. Summary of the invention
[0004] The technical problem to be solved by the present invention is: in order to solve the problems of low parameter recognition efficiency, low accuracy and complex measurement system in the traditional turbid medium optical parameter measurement method, a turbid medium optical parameter measurement system and method based on a deep learning model are provided, the optical parameter measurement system is used to obtain the light intensity distribution image after passing through the turbid medium, and the absorption coefficient μ of the turbid medium sample is extracted by the trained deep learning model after preprocessing. a , scattering coefficient μ s and anisotropy coefficient g.
[0005] The present invention solves the technical problem by adopting the following technical solutions:
[0006] The turbid medium optical parameter measurement system provided by the present invention is a turbid medium optical parameter measurement system based on a deep learning model. The system includes a wide-spectrum light source, a parabolic collimator, a spectrometer, a slit, a collimator, a sample cell, a camera and a computer connected by an optical signal, wherein: the computer uses the deep learning model to measure the optical parameters of the turbid medium sample.
[0007] In the system, the continuous broadband incoherent light emitted by the broadband light source is collimated by a parabolic collimator and then incident on a beam splitter to spatially divide the broadband white light into lights of different wavelengths. The monochromatic light of the required wavelength is selected through a slit, and the divergence angle of the light beam is further compressed by a collimator. The collimated light is incident on a sample pool, and after passing through the sample, a camera is used to collect the light beam after passing through the sample. The collected image is sent to a computer to measure the optical parameters of the turbid medium sample using a deep learning model.
[0008] The optical parameter measurement method of turbid medium provided by the present invention is a method for measuring the optical parameters of turbid media based on a deep learning model. The method uses an optical parameter measurement system to obtain a light distribution image after passing through a sample, and extracts the sample absorption coefficient μ after preprocessing using a trained deep learning network model. a , scattering coefficient μ s and anisotropy coefficient g, specifically comprising the following steps:
[0009] S1: Set the measurement system and sample parameters as well as the Monte Carlo calculation parameters;
[0010] S2: The measurement system obtains the incident light distribution when no sample is added as the input light distribution of the Monte Carlo program, and calculates the light intensity distribution image after passing through the sample;
[0011] S3: preprocess the image in S2 and mark the image using optical parameters;
[0012] S4: Build a deep learning model, set hyperparameters for model training, and train the deep learning model using the S3 image dataset;
[0013] S5: using the measurement system to obtain a light intensity distribution image after passing through the sample;
[0014] S6: preprocessing the light intensity distribution image collected in S5;
[0015] S7: extract the best weight parameters after training in S4 to complete the deep learning network model;
[0016] S8: Use the S7 model to extract the sample optical parameters and verify the optical parameters. This verification refers to using the S7 model to identify the experimental light intensity distribution image of S6 and extract the sample absorption coefficient μ a , scattering coefficient μ s and anisotropy coefficient g, and perform outlier checks on the optical parameters.
[0017] In the above method, the measurement system parameters set in step S1 include the spatial direction, three-dimensional position coordinates, pixel size and number of pixels of the camera; the sample parameters include the thickness of the sample ring, the inner ring diameter, the outer ring diameter, the reflectivity, the refractive index, thickness and size of the window glass; the Monte Carlo program parameters include the calculation of the total number of photons, the absorption coefficient μ a , scattering coefficient μ s and the initial value of the anisotropy coefficient g, the calculation step size, and the number of calculations.
[0018] In the above method, step S2 specifically includes: the measurement system obtains the transmitted light intensity distribution when no sample is added at a specific wavelength as the input light distribution of the calculation program based on the radiation transfer equation, and distributes the calculated total number of photons to each calculation pixel according to the light distribution probability, and then uses GPU Monte Carlo parallel calculation to obtain the light intensity distribution image after passing through the sample.
[0019] In the above method, the preprocessing described in step S3 is to filter the light intensity distribution in S2 using a low-pass Gaussian filter, select the filter cutoff frequency according to the beam modulation frequency and the sample, and use optical parameters to mark the preprocessed light intensity distribution image data set.
[0020] In the above method, the first layer of the deep learning network model structure described in step S4 is the image data input layer, the second to fifth layers are convolutional layers, the sixth to ninth layers are fully connected layers, and the tenth layer is the output layer of optical parameters. The activation function of the convolutional layer and the fully connected layer selects Relu, the sampling method is downsampling, the learning rate parameter is set to step descent, and the loss function of the deep learning network model selects the MSE function.
[0021] In the above method, in step S5, the turbid medium sample is added into the sample pool to maintain the uniformity and stability of the sample and prevent bubbles and flying dust from falling into the sample pool; the incident light beam is incident on the sample, and the camera collects the light intensity distribution after passing through the sample, and transmits it to the computer through the signal and control cable and saves it.
[0022] In the above method, the preprocessing process described in step S6 is to crop the size of the experimental light intensity distribution image and merge the pixels to ensure that the preprocessed experimental image is consistent with the calculated light distribution image in size and pixel depth, and filter the light intensity distribution with the cutoff frequency consistent with S3.
[0023] In the above method, before training the deep learning network model, it is necessary to use samples with known optical parameters to perform a similarity test on the calculated and measured light intensity distribution images. The test shows that the calculation program and the measurement system meet the measurement requirements. The specific implementation process includes: setting the measurement system parameters, sample parameters and Monte Carlo simulation parameters according to step S1, the difference is that the initial value of the optical parameter in the Monte Carlo calculation parameter needs to be set to the sample parameter value of the known optical parameter, and the calculation step is set to 0, the number of calculations is set to 1, the transmitted light intensity distribution image under the optical parameter is calculated using the same method as S2, and the image is filtered using the same image preprocessing method as S3, and then according to steps S5 and S6, the transmitted light intensity distribution image of the sample with known optical parameters is measured and the image is preprocessed, and the image similarity calculation is realized using an image similarity algorithm such as a cosine similarity algorithm, a scale-invariant feature conversion algorithm, or a histogram algorithm; if the similarity is greater than or equal to a set threshold, the test is passed, and the calculated and measured light intensity distribution images of the next wavelength or different samples are compared. If the similarity is less than the set threshold, the test fails, and the light intensity distribution image needs to be re-measured and calculated until the requirements are met.
[0024] Compared with the prior art, the present invention has the following main technical effects:
[0025] 1. Short time and high efficiency.
[0026] The specific time for measuring the optical parameters of turbid media in the present invention includes three parts, namely the training time of the deep learning model, the time for extracting optical parameters from the measurement signal using the trained model, and the time for experimentally measuring the light distribution through the medium. The training time of the deep learning model is related to the training data, the number of training rounds, and the deep learning structure model. In an embodiment of the present invention, the training data is 24,000, the number of training rounds is 1,500, and a deep learning structure combining 3 convolutional layers and 1 fully connected layer is used, and the training time is about 40 hours. The time for extracting optical parameters using the measured light distribution signal and the trained deep learning model is about 0.09 seconds. The experimental measurement light distribution time includes the sample preparation time and the experimental light distribution measurement time. The sample preparation time of this method is the same as the preparation time of other methods, which is about 15 minutes, and the single-wavelength experimental measurement time of a single sample is about 10 seconds. Compared with other methods, the model training time is long, but the model training can be independent of the optical parameter extraction and experimental measurement, that is, once the model training is completed, the experimental light distribution measurement and parameter extraction time are very short, and real-time measurement can be achieved.
[0027] 2. High precision.
[0028] The method of the present invention adopts GPU-based parallel Monte Carlo calculation combined with a deep learning inversion algorithm to achieve optical parameter measurement. From the experimental data of the specific embodiment, it can be seen that when the wavelength of the incident light is 500nm and the diameter of the polystyrene ball is 1 micron, the measured absorption coefficient relative error is 2.89%, the scattering coefficient relative error is 0.83%, and the anisotropy coefficient relative error is 0.1%. This is one of the methods with the lowest overall relative error of the three optical parameters known to us.
[0029] The measurement system of the present invention has a stable structure and is easy to maintain. It uses an inverse calculation method based on a deep learning model without the need for Monte Carlo iterative calculation during parameter identification. It can extract a set of optical parameter values within seconds, greatly improving the measurement efficiency and accuracy of optical parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic structural diagram of the turbid medium optical parameter measurement system of the present invention;
[0031] Figure 2 It is a schematic flow chart of the method for measuring optical parameters of turbid media of the present invention;
[0032] Figure 3 is the light intensity distribution diagram of the incident light beam experimental measurement in the embodiment of the present invention ( Figure 3 a) and simulated light intensity distribution diagram ( Figure 3 b); Figure 4 is the light intensity distribution diagram of the transmission surface experimental measurement in the embodiment of the present invention ( Figure 4 a) and simulated light intensity distribution diagram ( Figure 4 b);
[0033] Figure 5 1 is a comparison chart of the Mie calculation results of the optical parameters of four groups of samples in the embodiment of the present invention and the prediction results of the method (wavelength is 500 nanometers);
[0034] Figure 6 1 is a comparison chart of the Mie calculation results of the optical parameters of four groups of samples in the embodiment of the present invention and the prediction results of the method (wavelength is 600 nanometers);
[0035] In the figure: 1. Broad-spectrum light source; 2. Parabolic collimator; 3. Beam splitter; 4. Slit; 5. Collimator; 6. Sample cell; 7. Camera; 8. Computer. DETAILED DESCRIPTION
[0036] The present invention discloses a turbid medium optical parameter measurement system and method based on a deep learning model, which belongs to the field of turbid medium optical parameter measurement. The steps include: setting system parameter values, using Monte Carlo to calculate the light intensity distribution image after passing through the sample, preprocessing and marking the image, setting deep learning model parameters and training network model, using the measurement system to obtain the light intensity distribution image after passing through the sample, preprocessing the experimental image, and using the trained deep learning network model to calculate the absorption coefficient μ of the experimental image. a , scattering coefficient μ s The anisotropy coefficient g is extracted and these optical parameters are verified. Before using the calculated data to train the deep learning model, it is necessary to use samples with known optical parameters to perform a cosine similarity test on the calculated and measured light intensity distribution images. The test shows that the Monte Carlo calculation program and measurement system meet the measurement requirements. This measurement method has high parameter recognition efficiency and accuracy, and the measurement system is simple.
[0037] The present invention is further described below in conjunction with application examples and drawings, but is not limited to the following contents.
[0038] The schematic diagram of the structure of the turbid medium optical parameter measurement system provided by the present invention is as follows: Figure 1As shown. In the specific embodiment, the wide-spectrum light source 1 adopts a 175W xenon lamp and a 150W bromine tungsten lamp. The wavelength of the xenon lamp light source covers 180nm to 2300nm, and there is a strong light distribution between 200nm-1000nm. The bromine tungsten lamp has a strong light intensity in the infrared part of 1000nm-2000nm. Therefore, different light sources are used in segments to meet the requirement that the incident light beam has a sufficiently strong distribution. The parabolic collimator 2 uses an off-axis parabolic reflector for collimation, and all reflective surfaces in the optical system use a silver-coated film layer. The beam splitter 3 can use grating beam splitting, prism beam splitting and filter. If a filter is used, no slit is required. In this embodiment, three gratings fixed on a rotating table are used for segmented light splitting, one of which is a reflective diffraction grating with 1200 lines per millimeter and a blazing wavelength of 800nm, one is a reflective diffraction grating with 800 lines per millimeter and a blazing wavelength of 1200nm, and one is a reflective diffraction grating with 800 lines per millimeter and a blazing wavelength of 300nm. The slit 4 is an adjustable optical slit, the slit width is adjusted to 0.5mm, and the half-maximum full width of the output monochromatic light of adjustable wavelength is not greater than 16nm. The collimator 5 can adopt a transmissive inverted telescope system or a double-glued system, or a reflective Cassegrain system and an off-axis parabola system, but the choice of the scheme needs to reasonably consider the system spatial layout, light energy utilization and uniformity of the output light beam in combination with actual conditions. In this embodiment, a transmissive inverted telescope system is used, and the focal lengths of the two lenses for a wavelength of 500nm are 50mm and 125mm respectively, and the divergence angle of the light beam after collimation is 0.1rad. The structure of the sample pool 6 includes a metal bracket, fixing screws, window glass and a sample ring. The two window glasses have high transmittance within the wavelength range of the light source and can be made of quartz or calcium fluoride. The sample ring is made of a material with a large absorption coefficient, with a thickness ranging from 0.1mm to 10mm, and can be accurately measured using a screw micrometer. The diameter can be a standard size of 25.4mm or 50.8mm. In this embodiment, four fixing screws are used to fix two pieces of quartz glass with a thickness of 6mm and a diameter of 25mm and a sample ring with a thickness of 0.10mm, an outer diameter of 25mm and an inner diameter of 16.18mm on the metal bracket, and the aperture of the metal bracket is 16.18mm. Camera 7 can adopt a large-format industrial camera or a line scan camera or an area scan camera to directly obtain the light intensity distribution of the receiving surface without a lens, or it can adopt an ordinary camera with a lens to obtain the light distribution. However, it should be noted that if an ordinary camera with a lens is used, when calculating the light intensity distribution after transmission, it is necessary to add the calculation of the light distribution image formed by the lens on the CCD or CMOS sensor. In this embodiment, a lens-free CMOS industrial camera with a sensor size of 1 inch is used.
[0039] In the above system, the optical parameters of the turbid medium can be measured by using a camera to obtain the light distribution after passing through the sample; the light source uses an incoherent broadband light source, and the system can measure the distribution of transmitted light at different wavelengths from ultraviolet to infrared. The combined method can extract the optical parameters of different wavelengths.
[0040] In an embodiment of the present invention, the specific experimental process of selecting a wavelength of 500nm is as follows: a xenon lamp and a bromine tungsten lamp emit continuous broadband incoherent light, which is collimated by an off-axis parabolic collimator. A diffraction grating with a blazing wavelength of 800nm is selected according to the required wavelength to spatially separate the broad-spectrum light from lights of different wavelengths. After passing through a 0.5mm slit, a monochromatic light with a half-width at half maximum of 4.7nm is output. A transmission-type inverted telescope system is further used to compress the divergence angle of the light beam. After collimation, the light adjusted to the required beam size is incident on the sample pool, and the CMOS camera collects the light intensity distribution images when there is no sample and when there is a sample after passing through the sample, and sends them to the computer for storage.
[0041] Figure 2 1 is a flow chart of the method for measuring optical parameters of turbid media according to the present invention. The measurement system parameters set in the specific embodiment include:
[0042] (1) The distance between the camera and the sample pool was set to 34.6 mm, and the direction was perpendicular to the propagation direction of the incident light beam. The pixel size of the calculated image was 0.05 mm × 0.05 mm, the number of horizontal pixels was 200, and the number of vertical pixels was 200. The sample parameters set included: the thickness of the sample ring was 0.1 mm, the outer diameter was 25 mm, the inner diameter was 16.18 mm, and the reflectivity was 92.8; the refractive index of the quartz window glass was 1.336, the thickness was 6 mm, and the diameter was 25 mm; the Monte Carlo calculation parameters set included: the total number of photons was 1×10 9 , absorption coefficient μ a The initial value is 0.025 (mm -1 ), the step size is 0.002(mm -1 ) and the number 20, the scattering coefficient μ s The initial value is 1.24 (mm -1 ), step length is 0.12(mm -1 ) and the number is 200, the initial value of the anisotropy coefficient g is 0.77, the step size is 0.02 and the number is 10. Therefore, the optical parameter range used to train the deep learning model data is the absorption coefficient μ a The range is 0.025~0.065(mm -1 ), scattering coefficient μ s The range is 1.24~25.24(mm -1 ), the anisotropy coefficient g ranges from 0.77 to 0.97, and the number of combined training data generated is 40,000.
[0043] (2) Measure the intensity distribution of transmitted light with a wavelength of 500nm and without adding a sample, and distribute the total number of photons to each calculation pixel according to the light distribution probability as the input light distribution of the calculation program based on the radiation transfer equation, and then use GPU Monte Carlo parallel calculation to obtain the light intensity distribution image after passing through the sample. Figure 3 a shows the experimental measured light intensity distribution diagram of the incident beam, Figure 3 b shows the incident beam simulation intensity distribution diagram; Figure 4 a shows the light intensity distribution diagram of the transmission surface experimental measurement in the embodiment of the present invention, Figure 4 b shows the simulated light intensity distribution diagram of the transmission surface. It can be seen from the figure that the images of the simulation and the experiment are very similar, whether at the input or the output end.
[0044] (3) A Gaussian low-pass filter with a cutoff frequency of 20 Hz is selected to filter the simulated light intensity distribution image of the transmission surface according to the beam modulation frequency and the sample; the filtering process is specifically as follows: the original light intensity distribution image is converted from the spatial domain to a two-dimensional spectrum in the frequency domain using a two-dimensional discrete Fourier transform, and then the cutoff frequency is set to 20 Hz, and the information exceeding 20 Hz is filtered in the frequency domain, and finally the two-dimensional spectrum after filtering is converted to the spatial domain through a two-dimensional discrete Fourier inverse transform.
[0045] (4) The first layer of the deep learning network model structure is set as an image data input layer with a size of 200×200, the second to fifth layers are convolutional layers (the convolution kernel size is 3×3), the sixth to ninth layers are fully connected layers, and the number of neurons in the fully connected layers is 3216, 512, 256 and 30 respectively, and the tenth layer is a three-parameter regression output layer. The activation layer of the convolutional layer and the fully connected layer uses the Relu function, and each convolutional layer is connected to a maximum pooling layer (the pooling kernel size is 2×2) for downsampling. The learning rate parameter is set to step-down, with an initial value of 1e-3 and a decrease to half of the original value every 200 rounds of training until 1e-6. The loss function of the deep learning network model is MSE, and the initial weight is set using a random number. The dataset of the simulated light intensity distribution image is marked using optical parameters and divided into a training dataset, a test dataset, and a validation dataset in a ratio of 6:3:1. The deep learning network model is trained, with an initial training round of 1000 rounds, and the model is repeatedly trained until the loss value on the test set converges to meet the requirements.
[0046] (5) Four different samples were prepared: Sample 1 had a microsphere diameter of 1 μm and a concentration of 6.9×10 6 per cubic millimeter; the diameter of the microspheres in sample 2 is 1 micron, and the concentration is 6.41×10 6 per cubic millimeter; the diameter of the microspheres in sample 3 is 2 microns, and the concentration is 2.24×10 6per cubic millimeter; the diameter of the microspheres in sample 4 is 2 microns, and the concentration is 1.4×10 6 Since the four samples are made of polystyrene microspheres, their optical parameter values can be calculated using Mie theory. Figure 5 As shown in the bar graph. When the wavelength is 500nm, the absorption coefficient of sample 1# μ a 0.055(mm -1 ), scattering coefficient μ s 17.38(mm -1 ), the anisotropy coefficient g is 0.932, and the absorption coefficient μ of sample 2# is a 0.051(mm -1 ), scattering coefficient μ s 16.14(mm -1 ), the anisotropy coefficient g is 0.932, and the absorption coefficient μ of sample 3# is a 0.060(mm -1 ), scattering coefficient μ s 6.516(mm -1 ), the anisotropy coefficient g is 0.875, and the absorption coefficient μ of sample 4# is a 0.052(mm -1 ), scattering coefficient μ s 5.585(mm -1 ), the anisotropy coefficient g is 0.875. When the wavelength is 600nm, the absorption coefficient μ of sample 1# is a 0.042(mm -1 ), scattering coefficient μ s 14.137(mm -1 ), the anisotropy coefficient g is 0.920, and the absorption coefficient μ of sample 2# is a 0.047(mm -1 ), scattering coefficient μ s 13.045(mm -1 ), the anisotropy coefficient g is 0.913, and the absorption coefficient μ of sample 3# is a 0.043(mm -1 ), scattering coefficient μ s 9.206(mm -1 ), the anisotropy coefficient g is 0.913, and the absorption coefficient μ of sample 4# is a 0.048(mm -1 ), scattering coefficient μ s 7.769(mm -1), the anisotropy coefficient g is 0.913. Add the turbid medium sample into the sample pool, maintain the uniformity and stability of the sample, and prevent bubbles and dust from falling into the sample pool. Then use Figure 1 The measurement system collects the light intensity distribution images through different samples and transmits them to the computer through the signal and control cable and saves them.
[0047] (6) Experimental image preprocessing specifically includes: to ensure that the experimental image after preprocessing is consistent with the calculated light distribution image in size and pixel depth, the experimental light intensity distribution image is cropped and pixel merged; size cropping refers to deleting some edge pixels of the image according to the size requirements of the deep learning network model; pixel merging refers to combining adjacent pixels in the horizontal and vertical directions of the image as a pixel to reduce the difficulty of deep learning network model processing and improve the signal-to-noise ratio. In this embodiment, since the pixel size of the transmitted light intensity distribution calculated by Monte Carlo is 200×200, and the pixel size of the light intensity distribution image collected in the experiment is 2592×2048, after the experimental image is cropped to 2000×2000, 10 adjacent pixels in the horizontal direction and 10 adjacent pixels in the vertical direction are merged into one pixel, and the grayscale value of each pixel representing the number of photons is averaged as the grayscale value of the fused pixel, so that the measured image size is consistent with the calculated image in terms of pixels, and the experimental light intensity distribution image is also filtered using a Gaussian low-pass filter with a cutoff frequency of 20 Hz.
[0048] (7) Select the best parameters from the weight parameters of the deep learning network model after multiple rounds of training in step 4 to construct a trained deep learning network model. In this embodiment, the loss value of the deep learning network model on the test set after 1741 rounds of training is 0.035 and remains stable. The model weight parameters of the 1741th round of training are selected to construct a trained deep learning network model.
[0049] (8) Use the trained deep learning network model to predict the parameters of the experimental light intensity distribution image processed in step 6 and predict the sample absorption coefficient μ a , scattering coefficient μ s and anisotropy coefficient g and other optical parameters, and perform abnormal value check on the optical parameters. If it is found that the optical parameters are out of the normal range, return to S5 for re-measurement and re-processing until the normal range requirements of the optical parameters are met. Figure 5 The comparison chart of the optical parameters of four groups of samples predicted by this method and calculated by Mie theory at a wavelength of 500nm is given. It can be seen from the figure that the absorption coefficient μ a , scattering coefficient μ sThe two results of anisotropy coefficient g are not much different, among which the relative error of scattering coefficient does not exceed 1.54%, and the relative error of anisotropy coefficient does not exceed 1.45%. Since the absorption coefficient of microsphere sample is more than 2 orders of magnitude smaller than the scattering coefficient, the influence of absorption on the light passing through the sample is much smaller than the influence of scattering, and the prediction error of absorption coefficient is larger than that of scattering coefficient. The relative error of absorption coefficient of four samples does not exceed 15.74%. Figure 6 The following is a comparison chart of the optical parameters of four groups of samples predicted by this method and calculated by Mie theory at a wavelength of 600nm. It can also be seen from the figure that the absorption coefficient μ a , scattering coefficient μ s The two results of the anisotropy coefficient g are not much different, among which the relative error of the scattering coefficient does not exceed 1.26%, the relative error of the anisotropy coefficient does not exceed 1.15%, and the relative error of the absorption coefficient does not exceed 13.69%.
[0050] The present invention compares the calculated and measured light intensity distribution images for similarity. The calculated and measured light intensity distribution images of the four samples in step (5) at wavelengths of 500nm and 600nm were measured for similarity using a cosine similarity algorithm. The cosine similarity can be expressed as:
[0051]
[0052] Where: S represents the cosine similarity value, A and B are non-zero vectors composed of pixel values in the image, α represents the angle between vector A and vector B, and n represents the total number of pixels in the image. The image is represented as a vector, and the cosine distance between the vectors is calculated to characterize the similarity of the two images. Cosine similarity parameters are widely used in image similarity comparisons. The closer their values are to 1, the higher the degree of image similarity.
[0053] It was found that when the wavelength was 500nm, the cosine similarities of sample 1# to sample 4# were 0.9994, 0.9995, 0.9998, and 0.9998 respectively; when the wavelength was 600nm, the cosine similarities of sample 1# to sample 4# were 0.9976, 0.9960, 0.9971, and 0.9968 respectively. The similarities were all greater than the set threshold of 0.95, indicating that the Monte Carlo calculation program and measurement system met the measurement requirements.
[0054] In the method of the present invention, a deep learning structure model combining a convolutional layer and a fully connected layer is used to extract the optical parameters of the medium; the incident light distribution obtained experimentally is used as the input signal of the Monte Carlo calculation, and the cosine similarity check is performed on the simulated and experimentally obtained output light distributions of a specific sample; the simulated and experimental light distribution images are preprocessed (including image compression and noise processing) to meet the needs of the deep learning model.
[0055] The turbid medium optical parameter measurement system and method of the present invention can realize the identification of a set of optical parameters in 0.1 seconds, which significantly improves the measurement efficiency compared with the previous methods, and the measurement system has a stable structure and is easy to maintain.
Claims
1. A method for measuring optical parameters of turbid media, characterized in that A method for measuring optical parameters of turbid media based on a deep learning model. The method uses an optical parameter measurement system to obtain a light distribution image after passing through a sample, and extracts the sample absorption coefficient μ after preprocessing using a trained deep learning network model. a , scattering coefficient μ s and anisotropy coefficient g, the optical parameter measurement system comprises a broadband light source (1), a parabolic collimator (2), a beam splitter (3), a slit (4), a collimator (5), a sample pool (6), a camera (7) and a computer (8) connected by an optical signal, wherein: the computer (8) uses a deep learning model to measure the optical parameters of the turbid medium sample; the continuous broadband incoherent light emitted by the broadband light source (1) is collimated by the parabolic collimator (2) and then incident on the beam splitter (3), the broadband white light is spatially divided into lights of different wavelengths, monochromatic light of a desired wavelength is selected through the slit (4), the divergence angle of the light beam is further compressed by the collimator (5), the collimated light is incident on the sample pool (6), and after passing through the sample, the camera (7) is used to collect the light beam after passing through the sample, and the collected image is sent to the computer (8) to use the deep learning model to measure the optical parameters of the turbid medium sample; The method specifically comprises the following steps: S1: Set the measurement system and sample parameters as well as the Monte Carlo calculation parameters; S2: The measurement system obtains the incident light distribution when no sample is added as the input light distribution of the Monte Carlo program, and calculates the light intensity distribution image after passing through the sample; S3: preprocess the image in S2 and mark the image using optical parameters; S4: Build a deep learning model, set hyperparameters for model training, and train the deep learning model using the image dataset in S3; S5: using the measurement system to obtain a light intensity distribution image after passing through the sample; S6: preprocessing the light intensity distribution image collected in S5; S7: extract the best weight parameters after training in S4 to complete the deep learning network model; S8: Use the model in S7 to extract the sample optical parameters and verify the optical parameters. The verification refers to using the model in S7 to identify the experimental light intensity distribution image in S6 and extract the sample absorption coefficient μ a , scattering coefficient μ s and anisotropy coefficient g, and perform outlier checks on optical parameters; The measurement system parameters set in S1 include the spatial direction, three-dimensional position coordinates, pixel size and number of pixels of the camera; the sample parameters include the thickness of the sample ring, the inner ring diameter, the outer ring diameter, the reflectivity, the refractive index, thickness and size of the window glass; the Monte Carlo calculation parameters include the calculation of the total number of photons, the absorption coefficient μ a , scattering coefficient μ s and the initial value of the anisotropy coefficient g, the calculation step value and the number of calculations; S2 specifically includes: the measurement system obtains the transmitted light intensity distribution when no sample is added at a specific wavelength as the input light distribution of the calculation program based on the radiation transfer equation, and distributes the total number of calculated photons to each calculation pixel according to the light distribution probability, and then uses GPU Monte Carlo parallel calculation to obtain the light intensity distribution image after passing through the sample; S4 The structure of the deep learning network model has the following characteristics: the first layer is the image data input layer, the second to fifth layers are convolutional layers, the sixth to ninth layers are fully connected layers, and the tenth layer is the output layer of optical parameters, wherein the activation function of the convolutional layer and the fully connected layer is Relu, the sampling method is downsampling, the learning rate parameter is set to step descent, and the loss function of the deep learning network model is MSE function; Before training the deep learning network model, a similarity test is performed on the calculated and measured light intensity distribution images using samples with known optical parameters. The test shows that the calculation program and measurement system meet the measurement requirements.
2. The method according to claim 1, characterized in that The preprocessing described in S3 is to filter the light intensity distribution in S2 using a low-pass Gaussian filter, select the filter cutoff frequency according to the beam modulation frequency and the sample, and use optical parameters to mark the preprocessed light intensity distribution image data set.
3. The method according to claim 1, characterized in that In S5, a turbid medium sample is added to the sample pool to maintain the uniformity and stability of the sample and prevent bubbles and flying dust from falling into the sample pool; the incident light beam is incident on the sample, and the camera collects the light intensity distribution after passing through the sample, and transmits it to the computer through the signal and control cable and saves it.
4. The method according to claim 1, characterized in that: The preprocessing process described in S6 is to crop the size of the experimental light intensity distribution image and merge the pixels to ensure that the preprocessed experimental image is consistent with the calculated light distribution image in size and pixel depth, and filter the light intensity distribution with the cutoff frequency consistent with S3.
5. The method according to claim 1, characterized in that The specific implementation process of the similarity test includes: setting the measurement system parameters, sample parameters and Monte Carlo simulation parameters according to step S1, setting the initial value of the optical parameter in the Monte Carlo calculation parameter to the sample parameter value of the known optical parameter, and setting the calculation step size to 0, setting the number of calculations to 1, using the same method in S2 to calculate the transmission light intensity distribution image under the optical parameters, and using the same image preprocessing method in S3 to filter the image, and then measuring the transmission light intensity distribution image of the sample with known optical parameters according to steps S5 and S6 and preprocessing the image, using the cosine similarity algorithm, or the scale-invariant feature conversion algorithm, or the histogram algorithm to realize the image similarity calculation; if the similarity is greater than or equal to the set threshold, the test is passed, and the calculated and measured light intensity distribution images of the next wavelength or different samples are compared. If the similarity is less than the set threshold, the test fails, and it is necessary to re-measure and recalculate the light intensity distribution image until the requirements are met.
Citation Information
Patent Citations
Spectrometer system and method for measuring whole optical parameter including turbidity dielectric materials
CN101140222A
Method and system for determining optical characteristic parameters and layer thickness of multilayer turbid medium
CN113591381A
