You are currently on the new version of our website. Access the old version .
PhotonicsPhotonics
  • Article
  • Open Access

9 October 2021

Case Study on the Fitting Method of Typical Objects

,
,
,
and
1
College of Instrumentation& Engineering Electrical, Jilin Universuty, Changchun 130000, China
2
National Eophysical Exploration Equipment Engineering Research Center, Jilin Universuty, Changchun 130000, China
*
Author to whom correspondence should be addressed.

Abstract

This study proposes different fitting methods for different types of targets in the 400–900 nm wavelength range, based on convex optimization algorithms, to achieve the effect of high-precision spectral reconstruction for small space-borne spectrometers. This article first expounds on the mathematical model in the imaging process of the small spectrometer and discretizes it into an A X = B matrix equation. Second, the design basis of the filter transmittance curve is explained. Furthermore, a convex optimization algorithm is used, based on 50 filters, and appropriate constraints are added to solve the target spectrum. First, in terms of spectrum fitting, six different ground object spectra are selected, and Gaussian fitting, polynomial fitting, and Fourier fitting are used to fit the original data and analyze the best fit of each target spectrum. Then the transmittance curve of the filter is equally divided, and the corresponding A X = B discrete equation set is obtained for the specific object target, and a random error of 1% is applied to the equation set to obtain the discrete spectral value. The fitting is performed for each case to determine the best fitting method with errors. Subsequently, the transmittance curve of the filter with the detector characteristics is equally divided, and the corresponding A X = B discrete equation set is obtained for the specific object target. A random error of 1% is applied to the equation set to obtain the error. After the discrete spectral values are obtained, the fitting is performed again, and the best fitting method is determined. In order to evaluate the fitting accuracy of the original spectral data and the reconstruction accuracy of the calculated discrete spectrum, the three evaluation indicators MSE, ARE, and RE are used for evaluation. To measure the stability and accuracy of the spectral reconstruction of the fitting method more accurately, it is necessary to perform 500 cycles of calculations to determine the corresponding MSE value and further analyze the influence of the fitting method on the reconstruction accuracy. The results show that different fitting methods should be adopted for different ground targets under the error conditions. The three indicators, MSE, ARE, and RE, have reached high accuracy and strong stability. The effect of high-precision reconstruction of the target spectrum is achieved. This article provides new ideas for related scholars engaged in hyperspectral reconstruction work and promotes the development of hyperspectral technology.

1. Introduction

In recent years, hyperspectral technology has been widely used in agriculture [1,2,3,4], resource exploration [5,6,7,8], oceanic studies [9], and environmental research [10]. Spectrometers are gradually becoming intelligent, miniaturized, and lightweight. At present, space-borne and airborne spectrometers must use miniaturized and high-precision spectrometers due to their volume limitations. At present, the main difficulties faced by miniature spectrometers are concentrated on two points. One is the influence of the number of filters in front of the detector on the accuracy of spectral information. The higher the number of filters, the higher the accuracy of the solution [11]. The second is to fit the discrete spectral information. At present, few scholars have studied the spectral fitting method based on the filter. Thus, the focus of this article is to analyze the influence of the fitting method on spectral reconstruction.
The number of filters used in previous related research projects is about 200, and the spectral range is 400–900 nm. Therefore, the fitting method has little influence on the effect of spectral reconstruction. However, when the number of filters is small, the amount of data is sparse, and the fitting method has a greater impact on spectral reconstruction. Therefore, the fitting method is essential for a small spectrometer to achieve high-precision measurement. High-precision spectral deconstruction algorithms are the basis of high-precision spectral reconstruction. Many algorithms for spectral decomposition have recently been proposed.
Chang [12] analyzed the working process of the spectrometer and proposed a mathematical model for spectral reconstruction. Based on 200 filters, regularization and generalized cross-validation (GCV) were used to achieve high-precision spectral reconstruction. Finally, combined with non-uniform correction, the spectrum reconstruction accuracy is further improved, and the minimum value of the spectrum accuracy evaluation index ARE reaches 0.0248. In 2015, Bao [13] made innovations on the filter material, using quantum dot materials as 50 filters for spectral reconstruction, and achieved a better reconstruction effect.
In 2018, Zhang [14] proposed a reconstruction algorithm based on sparse optimization and dictionary learning based on 192 filters. The results show that the relative reconstruction error (RE) reaches 5.92%, achieving a good spectral reconstruction effect. In 2021, Zhao [15] used compressed sensing in the spectral reconstruction algorithm to reconstruct spectral reflectance. The experimental results prove that compressed sensing uses low-sampling data to achieve the effect of full sampling, which improves the accuracy of spectral reflectance reconstruction. The previous related research was based on hundreds of filters to reconstruct the target spectrum. Although a high reconstruction accuracy was achieved, hundreds of filters could not reconstruct the target spectrum due to the satellite spectrometer detector’s volume limitation. This article uses 50 filters for analysis, which effectively reduces the amount of data and should prove vital for developing space-borne spectrometers.

