원시데이터 수집 시스템
선정목록으로

Research on the deep learning-based exposure invariant spectral reconstruction method

간접 관련 패션 · (24) 패션(코오롱FnC) (17) 스펀본드 부직포(3) 자동차 인테리어 소재

기본 정보

저자
  1. Jinxing Liang — Engineering Research Center of Hubei Province for Clothing Information, Wuhan, China|||School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China|||Hubei Provincial Engineering Research Center for Intelligent Textile and Fashion, Wuhan, Hubei, China
  2. Xin Lei — School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China
  3. Zhuan Zuo — School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China
  4. Jing Zhou — School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China
  5. Anping Liu — School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China
  6. Hang Luo — School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China
  7. Xinrong Hu — School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China
DOI
10.3389/fnins.2022.1031546
저널
Frontiers in Neuroscience
발행년도
2022
발행기관
Frontiers Media
피인용수
5
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3389/fnins.2022.1031546
토픽
Color Science and Applications
OpenAlex ID
W4306698456

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(17) 스펀본드 부직포, (3) 자동차 인테리어 소재
R&D 측면
분석·모델링
확신도
0.70
근거 용어
spectral reconstruction, material analysis, surface spectral reflectance, color reproduction, deep learning
판단 근거
본 논문은 딥러닝을 이용해 물체의 분광 반사율(spectral reflectance)을 재구성하는 기술을 다루며, 이는 섬유 및 패션 소재의 정밀한 색상 재현 및 재질 분석(material analysis)에 응용될 수 있는 기술입니다.
R&D 활용 포인트
패션(FnC) 분야의 섬유/원단 색상 검사 자동화나 자동차 인테리어 소재의 정밀한 색상 및 재질 분석 시스템의 알고리즘 고도화에 활용 가능합니다.
평가 입력
본문 52,997자 중 30,032자 발췌

초록

The surface spectral reflectance of an object is the key factor for high-fidelity color reproduction and material analysis, and spectral acquisition is the basis of its applications. Based on the theoretical imaging model of a digital camera, the spectral reflectance of any pixels in the image can be obtained through spectral reconstruction technology. This technology can avoid the application limitations of spectral cameras in open scenarios and obtain high spatial resolution multispectral images. However, the current spectral reconstruction algorithms are sensitive to the exposure variant of the test images. That is, when the exposure of the test image is different from that of the training image, the reconstructed spectral curve of the test object will deviate from the real spectral to varying degrees, which will lead to the spectral data of the target object being accurately reconstructed. This article proposes an optimized method for spectral reconstruction based on data augmentation and attention mechanisms using the current deep learning-based spectral reconstruction framework. The proposed method is exposure invariant and will adapt to the open environment in which the light is easily changed and the illumination is non-uniform. Thus, the robustness and reconstruction accuracy of the spectral reconstruction model in practical applications are improved. The experiments show that the proposed method can accurately reconstruct the shape of the spectral reflectance curve of the test object under different test exposure levels. And the spectral reconstruction error of our method at different exposure levels is significantly lower than that of the existing methods, which verifies the proposed method's effectiveness and superiority.

본문 52,997자

본문 펼치기
OPEN ACCESS EDITED BY Qiang Liu, Wuhan University, China REVIEWED BY Peng Xu, Zhejiang A&F University, China Husnain Shahid, Fudan University, China *CORRESPONDENCE Xinrong Hu hxr@wtu.edu.cn SPECIALTY SECTION This article was submitted to Perception Science, a section of the journal Frontiers in Neuroscience RECEIVED 30 August 2022 ACCEPTED 20 September 2022 PUBLISHED 17 October 2022 CITATION Liang J, Xin L, Zuo Z, Zhou J, Liu A, Luo H and Hu X (2022) Research on the deep learning-based exposure invariant spectral reconstruction method. _Front. Neurosci._ 16:1031546. [doi: 10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) COPYRIGHT © 2022 Liang, Xin, Zuo, Zhou, Liu, Luo and Hu. This is an open-access article distributed under the terms of the [Creative Commons Attribution License](http://creativecommons.org/licenses/by/4.0/) [(CC BY). The use, distribution or](http://creativecommons.org/licenses/by/4.0/) reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms. TYPE [Original Research](https://www.frontiersin.org/journals/neuroscience#editorial-board) PUBLISHED [17 October 2022](https://www.frontiersin.org/journals/neuroscience#editorial-board) DOI [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) # Research on the deep learning-based exposure invariant spectral reconstruction method Jinxing Liang <sup>1,2,3</sup>, Lei Xin <sup>1</sup>, Zhuan Zuo <sup>1</sup>, Jing Zhou <sup>1</sup>, Anping Liu <sup>1</sup>, Hang Luo <sup>1</sup> and Xinrong Hu <sup>1</sup> 1School of Computer Science and Artificial Intelligence, Wuhan Textile University, Wuhan, Hubei, China, <sup>2</sup> Hubei Provincial Engineering Research Center for Intelligent Textile and Fashion, Wuhan, Hubei, China, <sup>3</sup> Engineering Research Center of Hubei Province for Clothing Information, Wuhan, China The surface spectral reflectance of an object is the key factor for high-fidelity color reproduction and material analysis, and spectral acquisition is the basis of its applications. Based on the theoretical imaging model of a digital camera, the spectral reflectance of any pixels in the image can be obtained through spectral reconstruction technology. This technology can avoid the application limitations of spectral cameras in open scenarios and obtain high spatial resolution multispectral images. However, the current spectral reconstruction algorithms are sensitive to the exposure variant of the test images. That is, when the exposure of the test image is different from that of the training image, the reconstructed spectral curve of the test object will deviate from the real spectral to varying degrees, which will lead to the spectral data of the target object being accurately reconstructed. This article proposes an optimized method for spectral reconstruction based on data augmentation and attention mechanisms using the current deep learning-based spectral reconstruction framework. The proposed method is exposure invariant and will adapt to the open environment in which the light is easily changed and the illumination is non-uniform. Thus, the robustness and reconstruction accuracy of the spectral reconstruction model in practical applications are improved. The experiments show that the proposed method can accurately reconstruct the shape of the spectral reflectance curve of the test object under different test exposure levels. And the spectral reconstruction error of our method at different exposure levels is significantly lower than that of the existing methods, which verifies the proposed method’s effectiveness and superiority. KEYWORDS spectral reconstruction, multispectral image, color science, convolutional neural network, exposure invariant, dense connections [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 01 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) ## Introduction The visual system is important for humans to sense the external environment. The eye can sense light radiation in the visible light range in the visual system. The light stimulation photoreceptor cells receive will eventually form a comprehensive vision in the brain. By simulating visual perception, digital cameras use color filter array sensors and image signal processing technology to record the radiation spectrum of natural scenes as a color image that conforms to human visual perception. However, color imaging technology has a limited ability to reproduce colors and characterize objects, and the information contained in the visible spectrum is far beyond the RGB data. The metamerism problem of color imaging is the key issue of its use in high-fidelity color reproduction and high-precision material characterization (Kang, 2006). It is well known that spectral reflectance is the “fingerprint” of color information, which can effectively overcome the influence of light source and observer on color reproduction and object characterization. It is often used in agriculture, cultural relic protection, skin health monitoring, and other fields (Kim et al., 2017; Xu et al., 2017; Ablet et al., 2019). In addition, in the field of computer vision, multispectral data can improve detection accuracy (Hwang et al., 2015). However, due to the limitations of current multispectral imaging technology, such as the complexity of the systems (Hardeberg et al., 2002; Liang, 2012) and the low spatial resolution (Cucci et al., 2016; Daniel et al., 2016), the current spectral cameras cannot quickly acquire multispectral images with high spatial resolution, which restricts the wide application of multispectral images. Reconstructing multispectral images of scenes from RGB images has been widely researched in many fields. Spectral reconstruction is one of the ill-conditioned inverse problems (Ribes and Schmitt, 2008). The same RGB data may correspond to completely different spectral reflectance data. In natural scenes, however, there is always a close correlation between the RGB data of an image and the corresponding multispectral image. Based on mathematical modeling, the relationship between RGB data and corresponding multispectral data can be established, and fairly accurate spectral reconstruction results can be obtained (Lin and Finlayson, 2020). Therefore, spectral reconstruction technology is easier to apply to open environments than spectral cameras and quickly acquires high spatial resolution multispectral images. Current spectral reconstruction methods are mainly divided into two different classes: machine learning and deep learningbased methods (Liang et al., 2016, 2019; Galliani et al., 2017; Liang and Wan, 2017; Shi et al., 2018; Yan et al., 2018; Liang and Xiao, 2020; Zhang et al., 2020). The machine learning-based methods include pseudo-inverse, kernel algorithm, principal component analysis, and so on (Liang et al., 2019). The pseudo-inverse method builds a reconstruction matrix based on the error between the reconstructed and ground-truth spectra of the training data. The kernel algorithm uses the kernel function to transform the response values to the kernel space and then calculates the reconstruction matrix. And the principal component analysis method uses the top k principals and coefficient matrix to reconstruct the spectral reflectance of the target. In summary, the current machine learningbased spectral reconstruction methods are all based on the digital camera imaging model to reconstruct the spectral reconstruction matrix. However, they are all exposure sensitive, and the reconstructed spectral errors are large when applied in non-uniform lighting environments. In recent years, with the rapid development of deep learning in the field of computer vision, classical network models, such as convolutional neural networks and generative adversarial networks, have been used in spectral reconstruction. Deep learning-based spectral reconstruction models usually use a large number of data sample pairs as support to establish the mapping relationship between RGB images and multispectral images. For the deep learning-based spectral reconstruction, Yan et al. (2018) applied the U-net network to spectral reconstruction. Galliani et al. (2017) utilized a variant of full convolution for the end-to-end spectral reconstruction task. Shi et al. (2018) proposed a network model based on residuals and densely connected structures (He et al., 2016; Huang et al., 2017). Zhang et al. (2020) proposed a deep learning spectral reconstruction model based on dense connections. However, the existing deep learning-based spectral reconstruction methods with good spectral reconstruction accuracy usually have complex network structures, a large number of parameters, and exposure sensitivity (as shown in Figure 1B ). That is, the spectral reconstruction model constructed under one exposure level cannot adapt to another, or the reconstructed spectral curve will deviate from the ground truth. An optimized deep learning-based spectral reconstruction method is proposed based on a lightweight convolutional neural network (CNN) to address the issues arising from the current deep learning-based spectral reconstruction methods, such as a large number of model parameters and sensitivity to exposure changes of test images. Moreover, some optimized measures are integrated into the network. First, the input RGB training image is randomly multiplied by an exposure adjustment coefficient during model training so that the model can see images with more exposure levels. According to the exposure adjustment coefficient of the training image, the reconstructed multispectral image (RMSI) is reciprocally corrected in the loss function to make the model learn the exposure invariant spectral features that correspond to the training images. Secondly, the dense connection mechanism in the original model not only helps to alleviate the problem of model gradient disappearance but also greatly reduces the number of model parameters. Finally, an attention mechanism is introduced into the model to improve spectral reconstruction accuracy by adaptively weighting the [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 02 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) FIGURE 1 Schematic diagram of the exposure invariant (A) and exposure sensitive (B) spectral reconstruction methods. The photos appearing in these [figures are chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/).](https://icvl.cs.bgu.ac.il/projects/ntire2020/) feature channels. Experimental results show that the proposed method not only achieves the performance of exposure invariant but also exhibits better spectral reconstruction accuracy than existing methods. ## Models and methods Imaging model The imaging process of a color digital camera involves three factors, light source, object, and camera. The light sources are usually characterized by their spectral power distribution. When the light source irradiates the surface of the object, the object will selectively absorb some wavelengths of energy and reflect the rest to form a radiance spectral that integrates the light source information and the reflection characteristics of the object. The radiance spectra are focused and incident on the camera sensor through the lens. After photoelectric conversion and analog-to-digital conversion, the radiance spectral forms a raw format digital image on the camera sensor, and then the raw image undergoes a series of image signal processing (dark current correction, dead pixel correction, white balance where _di_ represents the response of the _i_ -th channel of a pixel in the image, _l_ (λ) is the spectral distribution of the lighting source, _r_ (λ) is the spectral reflectance of a point on the surface of the object, _t_ (λ) is the overall transmittance of the camera lens optics, _fi_ (λ) is the transmittance of the _i_ -th channel filter of the camera, _s_ (λ) is the spectral sensitivity function of the camera sensor, λ indicates the wavelength, _ni_ represents the noise signal of the _i_ -th correction, demosaicing, color space conversion, etc.) to form the visually pleasing color image (Nakamura, 2017). The imaging mentioned above process of a digital camera can be generally divided into a linear imaging stage and a nonlinear processing stage. The linear imaging stage is from the radiance spectral to the raw image, and the nonlinear imaging stage is from the raw image to the final visual pleased color image. However, because different brands of cameras usually use different image signal processing algorithms, and because they are all the company’s intellectual properties, it is hard to accurately and uniformly express the nonlinear stage. The current research on spectral reconstruction is carried out in the linear imaging mode (Ribes and Schmitt, 2008), as shown in Eq. 1: _di_ = - _l (_ λ _) r (_ λ _) t (_ λ _) fi (_ λ _) s (_ λ _) d_ λ + _ni_ = - _mi (_ λ _) r (_ λ _) d_ λ + _ni,_ (1) [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 03 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) channel of the digital camera, _mi_ = _l_ (λ) _t_ (λ) _fi_ (λ) _s_ (λ) represents the overall spectral sensitivity function of the _i_ -th channel of a digital camera (Liang et al., 2019). Eq. 1 can be abbreviated into the matrix form as shown in Eq. 2: _d_ = _Mr_ (2) where _d_ represents the _K_ × 1 dimensional response value vector of a pixel, _K_ is the channel number of the imaging system. M is the _K_ × _N_ dimensional overall sensitivity function matrix of the imaging system that contains _l_ (λ), _t_ (λ), _fi_ (λ), and _s_ (λ), and _r_ represents the _N_ × 1 dimensional spectral vector of a pixel. Spectral reconstruction model Because of the high correlation between RGB images and the corresponding multispectral images, learning-based methods can be used to model the mapping between RGB and multispectral images. In recent years, with the success of deep learning in many computer vision tasks, CNN based methods have gradually been applied to spectral reconstruction. Assuming that an RGB image and its corresponding multispectral image are given, the mapping between RGB and multispectral image can be described as follows: appropriate design of the spectral reconstruction model [such as the use of root polynomial extended regression (Lin and Finlayson, 2019)] and using linear raw image data, the method can achieve the ability of exposure invariant (as shown in Figure 1A ). Unlike machine learning-based methods, which can easily perform linear regression, deep learning-based spectral reconstruction methods are all nonlinear mathematical models. This is because, to ensure the learning ability and generalization performance of the deep learning model, the nonlinear activation functions (such as _Relu_, _Prelu,_ and _Sigmoid_ functions) and non-zero bias terms are always included in the model. Therefore, obtaining the corresponding linear output is difficult for the existing deep learning-based spectral reconstruction model when a set of linear inputs is given. In other words, the existing deep learning-based spectral reconstruction models are exposure sensitive and cannot guarantee the correctness of the reconstructed spectral curve (as shown in Figure 1B ). Take the typical architecture of a single neuron in the deep learning framework as an example, as shown in Eq. 4: _y_ = _h_ - _w_ <sup>_T_</sup> _x_ + _b_ - (4) - (3) where _x_ is the input, _w_ is the weight, _b_ is the bias, _y_ is the output, and _h_ (·) is the activation function. Without considering the influence of exposure change on spectral reconstruction, the corresponding output y can always be obtained for any given input x. However, considering the exposure influence on spectral reconstruction (Lin and Finlayson, 2019), the output _ky_ is difficult to acquire directly for the input _kx_ for current deep learning-based spectral reconstruction methods, where _k_ is the exposure adjustment coefficient. Therefore, for the existing deep learning-based spectral reconstruction model, how to make it exposure invariant, as shown in Eq. 5, will be the key problem when using it in an open environment with variable and non-uniform illumination (Liang and Xiao, 2020). In addition, it is also important to reconstruct high-precision multispectral images in an open illumination environment: _r_ = _f_ - _d_ where _d_ is the digital response value of any pixel in the RGB image, _r_ is the spectral reflectance corresponding to the pixel, and _f_ (·) is the mapping model from RGB values to multispectral reflectance. When the spectral reconstruction model _f_ (·) is established, the corresponding spectral reflectance _r_ can be obtained by Eq. 3 for any given pixel response value _d_ . The multispectral image corresponding to the RGB image is obtained. Proposed optimized method As mentioned in the introduction section, neural networks can learn the mapping relationship from RGB images to multispectral images, and convolutional networks and generative adversarial networks are gradually being used in spectral reconstruction. However, existing deep learning-based spectral reconstruction models usually need to train millions of model parameters. And during model training, convolution operators are used to extract deep image features. Multiple sets of convolution operators are usually superimposed to improve the network’s performance, making the deep learning spectral reconstruction methods more complex than machine learningbased ones. In addition, although the accuracy of the existing machine learning-based spectral reconstruction method is limited by the Based on the statements above, to build a lightweight deep learning-based spectral reconstruction model with the ability to be exposure invariant and, at the same time, improve the spectral reconstruction accuracy, in this study, an optimized deep learning-based spectral reconstruction method is proposed by referencing the existing models. The ability to be exposure invariant is first achieved for the spectral reconstruction model through training data enhancement. Then, the attention mechanism of spectral reconstruction is further introduced into the model to improve the spectral reconstruction accuracy. Details of the proposed optimized method are described as follows. - (5) _kr_ = _f_ - _kd_ [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 04 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) FIGURE 2 Schematic diagram of training the deep learning-based spectral reconstruction model based on data augmentation. The photos appearing in [these figures are chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/).](https://icvl.cs.bgu.ac.il/projects/ntire2020/) FIGURE 3 Schematic diagram of convolutional block attention module (CBAM) attention module. TABLE 1 Comparison of the mean relative absolute error (MRAE) (%) of different methods under different tested exposure levels. Exposure ×1 Exposure ×0.25 Exposure ×0.5 Exposure ×2 Exposure ×4 _Ave._ _Std._ Yan 0.38 8.42 3.97 0.72 1.18 2.93 3.38 Galliani 0.38 6.55 2.02 0.81 1.09 2.17 2.52 Zhang 0.31 6.06 2.01 0.69 0.92 2.00 2.36 HSCNN+ 0.24 5.70 1.94 0.67 1.15 1.94 2.19 Ours 0.36 0.42 0.37 0.36 0.38 0.38 0.03 The bold values indicate the best results with the smallest spectral reconstruction errors. TABLE 2 Comparison of the mean relative absolute error (MRAE) (%) of different methods under different tested exposure levels. Exposure ×1 Exposure ×0.25 Exposure ×0.5 Exposure ×2 Exposure ×4 _Ave._ _Std._ Yan 2.43 70 _._ 20 26 _._ 37 5 _._ 27 8 _._ 02 22 _._ 46 28 _._ 28 Galliani 2.49 58 _._ 74 17 _._ 84 5 _._ 79 7 _._ 92 18 _._ 56 23 _._ 18 Zhang 1.85 47 _._ 56 16 _._ 61 5 _._ 09 6 _._ 94 15 _._ 61 18 _._ 69 HSCNN+ 1.39 51 _._ 81 15 _._ 50 4 _._ 86 8 _._ 00 16 _._ 31 20 _._ 52 Ours 2.28 2 _._ 64 2 _._ 31 2 _._ 32 2 _._ 61 2 _._ 43 0 _._ 18 The bold values indicate the best results with the smallest spectral reconstruction errors. The proposed method is based on the neural network model developed by Zhang et al. (2020). In the training stage, the input RGB image is first randomly multiplied by the exposure adjustment coefficient _k_ to simulate the exposure change. Secondly, to keep the RMSI exposure invariant, the RMSI is multiplied by the reciprocal of the exposure adjustment coefficient in the loss function. Finally, various evaluation metrics are calculated using the RMSI and the ground truth multispectral image (GMSI). The training process is shown in Figure 2 . [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 05 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) TABLE 3 Comparison of the spectral angle mapping (SAM) errors of different methods under different tested exposure levels. Exposure ×1 Exposure ×0.25 Exposure ×0.5 Exposure ×2 Exposure ×4 _Ave._ _Std._ Yan 1.47 24 _._ 98 15 _._ 71 3 _._ 66 5 _._ 68 10 _._ 30 9 _._ 85 Galliani 1.55 38 _._ 86 11 _._ 63 3 _._ 98 5 _._ 28 12 _._ 26 15 _._ 33 Zhang 1.29 26 _._ 52 10 _._ 98 3 _._ 63 4 _._ 99 9 _._ 48 10 _._ 17 HSCNN+ 0.99 15 _._ 88 8 _._ 62 3 _._ 56 5 _._ 81 6 _._ 97 5 _._ 72 Ours 1.56 1 _._ 83 1 _._ 60 1 _._ 57 1 _._ 76 1 _._ 66 0 _._ 12 The bold values indicate the best results with the smallest spectral reconstruction errors. FIGURE 4 The root-mean-square error (RMSE) map of a reconstructed multispectral image (RMSI) of different methods under different tested exposure levels. The photos appearing in these figures are chosen from the public multispectral dataset from the NTIRE challenges [(https://icvl.cs.bgu.ac.il/projects/ntire2020/).](https://icvl.cs.bgu.ac.il/projects/ntire2020/) In addition, the attention mechanism is introduced into the original model to further improve the spectral reconstruction accuracy. Currently, the commonly used attention modules include channel attention, spatial attention, and non-local networks (Hu et al., 2018; Wang et al., 2018; Woo et al., 2018). If the feature maps of each layer in the deep learning network are fused into a total feature map, the weights of the feature maps of each dimension relative to the total feature map are all different. [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 06 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) FIGURE 5 Two reconstructed spectral reflectances under different exposure levels using a different method. The photos appearing in these figures are [chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/).](https://icvl.cs.bgu.ac.il/projects/ntire2020/) The attention mechanism is to learn the weight of each feature map relative to the total feature map and then generate a weight mask and weight the original feature map to realize the effective use of feature information. For the existing attention modules, Hu et al. (2018) proposed a compressed excitation network, which has won the championship in the ImageNet competition image classification track, and its structure mainly includes compression (Squeeze), excitation (Excitation), and feature weighting (Scale) modules. The author first uses the pooling operation to compress the feature map space and then outputs a real number on each channel to extract the channel dimension information. Secondly, the activation function will generate weights for each feature channel through the excitation module, including the fully connected layer and the activation function. Finally, the initial feature map is scaled using the weight mask, and the re-calibration of the original feature is completed on the feature channel. The spatial attention is to compress the channel information of the feature map and excite it in the spatial dimension. The mask of the spatial domain is calculated by compressing the channel, and the mask is multiplied by the original feature value. The non-local network can directly calculate the relationship between any two positions on the feature image, but the [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 07 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) FIGURE 6 The illumination distribution of non-uniformity points to the light source. TABLE 4 Comparison of the spectral reconstruction errors of different methods under the illumination of non-uniformity point light source. Galliani YAN HSCNN+ Zhang Ours RMSE 0.85 0.76 0.73 0.72 0.36 MRAE 6.21 5.63 5.41 5.42 2.34 SAM 4.21 3.89 3.90 3.86 1.59 The bold values indicate the best results with the smallest spectral reconstruction errors. TABLE 5 Comparison of root-mean-square error (RMSE) (%) of different optimization methods under different tested exposure levels. Exposure ×1 Exposure ×0.25 Exposure ×0.5 Exposure ×2 Exposure ×4 _Ave._ _Std._ Zhang 0.31 6.06 2.01 0.69 0.92 2.00 2.36 Data augment 0.36 0.43 0.39 0.37 0.39 0.39 0.27 Ours 0.36 0.42 0.37 0.36 0.38 0.38 0.25 The bold values indicate the best results with the smallest spectral reconstruction errors. TABLE 6 Comparison of mean relative absolute error (MRAE) (%) of different optimization methods under different tested exposure levels. Exposure ×1 Exposure ×0.25 Exposure ×0.5 Exposure ×2 Exposure ×4 _Ave._ _Std._ Zhang 1.85 47 _._ 56 16 _._ 61 5 _._ 09 6 _._ 94 15 _._ 61 18 _._ 69 Data augment 2.30 2 _._ 72 2 _._ 53 2 _._ 49 2 _._ 73 2 _._ 55 0 _._ 18 Ours 2.28 2 _._ 64 2 _._ 31 2 _._ 32 2 _._ 61 2 _._ 43 0 _._ 18 The bold values indicate the best results with the smallest spectral reconstruction errors. network will generate more parameters in the spectral reconstruction task. The convolutional block attention module (CBAM) is a tandem hybrid attention module (Woo et al., 2018). It learns the attention of the two dimensions in turn according to the order of the channel domain attention and the spatial domain attention. CBAM can be used as a plug-and-play module in neural networks and is one of the most commonly used [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 08 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) attention mechanism algorithms in the field of computer vision research. The major difference between the CBAM module and the SE (Hu et al., 2018) module is that a parallel max pooling layer is added, and the attention mechanism is learned for more than two domains, such as the spatial domain and the channel domain, which makes its feature extraction more sufficient. This article adopts the CBAM module and adds a residual structure to it. The CBAM attention module is shown in Figure 3 . The feature channel information is first compressed into a real number through the average pooling and max pooling layers for the channel attention module. Then the feature weights are extracted through two fully connected layers, including the activation function. Among the fully connected layers, the first fully connected layer can reduce the feature dimension to 1/s of the input, where _s_ is the compression parameter. In this article, the values of s are 4, 32, and 16, respectively. After the feature map output is by the first fully connected layer, it is activated by the Relu function and restored to the original dimension by the second fully connected layer. The Sigmoid function processes the feature information processed by the second fully connected layer. At this stage, the weight calibration of the original features is completed. Then, the spatial attention mechanism module takes the output of channel attention as input and uses average pooling and maximum pooling to integrate channel feature information. After that, the two parts of the features are combined using 1 × 1 convolution for dimensionality reduction, and finally, the required mask is acquired through the Sigmoid activation function. The overall expression for CBAM attention is expressed as Eqs 6, 7: - _A_ vg _Pool (x)_ + _MaxPool (x)_ �� (6) After shallow feature extraction and a densely connected network, a feature information map with 128 layers is obtained, which is input into the reconstruction layer that includes three layers of convolution. The kernel size of each layer of convolution in the network is set at 3, the activation function is Relu, and the CBAM module is added to the shallow feature extraction and reconstruction layer to further improve the robustness of the network. Finally, we obtain the RMSI corresponding to the input of the RGB image. ## Experiment Experiment settings To test the effectiveness and superiority of the proposed method, we carried out the verification experiment. The proposed deep learning-based spectral reconstruction framework is implemented in TensorFlow and is trained using the platform of Intel Xeon and Tesla V100. The database for the experiments is NTIRE2018 (Arad et al., 2018), which is extended from the ICVL dataset (Arad and Ben-Shahar, 2016). The ICVL dataset consists of 203 multispectral images captured with the hyperspectral camera Specim PS Kappa DX4. The spatial resolution of each image is 1392 × 1300 pixels, and the spectral sampling range of each multispectral image is from 400 to 700 nm with a sampling interval of 10 nm. In addition, in the NTIRE2018 challenge, 53 multispectral images with the same spatial and spectral resolution were added to further expand the dataset, so the experiment finally used 256 multispectral images as training data in this per, and their corresponding RGB images were acquired using the same method as NTIRE2018 and NTIRE2020 (Arad et al., 2018, 2020). During model training, the data blocks with a size of 40 × 40 pixels are cropped from the training data as input. The learning rate was initially set to 0.0001 and exponentially decayed to a rate of 0.99. The max epoch number was set to 50, and other hyperparameters in the model Zhang et al. (2020) remained unchanged. Evaluation metrics In the experiment, the spectral root-mean-square error (RMSE), the mean relative absolute error (MRAE), and the spectral angle mapping (SAM) error are used to evaluate and compare the spectral reconstruction accuracy of different models. The smaller the value of the evaluation metrics, the closer the RMSI is to the ground truth and the better the performance of the method. Calculation of the evaluation metrics is shown in Equs 8–10, where _n_ represents the spectral bands, _i_ represents a pixel in a multispectral image, _IR_ represents _C_ = δ - _MLP_ - _A_ vg _Pool (x)_ ; _MaxPool (x)_ �� _,_ (7) _S_ = δ - _f_ where _x_, δ _,_ and _MLP_ are the input, activation function, and multilayer perceptron, respectively. _C_ is the output channel attention feature, and _S_ is the output spatial attention feature. Based on Eqs 6, 7, the weight of each channel can be adaptively learned and used to weigh the corresponding channel features to improve spectral reconstruction accuracy. This is plotted in Figure 2 of the overall architecture of the proposed deep learning-based spectral reconstruction model. For an RGB image of any input, the feature information of the shallow layer of the input image is first extracted through 16 layers of convolution and then through 7 layers of dense connection. Each dense connection layer has 16 convolution kernels. The dense structure further improves the reuse rate of channel features compared with the residual structure. The size of the feature map remains unchanged, and the number of channels gradually increases with the deepening of the network, which greatly reduces the parameters of the network. Dense connections also mitigate the vanishing gradient problem to some extent. [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 09 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) TABLE 7 Comparison of spectral angle mapping (SAM) errors of different optimization methods under different tested exposure levels. Exposure ×1 Exposure ×0.25 Exposure ×0.5 Exposure ×2 Exposure ×4 _Ave._ _Std._ Zhang 1.29 26 _._ 52 10 _._ 98 3 _._ 63 4 _._ 99 9 _._ 48 10 _._ 17 Data augment 1.57 1 _._ 84 1 _._ 72 1 _._ 71 1 _._ 86 1 _._ 74 0 _._ 12 Ours 1.56 1 _._ 83 1 _._ 60 1 _._ 57 1 _._ 76 1 _._ 66 0 _._ 12 The bold values indicate the best results with the smallest spectral reconstruction errors. FIGURE 7 The root-mean-square error (RMSE) map of the reconstructed multispectral image (RMSI) of the original and proposed under different tested exposure levels. The photos appearing in these figures are chosen from the public multispectral dataset from the NTIRE challenges [(https://icvl.cs.bgu.ac.il/projects/ntire2020/).](https://icvl.cs.bgu.ac.il/projects/ntire2020/) the reconstructed multispectral images, and _IG_ represents the ground-truth multispectral image. _G_ <sup>_(i))_</sup> (8) <sup>_I_</sup> _G_ <sup>_(i)_</sup> <sup>|</sup> <sup>_/I_</sup> _G_ <sup>_(i)_</sup> _MRAE_ = _n_ <u>1</u> ~~�~~ _RMSE_ = - _n_ _i_ = 1 <u>1</u> n _(_ | _IR_ <sup>_(i)_</sup> _R_ <sup>_(i)_</sup> <sup>−</sup> <sup>_I_</sup> _G_ <sup>_(i)_</sup> _G_ <u>�</u> _IR_ <sup>_(i)_</sup> _R_ <sup>_(i)_</sup> <sup>−</sup> <sup>_I_</sup> _G_ <sup>_(i)_</sup> - _n_ _i_ = 1 <u>������2</u> <u>�2</u> <sup>_)_</sup> (9) - _T_ _IG_ <sup>_(i)_</sup> <u>������</u> _IG(i)_ <u>���</u> _SAM_ = _n_ <u>1</u> <sup>cos−1</sup> - - _n_ _i_ = 1 _R_ _G_ <u>������</u> _IR(i)_ <u>������2������</u> _IG(i)_ <u>���</u> - _IR_ <sup>_(i)_</sup> _R_ methods, such as Yan et al. (2018), Galliani et al. (2017), Zhang et al. (2020), and HSCNN+(Shi et al., 2018). The experimental results are summarized in Tables 1 - 3, respectively. Where the expression of Exposure × _k_ means the exposure adjustment coefficient k adjusts the exposure level of the test image before it is fed into the framework. The value of _k_ is used in 1, 0.25, 0.5, 2, and 4 during the testing stage. Additionally, when calculating the spectral reconstruction error, the RMSI is corrected to 1/ _k_ of the output. It can be seen from the experimental results summarized in Tables 1 - 3 that although the method of HSCNN + showed the smallest reconstruction error when the exposure adjustment coefficient was equal to 1, where the corresponding errors of RMSE, MRAE, and SAM are 0.24, 1.39, and 0.99% when the exposure adjustment coefficient _k_ is equal to 0.25, 0.5, 2, and 4. The proposed method is significantly better than the HSCNN+ and other methods. The overall average spectral reconstruction error of all the tested exposure levels is 0.38, 2.43, and 1.66%, respectively, which is significantly better than the existing advanced deep learning spectral reconstruction algorithms. _)_ <u>������2</u> (10) ## Results and discussion Comparison of spectral reconstruction methods Using the experimental conditions mentioned above, we tested the effect of the proposed deep learning-based spectral reconstruction method compared with several current advanced [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 10 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) compare the performance of the methods, two reconstructed spectral reflectances under different testing exposure levels using the different methods are plotted in Figure 5 . It is easy to find that the spectral reflectance curves reconstructed using the proposed method are closer to the ground truth under different testing exposure levels, while the compared methods only performed well when the exposure level was 1 and performed badly under other testing exposure levels. FIGURE 8 Comparison of the number of learning parameters of different models. In addition, according to the standard deviation of each method under different test exposure levels, there is no significant difference in the spectral reconstruction error of the proposed method under different test exposure levels. However, the standard deviation of the compared methods under different tested exposure levels is quite large. On the one hand, the experimental results in Tables 1 - 3 show that the existing deep learning-based spectral reconstruction model cannot expose invariant. On the other hand, it also proves that the proposed method not only achieves the ability of exposure invariance but also its superiority to the existing methods in spectral reconstruction accuracy. Furthermore, the difference between the proposed and compared methods is insignificant when the test exposure level is equal to 1, which generally proves the effectiveness and superiority of this article’s proposed deep learning-based spectral reconstruction model. Moreover, it should be noted that among the several compared spectral reconstruction algorithms in this article, the accuracy of the HSCNN+ model is generally better than all the other methods. The RMSE map of the RMSI and the GMSI of each method are plotted in Figure 4 . The yellower the image color, the greater the spectral reconstruction error, as indicated by the color bar, and the bluer the color, the smaller the error. From the results in Figure 4, we can see that the RMSE map of the RMSI and the ground truth by each method are consistent with the objective data in Table 1 . When the exposure level of the tested image is equal to 1, the HSCNN+ method performs the best, and the error values in the RMSE map are lower than those of the proposed method. However, in terms of the other four tested exposure levels, the proposed method shows the best spectral reconstruction accuracy, and the four compared methods show very significant spectral reconstruction errors. To further In addition, the verification of the proposed method in reconstructing the non-uniformity illuminated images is also tested. As shown in Figure 6, the non-uniformity point light source is simulated to illuminate an image. Table 4 shows that the image illuminated by a non-uniformity point light source is also well reconstructed. The results in Figures 5, 6 once again prove the effectiveness and superiority of the proposed method. Analysis of the proposed method The spectral reconstruction errors of the original method developed by Zhang et al. (2020), the optimized method with only the data enhancement, and the proposed method with data enhancement and attention mechanism, are summarized in Tables 5 - 7 . It is easy to infer from Tables 5 - 7 that when the tested exposure level is equal to 1, the original method shows the best spectral reconstruction results; however, when the tested exposure level changes to other values, the spectral reconstruction error increases significantly when the data augmentation and attention mechanisms are introduced into the proposed method. Although the spectral reconstruction error increases slightly when the tested exposure level is equal to 1, the new method generally has achieved the ability of exposure invariant, as shown in Figure 1A and Eq. 5. In addition, although the improvement in the spectral reconstruction accuracy is not so significant when introducing the attention mechanism into the proposed network, the spectral reconstruction accuracy of the proposed method does improve at some specific tested exposure levels. For example, at the tested exposure level of 0.5, the error of the evaluation metric MRAE is reduced by about 8% compared with the only use of data enhancement in the proposed method. At the tested exposure level of 2, the error of the evaluation metric MRAE is reduced by about 6% compared with the pure data enhancement. Moreover, at the tested exposure level of 4, the error of the evaluation metric SAM is reduced by about 5% compared with the pure data enhancement in the proposed method. The proposed method may be further improved based on data enhancement. Figure 7 shows the RMSE map of different methods of an original method developed by Zhang et al. (2020), the [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 11 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) optimized method with only the data enhancement, and the proposed method with both data enhancement and an attention mechanism. It can be seen from the results in Figure 7 that the introduction of a data enhancement mechanism into the original model can make the method achieve the ability of exposure invariant for spectral reconstruction. And when the attention mechanism is introduced into the proposed method, the spectral reconstruction accuracy can be further improved, but the overall improvement is not obvious, and further optimization measures to improve the spectral reconstruction accuracy can be considered in future studies. At last, the number of learning parameters for each model in this article is counted and plotted in Figure 8 . It is easy to infer from Figure 8 that the number of learning parameters of the original model proposed by Zhang et al. (2020), as well as the optimized model in this article, is very small compared with other models, which means that the proposed method is easy to distribute for practice using. ## Conclusion Multispectral image acquisition is the prerequisite for its applications. In view of the problems of the existing deep learning-based spectral reconstruction methods, such as a large number of parameters and the exposure invariant. An optimized lightweight neural network for spectral reconstruction is proposed in this article, and the data augmentation and attention mechanisms are introduced into the original method to make it more efficient and exposure invariant. The optimization of the proposed method makes it more robust in practical applications in an open environment with variable light sources and non-uniformity illumination. The shape of the reconstructed spectral reflectance curve of the target can be well preserved using the proposed method under different exposure levels, which provides the foundation for high-precision multispectral image acquisition in an open environment. However, improving the module attention mechanism proposed in the proposed method does not significantly improve the spectral reconstruction accuracy. More research will be carried out to further improve the method in the future. ## References Ablet, E., Maimaitiaili, B., Sawut, M., and Shenqun, A. (2019). Combined estimation of chlorophyll content in cotton canopy based on hyperspectral parameters and back propagation neural network. _Acta_ _Opt._ _Sin._ 39:0930003. [doi: 10.3788/aos201939.0930003](https://doi.org/10.3788/aos201939.0930003) Arad, B., and Ben-Shahar, O. (2016). “Sparse recovery of hyperspectral signal from natural RGB images,” in _Proceedings of the European Conference on Computer_ _Vision_ [, (Cham: Springer), 19–34. doi: 10.1007/978-3-319-46478-7_2](https://doi.org/10.1007/978-3-319-46478-7_2) ## Data availability statement The original contributions presented in this study are included in the article/supplementary material, further inquiries can be directed to the corresponding author. ## Author contributions JL: methodology, data collection and analysis, and writingreviewing. LX: methodology, data collection and analysis, and writing. ZZ: data collection and analysis. JZ and AL: data collection. HL: data analysis. XH: methodology, funding acquisition, and writing-reviewing. All authors contributed to the article and approved the submitted version. ## Funding This work was supported by the Natural Science Foundation of Hubei Province, China (No. 2022CFB <sup>∗∗∗</sup>, No. 2020CFB386); the Research Foundation of Wuhan Textile University (No. 20220609), and the Team Plan of Scientific and Technological Innovation of Outstanding Youth in Universities of Hubei Province, China (No. T201807). ## Conflict of interest The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. ## Publisher’s note All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher. Arad, B., Ben-Shahar, O., Timofte, R., Gool, L. V., and Yang, M. H. (2018). “NTIRE 2018 challenge on spectral reconstruction from RGB Images,” in _Proceedings_ _of_ _the_ _2018_ _IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _Workshops_ _(CVPRW)_, (Salt Lake City, UT: IEEE). Arad, B., Timofte, R., Ben-Shahar, O., Lin, Y. T., and Finlayson, G. D. (2020). “Ntire 2020 challenge on spectral reconstruction from an the rgb image,” in [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 12 [frontiersin.org](https://www.frontiersin.org/) Liang et al. [10.3389/fnins.2022.1031546](https://doi.org/10.3389/fnins.2022.1031546) _Proceedings of the IEEE/CVF conference on computer vision and pattern recognition_ _workshops_, Piscataway, NJ, 446–447. Cucci, C., Delaney, J. K., and Picollo, M. (2016). Reflectance hyperspectral imaging for investigation of works of art: Old master paintings and illuminated manuscripts. _Acc. Chem. Res._ [49, 2070–2079. doi: 10.1021/acs.accounts.6b00048](https://doi.org/10.1021/acs.accounts.6b00048) Daniel, F., Mounier, A., Pérez-Arantegui, J., Pardos, C., Prieto-Taboada, N., de Vallejuelo, S. F. O., et al. (2016). Hyperspectral imaging was applied to the analysis of Goya paintings in the Museum of Zaragoza (Spain). _Microchem. J._ 126, 113–120. Galliani, S., Lanaras, C., Marmanis, D., Baltsavias, E., and Schindler, K. (2017). Learned spectral super-resolution. _arXiv_ [Preprint] doi: [10.48550/arXiv.1703.](https://doi.org/10.48550/arXiv.1703.09470) [09470](https://doi.org/10.48550/arXiv.1703.09470) Hardeberg, J. Y., Schmitt, F. J., and Brettel, H. (2002). Multispectral color image capture using a liquid crystal tunable filter. _Opt. Eng._ 41, 2532–2548. He, K., Zhang, X., Ren, S., and Sun, J. (2016). “Deep residual learning for image recognition,” in _Proceedings of the IEEE conference on computer vision and pattern_ _recognition_ [, Las Vegas, NV, 770–778. doi: 10.1109/cvpr.2016.90](https://doi.org/10.1109/cvpr.2016.90) Hu, J., Shen, L., and Sun, G. (2018). “Squeeze-and-excitation networks,” in _Proceedings of the IEEE conference on computer vision and pattern recognition_, Salt [Lake City, UT, 7132–7141. doi: 10.1109/cvpr.2018.00745](https://doi.org/10.1109/cvpr.2018.00745) Huang, G., Liu, Z., Van Der Maaten, L., and Weinberger, K. Q. (2017). “Densely connected convolutional networks,” in _Proceedings_ _of_ _the_ _IEEE_ _conference_ _on_ _computer vision and pattern recognition_, Honolulu, HI, 4700–4708. Hwang, S., Park, J., Kim, N., Choi, Y., and So Kweon, I. (2015). “Multispectral pedestrian detection: Benchmark dataset and baseline,” in _Proceedings of the IEEE_ _conference_ _on_ _computer_ _vision_ _and_ _pattern_ _recognition_, Boston, MA, 1037–1045. [doi: 10.1109/cvpr.2015.7298706](https://doi.org/10.1109/cvpr.2015.7298706) Kang, H. R. (2006). _Computational_ _color_ _technology_ . Bellingham: Spie Press, 155–157. Kim, T., Visbal-Onufrak, M. A., Konger, R. L., and Kim, Y. L. (2017). Data-driven imaging of tissue inflammation using RGB-based hyperspectral reconstruction toward personal monitoring of dermatologic health. _Biomed. Opt._ _Express_ [8, 5282–5296. doi: 10.1364/boe.8.005282](https://doi.org/10.1364/boe.8.005282) Liang, H. (2012). Advances in multispectral and hyperspectral imaging for archaeology and art conservation. _Appl. Phys. A_ 106, 309–323. Liang, J., and Wan, X. (2017). Optimized method for spectral reflectance reconstruction from camera responses. _Opt._ _Express_ 25, 28273–28287. doi: 10. [1364/oe.25.028273](https://doi.org/10.1364/oe.25.028273) Liang, J., Wan, X., Liu, Q., Li, C., and Li, J. (2016). Research on filter selection method for broadband spectral imaging system based on ancient murals. _Color_ _Res. Appl._ 41, 585–595. Liang, J., and Xiao, K. (2020). “Digital camera-based spectral estimation in open environment based on imaging condition correction,” in _Proceedings of the_ _color and imaging conference. Society for imaging science and technology_, 347–350. [doi: 10.2352/issn.2169-2629.2020.28.55](https://doi.org/10.2352/issn.2169-2629.2020.28.55) Liang, J., Xiao, K., Pointer, M. R., Wan, X., and Li, C. (2019). Spectra estimation from raw camera responses based on adaptive local-weighted linear regression. _Opt. Express_ [27, 5165–5180. doi: 10.1364/oe.27.005165](https://doi.org/10.1364/oe.27.005165) Lin, Y. T., and Finlayson, G. D. (2019). “Exposure invariance in spectral reconstruction from rgb images,” in _Proceedings_ _of_ _the_ _color_ _and_ _imaging_ _conference. Society for imaging science and technology_ [, 284–289. doi: 10.2352/issn.](https://doi.org/10.2352/issn.2169-2629.2019.27.51) [2169-2629.2019.27.51](https://doi.org/10.2352/issn.2169-2629.2019.27.51) Lin, Y. T., and Finlayson, G. D. (2020). “Physically plausible spectral reconstruction from RGB images,” in _Proceedings_ _of_ _the_ _IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _Workshops_, Seattle, WA, 532–533. [doi: 10.1109/cvprw50498.2020.00274](https://doi.org/10.1109/cvprw50498.2020.00274) Nakamura, J. (ed.) (2017). _Image_ _sensors_ _and_ _signal_ _processing_ _for_ _digital_ _still_ _cameras_ . Boca Raton FL: CRC Press. Ribes, A., and Schmitt, F. (2008). Linear inverse problems in imaging. _IEEE_ _Signal Process. Mag._ 25, 84–99. Shi, Z., Chen, C., Xiong, Z., Liu, D., and Wu, F. (2018). “HSCNN+: Advanced cnn-based hyperspectral recovery from rgb images,” in _Proceedings_ _of_ _the_ _IEEE_ _Conference on Computer Vision and Pattern Recognition Workshops_, Salt Lake City, [UT, 939–947. doi: 10.1109/cvprw.2018.00139](https://doi.org/10.1109/cvprw.2018.00139) Wang, X., Girshick, R., Gupta, A., and He, K. (2018). “Non-local neural networks,” in _Proceedings_ _of_ _the_ _IEEE_ _conference_ _on_ _computer_ _vision_ _and_ _pattern_ _recognition_, Salt Lake City, UT, 7794–7803. Woo, S., Park, J., Lee, J. Y., and Kweon, I. S. (2018). “CBAM: Convolutional block attention module,” in _Proceedings_ _of_ _the_ _European_ _conference_ _on_ _computer_ _vision_ _(ECCV)_, Cham: Springer, 3–19. doi: [10.1007/978-3-030-0](https://doi.org/10.1007/978-3-030-01234-2_1) [1234-2_1](https://doi.org/10.1007/978-3-030-01234-2_1) Xu, P., Xu, H., Diao, C., and Ye, Z. (2017). Self-training-based spectral image reconstruction for art paintings with multispectral imaging. _Appl. Opt._ 56, 8461– [8470. doi: 10.1364/ao.56.008461](https://doi.org/10.1364/ao.56.008461) Yan, Y., Zhang, L., Li, J., Wei, W., and Zhang, Y. (2018). “Accurate spectral super-resolution from a single RGB image using multi-scale CNN,” in _Proceedings_ _of_ _the_ _Chinese_ _conference_ _on_ _pattern_ _recognition_ _and_ _computer_ _vision_ _(PRCV)_, (Cham: Springer), 206–217. doi: [10.1007/978-3-030-033](https://doi.org/10.1007/978-3-030-03335-4_18) [35-4_18](https://doi.org/10.1007/978-3-030-03335-4_18) Zhang, J., Sun, Y., Chen, J., Yang, D., and Liang, R. (2020). Deep-learningbased hyperspectral recovery from a single RGB image. _Opt. Lett._ 45, 5676–5679. [doi: 10.1364/ol.405061](https://doi.org/10.1364/ol.405061) [Frontiers in Neuroscience](https://www.frontiersin.org/journals/neuroscience) 13 [frontiersin.org](https://www.frontiersin.org/)

섹션 본문 45문단 · 34,439자

(제목 없음)

1KEYWORDS spectral reconstruction, multispectral image, color science, convolutional neural network, exposure invariant, dense connections Frontiers in Neuroscience 01 frontiersin.org Liang et al.

2The surface spectral reflectance of an object is the key factor for high-fidelity color reproduction and material analysis, and spectral acquisition is the basis of its applications. Based on the theoretical imaging model of a digital camera, the spectral reflectance of any pixels in the image can be obtained through spectral reconstruction technology. This technology can avoid the application limitations of spectral cameras in open scenarios and obtain high spatial resolution multispectral images. However, the current spectral reconstruction algorithms are sensitive to the exposure variant of the test images. That is, when the exposure of the test image is different from that of the training image, the reconstructed spectral curve of the test object will deviate from the real spectral to varying degrees, which will lead to the spectral data of the target object being accurately reconstructed. This article proposes an optimized method for spectral reconstruction based on data augmentation and attention mechanisms using the current deep learning-based spectral reconstruction framework. The proposed method is exposure invariant and will adapt to the open environment in which the light is easily changed and the illumination is non-uniform. Thus, the robustness and reconstruction accuracy of the spectral reconstruction model in practical applications are improved. The experiments show that the proposed method can accurately reconstruct the shape of the spectral reflectance curve of the test object under different test exposure levels. And the spectral reconstruction error of our method at different exposure levels is significantly lower than that of the existing methods, which verifies the proposed method's effectiveness and superiority.

Introduction

3The visual system is important for humans to sense the external environment. The eye can sense light radiation in the visible light range in the visual system. The light stimulation photoreceptor cells receive will eventually form a comprehensive vision in the brain. By simulating visual perception, digital cameras use color filter array sensors and image signal processing technology to record the radiation spectrum of natural scenes as a color image that conforms to human visual perception. However, color imaging technology has a limited ability to reproduce colors and characterize objects, and the information contained in the visible spectrum is far beyond the RGB data. The metamerism problem of color imaging is the key issue of its use in high-fidelity color reproduction and high-precision material characterization (Kang, 2006).

4It is well known that spectral reflectance is the "fingerprint" of color information, which can effectively overcome the influence of light source and observer on color reproduction and object characterization. It is often used in agriculture, cultural relic protection, skin health monitoring, and other fields (Kim et al., 2017;Xu et al., 2017;Ablet et al., 2019). In addition, in the field of computer vision, multispectral data can improve detection accuracy (Hwang et al., 2015). However, due to the limitations of current multispectral imaging technology, such as the complexity of the systems (Hardeberg et al., 2002;Liang, 2012) and the low spatial resolution (Cucci et al., 2016;Daniel et al., 2016), the current spectral cameras cannot quickly acquire multispectral images with high spatial resolution, which restricts the wide application of multispectral images.

5Reconstructing multispectral images of scenes from RGB images has been widely researched in many fields. Spectral reconstruction is one of the ill-conditioned inverse problems (Ribes and Schmitt, 2008). The same RGB data may correspond to completely different spectral reflectance data. In natural scenes, however, there is always a close correlation between the RGB data of an image and the corresponding multispectral image. Based on mathematical modeling, the relationship between RGB data and corresponding multispectral data can be established, and fairly accurate spectral reconstruction results can be obtained . Therefore, spectral reconstruction technology is easier to apply to open environments than spectral cameras and quickly acquires high spatial resolution multispectral images.

6Current spectral reconstruction methods are mainly divided into two different classes: machine learning and deep learningbased methods (Liang et al., 2016(Liang et al., , 2019Galliani et al., 2017;Liang and Wan, 2017;Shi et al., 2018;Yan et al., 2018;Liang and Xiao, 2020;Zhang et al., 2020). The machine learning-based methods include pseudo-inverse, kernel algorithm, principal component analysis, and so on (Liang et al., 2019). The pseudo-inverse method builds a reconstruction matrix based on the error between the reconstructed and ground-truth spectra of the training data. The kernel algorithm uses the kernel function to transform the response values to the kernel space and then calculates the reconstruction matrix. And the principal component analysis method uses the top k principals and coefficient matrix to reconstruct the spectral reflectance of the target. In summary, the current machine learningbased spectral reconstruction methods are all based on the digital camera imaging model to reconstruct the spectral reconstruction matrix. However, they are all exposure sensitive, and the reconstructed spectral errors are large when applied in non-uniform lighting environments.

7In recent years, with the rapid development of deep learning in the field of computer vision, classical network models, such as convolutional neural networks and generative adversarial networks, have been used in spectral reconstruction. Deep learning-based spectral reconstruction models usually use a large number of data sample pairs as support to establish the mapping relationship between RGB images and multispectral images. For the deep learning-based spectral reconstruction, Yan et al. (2018) applied the U-net network to spectral reconstruction. Galliani et al. (2017) utilized a variant of full convolution for the end-to-end spectral reconstruction task. Shi et al. (2018) proposed a network model based on residuals and densely connected structures (He et al., 2016;Huang et al., 2017). Zhang et al. (2020) proposed a deep learning spectral reconstruction model based on dense connections. However, the existing deep learning-based spectral reconstruction methods with good spectral reconstruction accuracy usually have complex network structures, a large number of parameters, and exposure sensitivity (as shown in Figure 1B). That is, the spectral reconstruction model constructed under one exposure level cannot adapt to another, or the reconstructed spectral curve will deviate from the ground truth.

8An optimized deep learning-based spectral reconstruction method is proposed based on a lightweight convolutional neural network (CNN) to address the issues arising from the current deep learning-based spectral reconstruction methods, such as a large number of model parameters and sensitivity to exposure changes of test images. Moreover, some optimized measures are integrated into the network. First, the input RGB training image is randomly multiplied by an exposure adjustment coefficient during model training so that the model can see images with more exposure levels. According to the exposure adjustment coefficient of the training image, the reconstructed multispectral image (RMSI) is reciprocally corrected in the loss function to make the model learn the exposure invariant spectral features that correspond to the training images. Secondly, the dense connection mechanism in the original model not only helps to alleviate the problem of model gradient disappearance but also greatly reduces the number of model parameters. Finally, an attention mechanism is introduced into the model to improve spectral reconstruction accuracy by adaptively weighting the Frontiers in Neuroscience 02 frontiersin.org Schematic diagram of the exposure invariant (A) and exposure sensitive (B) spectral reconstruction methods. The photos appearing in these figures are chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/). feature channels. Experimental results show that the proposed method not only achieves the performance of exposure invariant but also exhibits better spectral reconstruction accuracy than existing methods.

Imaging model

9The imaging process of a color digital camera involves three factors, light source, object, and camera. The light sources are usually characterized by their spectral power distribution. When the light source irradiates the surface of the object, the object will selectively absorb some wavelengths of energy and reflect the rest to form a radiance spectral that integrates the light source information and the reflection characteristics of the object. The radiance spectra are focused and incident on the camera sensor through the lens. After photoelectric conversion and analog-to-digital conversion, the radiance spectral forms a raw format digital image on the camera sensor, and then the raw image undergoes a series of image signal processing (dark current correction, dead pixel correction, white balance correction, demosaicing, color space conversion, etc.) to form the visually pleasing color image (Nakamura, 2017).

10The imaging mentioned above process of a digital camera can be generally divided into a linear imaging stage and a nonlinear processing stage. The linear imaging stage is from the radiance spectral to the raw image, and the nonlinear imaging stage is from the raw image to the final visual pleased color image. However, because different brands of cameras usually use different image signal processing algorithms, and because they are all the company's intellectual properties, it is hard to accurately and uniformly express the nonlinear stage. The current research on spectral reconstruction is carried out in the linear imaging mode (Ribes and Schmitt, 2008), as shown in Eq. 1:

11where d i represents the response of the i-th channel of a pixel in the image, l(λ) is the spectral distribution of the lighting source, r(λ) is the spectral reflectance of a point on the surface of the object, t(λ) is the overall transmittance of the camera lens optics, f i (λ) is the transmittance of the i-th channel filter of the camera, s(λ) is the spectral sensitivity function of the camera sensor, λ indicates the wavelength, n i represents the noise signal of the i-th Frontiers in Neuroscience 03 frontiersin.org channel of the digital camera, m i = l(λ)t(λ)f i (λ)s(λ) represents the overall spectral sensitivity function of the i-th channel of a digital camera (Liang et al., 2019). Eq. 1 can be abbreviated into the matrix form as shown in Eq. 2:

12where d represents the K × 1 dimensional response value vector of a pixel, K is the channel number of the imaging system. M is the K × N dimensional overall sensitivity function matrix of the imaging system that contains l(λ), t(λ), f i (λ), and s(λ), and r represents the N × 1 dimensional spectral vector of a pixel.

Spectral reconstruction model

13Because of the high correlation between RGB images and the corresponding multispectral images, learning-based methods can be used to model the mapping between RGB and multispectral images. In recent years, with the success of deep learning in many computer vision tasks, CNN based methods have gradually been applied to spectral reconstruction. Assuming that an RGB image and its corresponding multispectral image are given, the mapping between RGB and multispectral image can be described as follows:

14where d is the digital response value of any pixel in the RGB image, r is the spectral reflectance corresponding to the pixel, and f (·) is the mapping model from RGB values to multispectral reflectance. When the spectral reconstruction model f (·) is established, the corresponding spectral reflectance r can be obtained by Eq. 3 for any given pixel response value d. The multispectral image corresponding to the RGB image is obtained.

Proposed optimized method

15As mentioned in the introduction section, neural networks can learn the mapping relationship from RGB images to multispectral images, and convolutional networks and generative adversarial networks are gradually being used in spectral reconstruction. However, existing deep learning-based spectral reconstruction models usually need to train millions of model parameters. And during model training, convolution operators are used to extract deep image features. Multiple sets of convolution operators are usually superimposed to improve the network's performance, making the deep learning spectral reconstruction methods more complex than machine learningbased ones.

16In addition, although the accuracy of the existing machine learning-based spectral reconstruction method is limited by the appropriate design of the spectral reconstruction model [such as the use of root polynomial extended regression (Lin and Finlayson, 2019)] and using linear raw image data, the method can achieve the ability of exposure invariant (as shown in Figure 1A). Unlike machine learning-based methods, which can easily perform linear regression, deep learning-based spectral reconstruction methods are all nonlinear mathematical models. This is because, to ensure the learning ability and generalization performance of the deep learning model, the nonlinear activation functions (such as Relu, Prelu, and Sigmoid functions) and non-zero bias terms are always included in the model. Therefore, obtaining the corresponding linear output is difficult for the existing deep learning-based spectral reconstruction model when a set of linear inputs is given. In other words, the existing deep learning-based spectral reconstruction models are exposure sensitive and cannot guarantee the correctness of the reconstructed spectral curve (as shown in Figure 1B). Take the typical architecture of a single neuron in the deep learning framework as an example, as shown in Eq. 4:

17where x is the input, w is the weight, b is the bias, y is the output, and h(·) is the activation function. Without considering the influence of exposure change on spectral reconstruction, the corresponding output y can always be obtained for any given input x. However, considering the exposure influence on spectral reconstruction (Lin and Finlayson, 2019), the output ky is difficult to acquire directly for the input kx for current deep learning-based spectral reconstruction methods, where k is the exposure adjustment coefficient. Therefore, for the existing deep learning-based spectral reconstruction model, how to make it exposure invariant, as shown in Eq. 5, will be the key problem when using it in an open environment with variable and non-uniform illumination (Liang and Xiao, 2020). In addition, it is also important to reconstruct high-precision multispectral images in an open illumination environment:

18Based on the statements above, to build a lightweight deep learning-based spectral reconstruction model with the ability to be exposure invariant and, at the same time, improve the spectral reconstruction accuracy, in this study, an optimized deep learning-based spectral reconstruction method is proposed by referencing the existing models. The ability to be exposure invariant is first achieved for the spectral reconstruction model through training data enhancement. Then, the attention mechanism of spectral reconstruction is further introduced into the model to improve the spectral reconstruction accuracy. Details of the proposed optimized method are described as follows. Schematic diagram of training the deep learning-based spectral reconstruction model based on data augmentation. The photos appearing in these figures are chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/). The bold values indicate the best results with the smallest spectral reconstruction errors.