2. Spectral Reconstruction Process

The reconstruction process is shown in Figure 1. The target spectrum first passes through the filter at the front of the detector. The energy on each filter can be obtained after the detector is modulated. The whole process can be considered the integration of the target spectrum, the transmittance of the filter, and the quantum efficiency of the detector within the wavelength range.
Figure 1. Working principle diagram of a spectrometer.
The integral expression is shown in Formula (1) [16,17]. T i ( λ ) is the transmittance function, f ( λ ) is the detector quantum efficiency, X ( λ ) is the target spectral function, λ 1 and λ 2 are the integral wavelength ranges, and n is the number of filters.
λ 1 λ 2 T i ( λ ) f ( λ ) X ( λ ) d λ , i = 1 , 2 , , n
The transmittance curve of the filter with detector characteristics in Figure 2 is the curve obtained by integrating the transmittance curve of the filter and the quantum efficiency curve of the detector in the range of λ 1 and λ 2 , which is A ( λ ) = T i ( λ ) f ( λ ) . In this paper, λ 1 and λ 2 are, respectively, 400 nm and 900 nm. By dividing the wavelength range of 400–900 nm equally, finding the area of each band, and then doing the same division on the target spectrum curve, it yields the average value of energy in each band. After discretization, the area of each band in each filter is multiplied by the mean value in the corresponding band of the target spectrum to obtain the energy B of the target on each filter. In order to ensure the uniqueness of the solution of the discrete equation, matrix A is a square matrix of n × n (that is, the number of filters is equal to the dimension of matrix A ).
Figure 2. Discretization mathematical model of the spectral imaging system.
The discretized integral Equation (1) becomes Equation (2) [18].
A ( λ ) X ( λ ) = B
Expanding Equation (2) yields Equation (3).
[ a 11 a 12 a 1 n a 21 a 22 a 2 n a n 1 a n 2 a n n ] [ X 1 X 2 X n ] = [ B 1 B 2 B n ]
However, the spectrometer’s accuracy will be affected by a variety of error sources. The main error sources are the stray light error [19,20,21] and the detector non-uniformity error [22,23,24]. These errors make the equation A X = B unsuitable and add difficulty obtaining a solution for the equation.
In an ideal situation, the number of discrete wavelengths of the target spectrum should be equal to the number of filters. The greater the number of discrete wavelengths, the higher the spectral resolution.
To calculate the spectral information more accurately, we first divide the spectral curve of the filter into 25 evenly equal regions and calculate the average light intensity in the range of every 20 nm Y j ( j = 1 , 2 , , 25 ) . The spectral curve of the filter is divided into 50 equal parts (one part for every 10 nm), and the average light intensity X i ( i = 1 , 2 , , 50 ) is calculated in the range of every 10 nm.
The theoretical expressions of Y j ( j = 1 , 2 , , 25 ) and X i ( i = 1 , 2 , , 50 ) are as shown in Equation (4). The calculation of Y j and Y j is solved by a convex optimization algorithm, and the specific expressions are shown in Equations (5) and (6):
( X i + X i + 1 ) 2 Y j , i = 1 , 3 , 5 , , 49 , j = 1 , 2 , , 25
{ min | | A j Y B j | | 2 s . t . | A j Y B j | K ' | ( Y 1 + Y 2 + , , + Y 25 ) 500 × 20 m e a n | < T ' j = 1 , 2 , , 25
{ min | | A i X B i | | 2 s . t . | A i X B i | K | ( X 1 + X 2 + , , + X 50 ) 500 × 10 m e a n | < T | X i + X i + 1 2 - Y j | < Q   i = 1 , 2 , , 49 , j = 1 , 2 , , 25
In Equations (5) and (6), X i   ( i = 1 , 3 , 5 , , 50 ) and Y j ( j = 1 , 2 , , 25 ) are energy constraints. Y j is the estimated value calculated by Equation (5)
When Equation (1) is not discretized, calculate the average energy m e a n of the target spectrum in the range of 400–900 nm. T ' and T are used as constraints to solve the overall mean value of the discrete spectrum. The calculated Y j   ( j = 1 , 2 , , 25 ) value is the average value of energy in every 20 nm wavelength range, and the calculated X i   ( i = 1 , 2 , , 50 ) value is the average value of energy in every 10 nm wavelength range.
The Q in Equation (6) is the constraint between X and Y . After obtaining the discrete values, they are considered the energy value of the center wavelength in the corresponding band. The data are then fitted to obtain the target reconstructed spectrum curve.
The choice of the filter is critical as it directly affects the accuracy of Equation (3). According to the matrix analysis, the condition number c o n d ( A ) of the matrix A composed of the filter is as small as possible to ensure the matrix equation is more robust [25]. In short, when designing the transmittance curve of the filter, the shape of the curve should have a low similarity. Based on this principle, the filter is designed and simulated.

3. Fitting the Original Spectra of Ground Objects

Since spacecraft functions are different, the observation targets are also different, but the spectral curve shapes of the same types of ground targets are similar. Therefore, the monochromatic light source and five typical objects are selected for spectral reconstruction. First, the target spectrum is normalized, and then the commonly used Gaussian, polynomial, and Fourier methods are selected for error-free fitting. The fitting results are shown in Figure 3, Figure 4, Figure 5, Figure 6, Figure 7 and Figure 8.
Figure 3. Fitted image of copper metal.
Figure 4. Fitted image of mica schist.
Figure 5. Fitted image of green plants (grass).
Figure 6. Jasper Ridge gravel fitting image.
Figure 7. Fitting image of loam.
Figure 8. Asphalt fitting image.
There are different indicators for evaluating the effect of spectral reconstruction. Most previous studies have adopted MSE, ARE, and RE. The expressions of MSE, ARE, and RE are shown in (6)–(8). Equations (6) and (7) have similar meanings, but for better comparison with previous research, this paper uses the three indicators of MSE, RE, and ARE to evaluate the reconstructed spectrum. The smaller the three indicators are, the better the spectral reconstruction effect will be.
A R E = | | y i y | | 2 2 | | y i | | 2 2
R E = | | y i y | | 2 | | y i | | 2
M S E = 1 n k = 1 n ( y i y ) 2
In the above equations, y i is the original target spectrum, y is the target spectrum after fitting, and y ¯ is the average value of the original spectrum. The specific evaluation indicators are shown in Table 1, Table 2 and Table 3.
Table 1. Gaussian fitting results of the original spectrum.
Table 2. Polynomial fitting results of the original spectra.
Table 3. Fourier fitting results of the original spectrum.
Table 1, Table 2 and Table 3 show that copper metal and mica schist use Gaussian fitting to achieve the best results. Grass green plants, Jasper Ridge gravel, and asphalt have the best polynomial fitting effect. Loam uses Fourier fitting the best. The evaluation indicators when the best fit method is adopted for the six targets are shown in Table 4.
Table 4. Evaluation index of optimal fitting of target spectrum.

4. Spectral Fitting of Discrete Objects with Errors

After determining the best fitting method of the original target spectrum, 50 filters are used to establish the A X = B equation set, and a 1% random error is applied. The convex optimization algorithm is used to calculate 50 discrete spectra, and fitting is performed. For the case of applied error, the best fitting method of each discrete target spectrum was determined. The error between the MSE value of each 10 nm wavelength and the standard value was calculated by comparing the changes of the fitting methods under the two conditions. The results are shown in Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, Figure 15, Figure 16, Figure 17, Figure 18, Figure 19 and Figure 20.
Figure 9. Fifty discrete value fitting images of copper metal.
Figure 10. The distribution of MSE value error of every 10 nm of copper metal.
Figure 11. Fifty discrete value fitting images of mica schist.
Figure 12. The distribution of MSE value error every 10 nm of mica schist.
Figure 13. Fifty discrete value fitting images of green plants (grass).
Figure 14. The distribution of MSE value error every 10 nm of green plants (grass).
Figure 15. Fifty discrete value fitting images of loam.
Figure 16. The distribution of MSE value error every 10 nm of loam.
Figure 17. Fifty discrete value fitting images of Jasper Ridge gravel.
Figure 18. The distribution of MSE value error every 10 nm of Jasper Ridge gravel.
Figure 19. Fifty discrete value fitting images of asphalt.
Figure 20. The distribution of MSE value error every 10 nm of asphalt.
The target spectrum curve fitting evaluation index is shown in Table 5, Table 6 and Table 7.
Table 5. Gaussian fitting evaluation index.
Table 6. Evaluation index of polynomial fitting.
Table 7. Fourier fitting evaluation index.
Table 5, Table 6 and Table 7 show that when there is an error, the discrete value calculated by A X = B is fitted. Mica schist, grass, Jasper Ridge gravel, and asphalt have the best fitting results by polynomial fitting, while copper metal and loam have the best fitting precision by Fourier fitting. The evaluation indicators are shown in Table 8.
Table 8. Evaluation index of optimal fitting of target spectrum with error.
Table 5, Table 6 and Table 7 show that the target polynomial fitting of mica schist, grass, loam, asphalt, and Jasper Ridge gravel has little difference with Fourier fitting, and the indicators are relatively close.
To further verify the correctness and stability of the above-mentioned feature target evidence fitting method, 500 calculations and fittings are performed, and the MSE value of each target under different fitting methods is calculated. The MSE distribution is shown in Figure 21, Figure 22, Figure 23, Figure 24, Figure 25, Figure 26, Figure 27, Figure 28, Figure 29, Figure 30, Figure 31, Figure 32, Figure 33, Figure 34, Figure 35, Figure 36, Figure 37 and Figure 38.
Figure 21. Gaussian fitting of copper metal MSE value distribution.
Figure 22. Polynomial fitting of copper metal MSE value distribution.
Figure 23. Fourier fitting of copper metal MSE value distribution.
Figure 24. Gaussian fitting of mica schist MSE value distribution.
Figure 25. Polynomial fitting of mica schist MSE value distribution.
Figure 26. Fourier fitting of mica schist MSE value distribution.
Figure 27. Gaussian fitting of grass MSE value distribution.
Figure 28. Polynomial fitting of grass MSE value distribution.
Figure 29. Fourier fitting of grass MSE value distribution.
Figure 30. Gaussian fitting of loam MSE value distribution.
Figure 31. Polynomial fitting of loam MSE value distribution.
Figure 32. Fourier fitting of loam MSE value distribution.
Figure 33. Gaussian fitting of Jasper Ridge gravel MSE value distribution.
Figure 34. Polynomial fitting of Jasper Ridge gravel MSE value distribution.
Figure 35. Fourier fitting of Jasper Ridge gravel MSE value distribution.
Figure 36. Gaussian fitting of asphalt MSE value distribution.
Figure 37. Gaussian fitting of asphalt MSE value distribution.
Figure 38. Fourier fitting of asphalt MSE value distribution.
After 500 calculations under the condition of 1% random error, the following results can be obtained. Copper metal, mica schist, loam, and Jasper Ridge gravel achieve polynomial fitting accuracy with the highest MSE average values of 0.01, 1 × 10−3, 2 × 10−3, 4 × 10−3, respectively. The fitting accuracy of Fourier and polynomials of grasses and other green plants is about 10e-3, and the effect of Fourier fitting is better. In particular, it is pointed out that although Gaussian fitting has higher accuracy, the MSE value is prone to jump, so Gaussian fitting is not suitable for the above-mentioned object targets.

5. Conclusions

In this study, the working principle and mathematical model of the spectrometer are elaborated. Six typical targets are selected based on fifty filters. The convex optimization algorithm is used to solve the Equations (2). Unlike the previous research, the number of filters used in this paper is fewer, and the spectral data are sparser, so the fitting method is critical. Based on the 50 transmittance curves given in this paper, the best fitting method of the original spectrum and the 50 discrete spectrums obtained by solving Equation (2) re analyzed. In terms of spectral reconstruction evaluation, the three indicators ARE, RE, and MSE are used for evaluation, further improving the accuracy of the spectral reconstruction evaluation. The convex optimization solution method, fitting method, and spectrum evaluation index proposed in this study are unique and promising to advance the field of spectrum reconstruction and are also conducive to the miniaturization of the spectrometer.
The transmittance curve of 50 filters in the wavelength range of 400–900 nm is shown in Figure 39 below.
Figure 39. Transmittance curves of 50 filters.

Author Contributions

L.Z. and J.Z. conceived the prototype and designed the experiments; H.S. performed the experiments and analyzed the data; J.Z., H.S., W.Z. and W.W. guided the improvement of the algorithm and the analyses of the results. L.Z. and W.W. revised the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Pascucci, S.; Pignatti, S.; Casa, R.; Darvishzadeh, R.; Huang, W. Hyperspectral Remote Sensing of Agriculture and Vegetation. Remote Sens. 2020, 12, 3665. [Google Scholar] [CrossRef]
  2. Wei, L.; Pu, H.; Wang, Z.; Yuan, Z.; Yan, X.; Cao, L. Estimation of Soil Arsenic Content with Hyperspectral Remote Sensing. Sensors 2020, 20, 4056. [Google Scholar] [CrossRef] [PubMed]
  3. Elsherbiny, O.; Fan, Y.; Zhou, L.; Qiu, Z. Fusion of Feature Selection Methods and Regression Algorithms for Predicting the Canopy Water Content of Rice Based on Hyperspectral Data. Agriculture 2021, 11, 51. [Google Scholar] [CrossRef]
  4. Alvarez, J.; Martinez, E.; Diezma, B. Application of Hyperspectral Imaging in the Assessment of Drought and Salt Stress in Magneto-Primed Triticale Seeds. Plants 2021, 10, 835. [Google Scholar] [CrossRef] [PubMed]
  5. Lobo, A.; Garcia, E.; Barroso, G.; Martí, D.; Fernandez-Turiel, J.-L.; Ibáñez-Insa, J. Machine Learning for Mineral Identification and Ore Estimation from Hyperspectral Imagery in Tin–Tungsten Deposits: Simulation under Indoor Conditions. Remote Sens. 2021, 13, 3258. [Google Scholar] [CrossRef]
  6. Paradis, M.-C.M.; Doucet, F.R.; Rifai, K.; Özcan, L.Ç.; Azami, N.; Vidal, F. ECORE: A New Fast Automated Quantitative Mineral and Elemental Core Scanner. Minerals 2021, 11, 859. [Google Scholar] [CrossRef]
  7. Guha, A.; Kumar Ghosh, U.; Sinha, J.; Pour, A.B.; Bhaisal, R.; Chatterjee, S.; Kumar Baranval, N.; Rani, N.; Kumar, K.V.; Rao, P.V.N. Potentials of Airborne Hyperspectral AVIRIS-NG Data in the Exploration of Base Metal Deposit—A Study in the Parts of Bhilwara, Rajasthan. Remote Sens. 2021, 13, 2101. [Google Scholar] [CrossRef]
  8. Song, K.; Wang, E.; Yao, Y.; Fu, J.; Hao, D.; You, X. Spectral Alteration Zonation Based on Close Range HySpex-320 m Imaging Spectroscopy: A Case Study in the Gongchangling High-Grade Iron Ore Deposit, Liaoning Province, NE China. Appl. Sci. 2020, 10, 8369. [Google Scholar] [CrossRef]
  9. Liu, B.; Liu, Z.; Men, S.; Li, Y.; Ding, Z.; He, J.; Zhao, Z. Underwater Hyperspectral Imaging Technology and Its Applications for Detecting and Mapping the Seafloor: A Review. Sensors 2020, 20, 4962. [Google Scholar] [CrossRef]
  10. Qing, S.; Zhang, J.; Bao, Y. Hyperspectral Remote Sensing Retrieval of Inherent Optical Properties in the Bohai Sea. Spectrosc. Spect. Anal. 2013, 33, 498. [Google Scholar]
  11. Wang, Y.; Zhou, J.; Wei, L.; Zhang, G.; Zhu, D.; Guo, S.; Tang, H.; Pang, D. Reconstruction Simulation with Quantum dots spectral imaging technology. Spectrosc. Spect. Anal. 2018, 38, 869. [Google Scholar]
  12. Chang, C. Spectrum Reconstruction for On-Chip Spectrum Sensor Array Using a Novel Blind Nonuniformity Correction Method. IEEE Sens. J. 2012, 12, 2586. [Google Scholar] [CrossRef]
  13. Bao, J.; Bawendi, M. A colloidal quantum dot spectrometer. Nature 2015, 523, 67. [Google Scholar] [CrossRef] [PubMed]
  14. Zhang, S.; Dong, Y.; Fu, H.; Huang, S.-L.; Zhang, L. A Spectral Reconstruction Algorithm of Miniature Spectrometer Based on Sparse Optimization and Dictionary Learning. Sensors 2018, 18, 644. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Zhao, S.; Li, X. Research on Reflection Spectrum Reconstruction Algorithm Based on Compressed Sensing. Spectrosc. Spect. Anal. 2021, 41, 1092. [Google Scholar]
  16. Bauer, J.R.; Thomas, J.-B.; Hardeberg, J.Y.; Verdaasdonk, R.M. An Evaluation Framework for Spectral Filter Array Cameras to Optimize Skin Diagnosis. Sensors 2019, 19, 4805. [Google Scholar] [CrossRef] [Green Version]
  17. Chang, C.; Lin, N.; Kurokawa, U.; Choi, B., II. Spectrum reconstruction for filter-array spectrum sensor from sparse template selection. Opt. Eng. 2011, 50, 114402. [Google Scholar] [CrossRef]
  18. Themelis, G.; Yoo, J.S.; Ntziachristos, V. Multispectral imaging using multiple-bandpass filters. Opt. Lett. 2008, 33, 1023. [Google Scholar] [CrossRef]
  19. Montanaro, M.; Levy, R.; Markham, B. On-Orbit Radiometric Performance of the Landsat 8 Thermal Infrared Sensor. Remote Sens. 2014, 6, 11753. [Google Scholar] [CrossRef] [Green Version]
  20. Vinckier, Q.; Hardy, L.; Gibson, M.; Smith, C.; Putman, P.; Hayne, P.O.; Sellar, R.G. Design and Characterization of the Multi-Band SWIR Receiver for the Lunar Flashlight CubeSat Mission. Remote Sens. 2019, 11, 440. [Google Scholar] [CrossRef] [Green Version]
  21. Mills, S.; Miller, S. VIIRS Day/Night Band—Correcting Striping and Nonuniformity over a Very Large Dynamic Range. J. Imaging 2016, 2, 9. [Google Scholar] [CrossRef] [Green Version]
  22. Cao, H.; Gu, X.; Wei, X.; Yu, T.; Zhang, H. Lookup Table Approach for Radiometric Calibration of Miniaturized Multispectral Camera Mounted on an Unmanned Aerial Vehicle. Remote Sens. 2020, 12, 4012. [Google Scholar] [CrossRef]
  23. Ding, S.; Wang, D.; Zhang, T. A Median-Ratio Scene-Based Non-Uniformity Correction Method for Airborne Infrared Point Target Detection System. Sensors 2020, 20, 3273. [Google Scholar] [CrossRef] [PubMed]
  24. Deng, H.; Wang, Z.; Shao, H.; Li, Y.; Li, X.; Gong, H. Performance of Dual-Band Short-Wave Infrared InGaAs Focal-Plane Arrays with Interference Narrow-Band Filter. Electronics 2019, 8, 1537. [Google Scholar] [CrossRef] [Green Version]
  25. Chi, C.; Yoo, H.; Ben-ezra, M. Multi-spectral imaging by optimized wide band Illumination. Int. J. Comput. Vis. 2010, 56, 140. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.