19The proposed method is based on the neural network model developed by Zhang et al. (2020). In the training stage, the input RGB image is first randomly multiplied by the exposure adjustment coefficient k to simulate the exposure change. Secondly, to keep the RMSI exposure invariant, the RMSI is multiplied by the reciprocal of the exposure adjustment coefficient in the loss function. Finally, various evaluation metrics are calculated using the RMSI and the ground truth multispectral image (GMSI). The training process is shown in Figure 2.

20Frontiers in Neuroscience 05 frontiersin.org The bold values indicate the best results with the smallest spectral reconstruction errors.

FIGURE 4

21The root-mean-square error (RMSE) map of a reconstructed multispectral image (RMSI) of different methods under different tested exposure levels. The photos appearing in these figures are chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/).

22In addition, the attention mechanism is introduced into the original model to further improve the spectral reconstruction accuracy. Currently, the commonly used attention modules include channel attention, spatial attention, and non-local networks (Hu et al., 2018;Wang et al., 2018;Woo et al., 2018). If the feature maps of each layer in the deep learning network are fused into a total feature map, the weights of the feature maps of each dimension relative to the total feature map are all different.

23Frontiers in Neuroscience 06 frontiersin.org Two reconstructed spectral reflectances under different exposure levels using a different method. The photos appearing in these figures are chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/).

24The attention mechanism is to learn the weight of each feature map relative to the total feature map and then generate a weight mask and weight the original feature map to realize the effective use of feature information. For the existing attention modules, Hu et al. (2018) proposed a compressed excitation network, which has won the championship in the ImageNet competition image classification track, and its structure mainly includes compression (Squeeze), excitation (Excitation), and feature weighting (Scale) modules. The author first uses the pooling operation to compress the feature map space and then outputs a real number on each channel to extract the channel dimension information.

25Secondly, the activation function will generate weights for each feature channel through the excitation module, including the fully connected layer and the activation function. Finally, the initial feature map is scaled using the weight mask, and the re-calibration of the original feature is completed on the feature channel. The spatial attention is to compress the channel information of the feature map and excite it in the spatial dimension. The mask of the spatial domain is calculated by compressing the channel, and the mask is multiplied by the original feature value. The non-local network can directly calculate the relationship between any two positions on the feature image, but the The illumination distribution of non-uniformity points to the light source. The bold values indicate the best results with the smallest spectral reconstruction errors. The bold values indicate the best results with the smallest spectral reconstruction errors.

26network will generate more parameters in the spectral reconstruction task. The convolutional block attention module (CBAM) is a tandem hybrid attention module (Woo et al., 2018). It learns the attention of the two dimensions in turn according to the order of the channel domain attention and the spatial domain attention. CBAM can be used as a plug-and-play module in neural networks and is one of the most commonly used Frontiers in Neuroscience 08 frontiersin.org attention mechanism algorithms in the field of computer vision research. The major difference between the CBAM module and the SE (Hu et al., 2018) module is that a parallel max pooling layer is added, and the attention mechanism is learned for more than two domains, such as the spatial domain and the channel domain, which makes its feature extraction more sufficient. This article adopts the CBAM module and adds a residual structure to it. The CBAM attention module is shown in Figure 3.

27The feature channel information is first compressed into a real number through the average pooling and max pooling layers for the channel attention module. Then the feature weights are extracted through two fully connected layers, including the activation function. Among the fully connected layers, the first fully connected layer can reduce the feature dimension to 1/s of the input, where s is the compression parameter. In this article, the values of s are 4, 32, and 16, respectively. After the feature map output is by the first fully connected layer, it is activated by the Relu function and restored to the original dimension by the second fully connected layer. The Sigmoid function processes the feature information processed by the second fully connected layer. At this stage, the weight calibration of the original features is completed. Then, the spatial attention mechanism module takes the output of channel attention as input and uses average pooling and maximum pooling to integrate channel feature information. After that, the two parts of the features are combined using 1 × 1 convolution for dimensionality reduction, and finally, the required mask is acquired through the Sigmoid activation function. The overall expression for CBAM attention is expressed as Eqs 6, 7:

28where x, δ, and MLP are the input, activation function, and multilayer perceptron, respectively. C is the output channel attention feature, and S is the output spatial attention feature. Based on Eqs 6, 7, the weight of each channel can be adaptively learned and used to weigh the corresponding channel features to improve spectral reconstruction accuracy. This is plotted in Figure 2 of the overall architecture of the proposed deep learning-based spectral reconstruction model. For an RGB image of any input, the feature information of the shallow layer of the input image is first extracted through 16 layers of convolution and then through 7 layers of dense connection. Each dense connection layer has 16 convolution kernels. The dense structure further improves the reuse rate of channel features compared with the residual structure. The size of the feature map remains unchanged, and the number of channels gradually increases with the deepening of the network, which greatly reduces the parameters of the network. Dense connections also mitigate the vanishing gradient problem to some extent.

29After shallow feature extraction and a densely connected network, a feature information map with 128 layers is obtained, which is input into the reconstruction layer that includes three layers of convolution. The kernel size of each layer of convolution in the network is set at 3, the activation function is Relu, and the CBAM module is added to the shallow feature extraction and reconstruction layer to further improve the robustness of the network. Finally, we obtain the RMSI corresponding to the input of the RGB image.

Experiment Experiment settings

30To test the effectiveness and superiority of the proposed method, we carried out the verification experiment. The proposed deep learning-based spectral reconstruction framework is implemented in TensorFlow and is trained using the platform of Intel Xeon and Tesla V100. The database for the experiments is NTIRE2018 (Arad et al., 2018), which is extended from the ICVL dataset (Arad and Ben-Shahar, 2016). The ICVL dataset consists of 203 multispectral images captured with the hyperspectral camera Specim PS Kappa DX4. The spatial resolution of each image is 1392 × 1300 pixels, and the spectral sampling range of each multispectral image is from 400 to 700 nm with a sampling interval of 10 nm.

31In addition, in the NTIRE2018 challenge, 53 multispectral images with the same spatial and spectral resolution were added to further expand the dataset, so the experiment finally used 256 multispectral images as training data in this per, and their corresponding RGB images were acquired using the same method as NTIRE2018 and NTIRE2020 (Arad et al., 2018(Arad et al., , 2020. During model training, the data blocks with a size of 40 × 40 pixels are cropped from the training data as input. The learning rate was initially set to 0.0001 and exponentially decayed to a rate of 0.99. The max epoch number was set to 50, and other hyperparameters in the model Zhang et al. (2020) remained unchanged.

Evaluation metrics

32In the experiment, the spectral root-mean-square error (RMSE), the mean relative absolute error (MRAE), and the spectral angle mapping (SAM) error are used to evaluate and compare the spectral reconstruction accuracy of different models. The smaller the value of the evaluation metrics, the closer the RMSI is to the ground truth and the better the performance of the method. Calculation of the evaluation metrics is shown in Equs 8-10, where n represents the spectral bands, i represents a pixel in a multispectral image, I R represents Frontiers in Neuroscience 09 frontiersin.org The bold values indicate the best results with the smallest spectral reconstruction errors.

FIGURE 7

33The root-mean-square error (RMSE) map of the reconstructed multispectral image (RMSI) of the original and proposed under different tested exposure levels. The photos appearing in these figures are chosen from the public multispectral dataset from the NTIRE challenges (https://icvl.cs.bgu.ac.il/projects/ntire2020/). the reconstructed multispectral images, and I G represents the ground-truth multispectral image.

34Results and discussion

Comparison of spectral reconstruction methods

35Using the experimental conditions mentioned above, we tested the effect of the proposed deep learning-based spectral reconstruction method compared with several current advanced methods, such as Yan et al. (2018), Galliani et al. (2017), Zhang et al. (2020), and HSCNN+ (Shi et al., 2018). The experimental results are summarized in Tables 1-3, respectively. Where the expression of Exposure × k means the exposure adjustment coefficient k adjusts the exposure level of the test image before it is fed into the framework. The value of k is used in 1, 0.25, 0.5, 2, and 4 during the testing stage. Additionally, when calculating the spectral reconstruction error, the RMSI is corrected to 1/k of the output.

36It can be seen from the experimental results summarized in Tables 1-3 that although the method of HSCNN + showed the smallest reconstruction error when the exposure adjustment coefficient was equal to 1, where the corresponding errors of RMSE, MRAE, and SAM are 0.24, 1.39, and 0.99% when the exposure adjustment coefficient k is equal to 0.25, 0.5, 2, and 4. The proposed method is significantly better than the HSCNN+ and other methods. The overall average spectral reconstruction error of all the tested exposure levels is 0.38, 2.43, and 1.66%, respectively, which is significantly better than the existing advanced deep learning spectral reconstruction algorithms. Comparison of the number of learning parameters of different models.

37In addition, according to the standard deviation of each method under different test exposure levels, there is no significant difference in the spectral reconstruction error of the proposed method under different test exposure levels. However, the standard deviation of the compared methods under different tested exposure levels is quite large. On the one hand, the experimental results in Tables 1-3 show that the existing deep learning-based spectral reconstruction model cannot expose invariant. On the other hand, it also proves that the proposed method not only achieves the ability of exposure invariance but also its superiority to the existing methods in spectral reconstruction accuracy. Furthermore, the difference between the proposed and compared methods is insignificant when the test exposure level is equal to 1, which generally proves the effectiveness and superiority of this article's proposed deep learning-based spectral reconstruction model. Moreover, it should be noted that among the several compared spectral reconstruction algorithms in this article, the accuracy of the HSCNN+ model is generally better than all the other methods.

38The RMSE map of the RMSI and the GMSI of each method are plotted in Figure 4. The yellower the image color, the greater the spectral reconstruction error, as indicated by the color bar, and the bluer the color, the smaller the error.

39From the results in Figure 4, we can see that the RMSE map of the RMSI and the ground truth by each method are consistent with the objective data in Table 1. When the exposure level of the tested image is equal to 1, the HSCNN+ method performs the best, and the error values in the RMSE map are lower than those of the proposed method. However, in terms of the other four tested exposure levels, the proposed method shows the best spectral reconstruction accuracy, and the four compared methods show very significant spectral reconstruction errors. To further compare the performance of the methods, two reconstructed spectral reflectances under different testing exposure levels using the different methods are plotted in Figure 5. It is easy to find that the spectral reflectance curves reconstructed using the proposed method are closer to the ground truth under different testing exposure levels, while the compared methods only performed well when the exposure level was 1 and performed badly under other testing exposure levels.

40In addition, the verification of the proposed method in reconstructing the non-uniformity illuminated images is also tested. As shown in Figure 6, the non-uniformity point light source is simulated to illuminate an image. Table 4 shows that the image illuminated by a non-uniformity point light source is also well reconstructed. The results in Figures 5, 6 once again prove the effectiveness and superiority of the proposed method.

Analysis of the proposed method

41The spectral reconstruction errors of the original method developed by Zhang et al. (2020), the optimized method with only the data enhancement, and the proposed method with data enhancement and attention mechanism, are summarized in Tables 5-7. It is easy to infer from Tables 5-7 that when the tested exposure level is equal to 1, the original method shows the best spectral reconstruction results; however, when the tested exposure level changes to other values, the spectral reconstruction error increases significantly when the data augmentation and attention mechanisms are introduced into the proposed method. Although the spectral reconstruction error increases slightly when the tested exposure level is equal to 1, the new method generally has achieved the ability of exposure invariant, as shown in Figure 1A and Eq. 5.

42In addition, although the improvement in the spectral reconstruction accuracy is not so significant when introducing the attention mechanism into the proposed network, the spectral reconstruction accuracy of the proposed method does improve at some specific tested exposure levels. For example, at the tested exposure level of 0.5, the error of the evaluation metric MRAE is reduced by about 8% compared with the only use of data enhancement in the proposed method. At the tested exposure level of 2, the error of the evaluation metric MRAE is reduced by about 6% compared with the pure data enhancement. Moreover, at the tested exposure level of 4, the error of the evaluation metric SAM is reduced by about 5% compared with the pure data enhancement in the proposed method. The proposed method may be further improved based on data enhancement. Figure 7 shows the RMSE map of different methods of an original method developed by Zhang et al. (2020), the optimized method with only the data enhancement, and the proposed method with both data enhancement and an attention mechanism. It can be seen from the results in Figure 7 that the introduction of a data enhancement mechanism into the original model can make the method achieve the ability of exposure invariant for spectral reconstruction. And when the attention mechanism is introduced into the proposed method, the spectral reconstruction accuracy can be further improved, but the overall improvement is not obvious, and further optimization measures to improve the spectral reconstruction accuracy can be considered in future studies.

43At last, the number of learning parameters for each model in this article is counted and plotted in Figure 8. It is easy to infer from Figure 8 that the number of learning parameters of the original model proposed by Zhang et al. (2020), as well as the optimized model in this article, is very small compared with other models, which means that the proposed method is easy to distribute for practice using.

Conclusion

44Multispectral image acquisition is the prerequisite for its applications. In view of the problems of the existing deep learning-based spectral reconstruction methods, such as a large number of parameters and the exposure invariant. An optimized lightweight neural network for spectral reconstruction is proposed in this article, and the data augmentation and attention mechanisms are introduced into the original method to make it more efficient and exposure invariant. The optimization of the proposed method makes it more robust in practical applications in an open environment with variable light sources and non-uniformity illumination. The shape of the reconstructed spectral reflectance curve of the target can be well preserved using the proposed method under different exposure levels, which provides the foundation for high-precision multispectral image acquisition in an open environment. However, improving the module attention mechanism proposed in the proposed method does not significantly improve the spectral reconstruction accuracy. More research will be carried out to further improve the method in the future.

Data availability statement

45The original contributions presented in this study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.

참고문헌 29건

  1. Image Sensors and Signal Processing for Digital Still Cameras 2010 10.1201/9781420026856
  2. Multispectral pedestrian detection: Benchmark dataset and baseline 2015 10.1109/cvpr.2015.7298706
  3. Advances in multispectral and hyperspectral imaging for archaeology and art conservation Applied Physics A · Springer Science+Business Media · 2011 10.1007/s00339-011-6689-1
  4. Multispectral color image capture using a liquid crystal tunable filter Optical Engineering · SPIE · 2002 10.1117/1.1503346
  5. Linear inverse problems in imaging IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2008 10.1109/msp.2008.923099
  6. Research on filter selection method for broadband spectral imaging system based on ancient murals Color Research & Application · Wiley · 2015 10.1002/col.22004
  7. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  8. Sparse Recovery of Hyperspectral Signal from Natural RGB Images Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46478-7_2
  9. Reflectance Hyperspectral Imaging for Investigation of Works of Art: Old Master Paintings and Illuminated Manuscripts Accounts of Chemical Research · American Chemical Society · 2016 10.1021/acs.accounts.6b00048
  10. Learned Spectral Super-Resolution arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1703.09470
  11. Squeeze-and-Excitation Networks 2018 10.1109/cvpr.2018.00745
  12. Optimized method for spectral reflectance reconstruction from camera responses Optics Express · Optica Publishing Group · 2017 10.1364/oe.25.028273
  13. Data-driven imaging of tissue inflammation using RGB-based hyperspectral reconstruction toward personal monitoring of dermatologic health Biomedical Optics Express · Optica Publishing Group · 2017 10.1364/boe.8.005282
  14. Self-training-based spectral image reconstruction for art paintings with multispectral imaging Applied Optics · Optica Publishing Group · 2017 10.1364/ao.56.008461
  15. Accurate Spectral Super-Resolution from Single RGB Image Using Multi-scale CNN Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-03335-4_18
  16. CBAM: Convolutional Block Attention Module Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_1
  17. NTIRE 2020 Challenge on Spectral Reconstruction from an RGB Image 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2020 10.1109/cvprw50498.2020.00231
  18. HSCNN+: Advanced CNN-Based Hyperspectral Recovery from RGB Images 2018 10.1109/cvprw.2018.00139
  19. Spectra estimation from raw camera responses based on adaptive local-weighted linear regression Optics Express · Optica Publishing Group · 2019 10.1364/oe.27.005165
  20. Non-local Neural Networks 2018 10.1109/cvpr.2018.00813
  21. Densely Connected Convolutional Networks 2017 10.1109/cvpr.2017.243
  22. Combined Estimation of Chlorophyll Content in Cotton Canopy Based on Hyperspectral Parameters and Back Propagation Neural Network Acta Optica Sinica · Shanghai Institute of Optics and Fine Mechanics · 2019 10.3788/aos201939.0930003
  23. Exposure Invariance in Spectral Reconstruction from RGB Images Color and Imaging Conference · Society for Imaging Science & Technology · 2019 10.2352/issn.2169-2629.2019.27.51
  24. Physically Plausible Spectral Reconstruction from RGB Images 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2020 10.1109/cvprw50498.2020.00274
  25. Deep-learning-based hyperspectral recovery from a single RGB image Optics Letters · Optica Publishing Group · 2020 10.1364/ol.405061
  26. Digital camera-based spectral estimation in open environment based on imaging condition correction Color and Imaging Conference · Society for Imaging Science & Technology · 2020 10.2352/issn.2169-2629.2020.28.55
  27. NTIRE 2018 Challenge on Spectral Reconstruction from RGB Images 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2018 10.1109/cvprw.2018.00138
  28. Hyperspectral imaging applied to the analysis of Goya paintings in the Museum of Zaragoza (Spain), Technart 2015, 27-30 avril 2015, Catane HAL (Le Centre pour la Communication Scientifique Directe) · Centre National de la Recherche Scientifique · 2016 10.1016/j.microc.2015.11.044
  29. Computational Color Technology SPIE eBooks · SPIE · 2006 10.1117/3.660835