Next Article in Journal
Self-Scheduled LPV Control of Asymmetric Variable-Span Morphing UAV
Previous Article in Journal
Development of Innovative Online Modularized Device for Turbidity Monitoring
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Model Transfer Method among Spectrometers Based on Improved Deep Autoencoder for Concentration Determination of Heavy Metal Ions by UV-Vis Spectra

1
School of Automation, Central South University, Changsha 410083, China
2
School of Energy and Electromechanical Engineering, Hunan University of Humanities, Science and Technology, Loudi 417000, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(6), 3076; https://doi.org/10.3390/s23063076
Submission received: 8 February 2023 / Revised: 8 March 2023 / Accepted: 11 March 2023 / Published: 13 March 2023
(This article belongs to the Section Intelligent Sensors)

Abstract

:
Ultraviolet Visible (UV-Vis) spectroscopy detection technology has been widely used in quantitative analysis for its advantages of rapid and non-destructive determination. However, the difference of optical hardware severely restricts the development of spectral technology. Model transfer is one of the effective methods to establish models on different instruments. Due to the high dimension and nonlinearity of spectral data, the existing methods cannot effectively extract the hidden differences in spectra of different spectrometers. Thus, based on the necessity of spectral calibration model transfer between the traditional large spectrometer and the micro-spectrometer, a novel model transfer method based on improved deep autoencoder is proposed to realize spectral reconstruction between different spectrometers. Firstly, two autoencoders are used to train the spectral data of the master and slave instrument, respectively. Then, the hidden variable constraint is added to enhance the feature representation of the autoencoder, which makes the two hidden variables equal. Combined with a Bayesian optimization algorithm for the objective function, the transfer accuracy coefficient is proposed to characterize the model transfer performance. The experimental results show that after model transfer, the spectrum of the slave spectrometer is basically coincident with the master spectrometer and the wavelength shift is eliminated. Compared with the two commonly used direct standardization (DS) and piecewise direct standardization (PDS) algorithms, the average transfer accuracy coefficient of the proposed method is improved by 45.11% and 22.38%, respectively, when there are nonlinear differences between different spectrometers.

1. Introduction

A UV-Visible spectrum instrument is a very important optical analysis detector to determine composition and substances concentration. A traditional spectrometer has good measuring accuracy and repeatability. However, it has obvious shortcomings such as large size, high price and a complex experimental process, which cannot meet the requirements of online detection and analysis. Compared with the traditional large spectrometer, the micro-spectrometer has the advantages of low price, miniaturization, simple maintenance and so on, which makes it possible for the spectral detection technology to be applied from the laboratory environment to the complex industrial field [1]. Under general conditions, the multivariate correction model established by the target value and spectral signal of the sample is usually used for the same spectrometer [2]. However, the measurement spectral differences caused by the hardware differences between different spectrometers will have a serious impact on the ion concentration prediction results, which causes the existing correction models to no longer be applicable [3].
Model transfer can reduce the interference on the spectrum of external interference and other factors, so as to ensure that the previously established model can continue to be applied and further avoid the consumption of manpower. Researchers have conducted a lot of research and summary on model transfer methods, including the direct standardization method (DS) [4,5], piecewise direct standardization method (PDS) [6,7] and machine learning-based method [8,9,10]. In recent years, the direct standardization and piecewise direct standardization method have been widely used in many fields [11,12,13,14]. Alves applied the piecewise direct standardization method to overcome matrix effects in front face fluorescence spectroscopy of a mixture when different excipients of acetylsalicylic acid, paracetamol and caffeine were used [15]. Zeng used the direct standardization algorithm to effectively correct the spectral changes of confocal micro-Raman spectrometers and portable Raman spectrometers in the laboratory [8]. Parrott proved that the direct standardization method can correct different spectral changes caused by changing the combination of spectrometer probes [16].
However, the direct standardization method and piecewise direct standardization method are used to build a linear relationship between instruments to achieve model transfer, which cannot solve the nonlinear differences between instruments. In recent years, with the rapid development of machine learning, more and more model transfer methods have been proposed by scholars. Zhang proposed a stability-analysis-based feature selection algorithm (SAFS) for near infrared (NIR) calibration transfer to tackle the variation of different spectrometers and environment change [17]. Chen proposed a new method that combines principal component analysis (PCA), weighted extreme value learning machine (ELM) and a TrAdaBoost algorithm [18]. The TrAdaBoost algorithm based on weighted ELM is applied to establish a series of calibration transfer quantitative analysis models. The transfer of a calibration model can be viewed as a missing data attribution problem. The trimmed scores regression (TSR) and joint-Y partial least squares regression (JYPLS) are used as a maximum likelihood estimation-principal component analysis to re-establish a transfer model [19]. The experimental results show that the method can greatly improve the prediction accuracy of the model. Galvao et al. use robust regression, employing univariate correction rather than the full spectrum or spectral windows for calibration model transfer [20]. The model result is satisfactory in the transfer of gasoline samples and corn samples with near infrared spectra of different spectrometers. Chen proposed a transfer model by an extreme learning machine auto-encoder method (TEAM) to correct the systematic differences between the spectra of different instruments successfully [21].
As more and more model transfer methods have been proposed by scholars, the existing model transfer algorithms have their own limitations. The use of full-spectrum modeling in the direct standardization method not only has a large amount of data and redundant interference information, but also greatly reduces the model efficiency. In addition, there is no adaptive method to select the window width by the piecewise direct standardization [22]. Since the spectral range and resolution measured by different types of spectral instruments are different, it is often difficult to search the direct correspondence wavelength points directly. In the case of high spectral data dimension and small sample size, it is easy to produce an overfitting problem.
For this reason, in view of the obvious spectral difference between the micro-spectrometer and the traditional large-scale spectrometer, a model transfer method based on an improved autoencoder is proposed to apply the model between different instruments. Firstly, the necessity of spectral model transfer is analyzed. Then, the constraint conditions of hidden variables are added based on an autoencoder. The hyper-parameters in the objective function are quickly optimized with a Bayesian optimization algorithm. The transfer accuracy coefficient is proposed to characterize the transfer performance of the model. Finally, the spectral data is reconstructed by training the transfer model. The experimental results show that the spectrum measured by the slave instrument basically coincides with the master spectrum after correction, and the phenomenon of wavelength point shift is also eliminated.
The rest of this paper is organized as follows. In Section 2, the proposed method is described in detail. The experimental design and comparative analysis are given in Section 3. Section 4 presents the conclusion of this paper.

2. Method

2.1. Fundamentals of Autoencoder Theory

Autoencoder (AE) is a method of unsupervised deep learning [23,24]. It can express original data with complex features of high dimension into a more abstract data form of low dimension through a multi-layer neural network. Autoencoders are mainly used to automatically learn nonlinear data features and are widely used in effective coding, data dimension reduction and model generation [25]. The infrastructure of the autoencoder mainly includes the three-layer network structure of the input layer, hidden layer and output layer, as shown in Figure 1. The number of neurons in the input layer and output layer should be the same. If the number of neurons in the input layer and output layer is m, the number of neurons in the hidden layer is n, the input data is represented by X = { x 1 , x 2 , , x m } and the hidden layer data is represented by H = { h 1 , h 2 , , h n } . The output layer is X = { x 1 , x 2 , , x m } .
The main structure of an autoencoder is divided into encoder and decoder [26,27,28]. The network that transforms the high-dimensional data X of the input layer to the low-dimensional hidden layer in Figure 1 is called the encoder. The function f is the deterministic mapping. This process can be expressed in Equation (1):
H = f ( x ) = s f ( W X + b )
where s f represents the activation function of the encoder. W is the mapping weight matrix of n × m dimension. b R n is a bias vector. The decoder is used to transform the hidden layer data H through function g to obtain the reconstructed output layer data X . This process can be expressed by Equation (2):
X = g ( H ) = s g ( W H + b )
where s g represents the activation function of the decoder, and W is the mapping weight matrix of m × n dimension. b R m is a bias vector. Encoder activation function s f and decoder activation function s g can perform well in feature learning by using a nonlinear activation function. The autoencoder continuously trains the input data X and X to minimize the reconstruction error terms so that X and X are as close as possible to achieve the best reconstruction results. Generally, the cross entropy calculation is used to reconstruct the error term, which can be expressed by Equation (3):
E ( X , X ) = i = 1 n ( x i log x i + ( 1 x i ) log ( 1 x i ) )
In general, the autoencoder describes the mapping between the high-dimensional data and low-dimensional data without losing the main information. Therefore, the number of neurons in the hidden layer of the autoencoder is smaller than the number of neurons in the input layer m.

2.2. Model Transfer Method Based on Improved Deep Autoencoder

In spectral model transfer, the basic idea is to make the spectrum measured from the instrument infinitely close to the spectral signal measured on the master instrument by constantly modifying the spectrum measured from the instrument under the same sample condition, so that these spectra are equivalent to being scanned from the master instrument. Then, a multivariate calibration model established on the master instrument is used to predict the corrected spectral data in order to minimize the difference in the detection results under different measurement conditions.
Data compression and decompression functions in autoencoders are data dependent and can be learned automatically from samples. According to this idea, the model transfer problem can be regarded as a process of data compression and decompression. In this paper, a model transfer algorithm based on an autoencoder is proposed to solve the problem that the spectral difference caused by different measurement conditions has a serious impact on the ion concentration prediction results.
A training model transfer algorithm based on the encoder and the optimization process is shown in Figure 2, which is based on the encoder model transfer algorithm of the parameter optimization process and can be decomposed into three parts:
In the first part, the master spectral data X and slave spectral data Y are used by the encoder to obtain hidden layer variables H x and H y . The second part is to optimize the reconstruction error E V E ( H x , H y ) between the hidden variables H x and H y . In the third part, when the master spectral data X and slave spectral data Y obtain the reconstructed data X and Y through their respective autoencoders, the process is optimized by minimizing the reconstruction errors E V E ( X , X ) and E V E ( Y , Y ) . Therefore, the objective function of the model transfer algorithm based on an autoencoder is proposed. The E V E ( H x , H y ) error term of hidden layer variables H x and H y and the reconstruction error E V E ( Y , Y ) and E V E ( X , X ) are very important in the model transfer algorithm based on an autoencoder, which directly affects the quality of model training. In this paper, a polynomial likelihood function is used to calculate three error terms in the objective function of a model transfer algorithm of an autoencoder.
Figure 3 shows the steps of model transfer. It is assumed that the hidden variable H y of the slave instrument is obtained from the spectral data M of the slave instrument through the encoder of the slave instrument. The final reconstructed data M are obtained from H y through the decoder of the master instrument. The process of model transfer is completed based on an autoencoder.
In this paper, a Bayesian optimization algorithm is adopted for hyperparameter optimization to achieve optimal performance of the target network. In the process of hyperparameter exploration, it is necessary to master a balance: when searching in the upward direction of a definite curve, better calculation results can be obtained with a greater probability, but local optimal solutions can be easily obtained. In addition to the upward direction of the curve, other search areas should also be explored. This paper adopts the Probability of Improvement (PI) method based on a promotion strategy as a collection function to determine the next evaluation point. At last, the cross-validation method is used to select the optimal hyperparameters. In the process of selecting the optimal hyperparameters, the transfer accuracy coefficient (TAC) is proposed to characterize the performance of the model transfer. The TAC of samples is defined as:
T A C = R x y x y 2
R x y = i = 1 n ( x i x ¯ ) ( y i y ¯ ) i = 1 n ( x i x ¯ ) 2 i = 1 n ( y i y ¯ ) 2
x ¯ = ( i = 1 n x i ) n , y ¯ = ( i = 1 n y i ) n , i = 1 , 2 , , n
where X represents the spectrum of a master sample, Y represents the spectrum of a slave sample, R x y represents the correlation coefficient between the master sample and the slave sample and n represents the number of spectral wavelength points. The larger the transfer accuracy coefficient is, the better the model transfer effect is.
Firstly, all sample sets were randomly divided at a proportion of 60%, 20% and 20% into a calibration set, validation set and test set. Then, the objective function of the model transfer algorithm based on an autoencoder was trained and solved by using the steps of the training set and Bayesian optimization algorithm, and the performance of the model was tested by using the transfer accuracy coefficient information of the model calculated by the verification set. Finally, the test set was used to test the performance of the trained algorithm model. To sum it up, the model transfer algorithm based on an autoencoder is shown in Algorithm 1.
Algorithm 1: Model transfer algorithm based on an autoencoder
Input: The master spectrometer data X, slave spectrometer data Y;
Output: The reconstructed data after model transfer from the instrument;
1Main procedure
2Bias B and weight W in the autoencoder neural network of the master and slave instrument are randomly initialized. The parameters such as training times and learning rate of the model are set;
3Compute the hidden layer variables H x and H y , calculate the optimization objective function and optimize the whole model;
4Optimized the hyperparameters of the autoencoder according to the Bayesian optimization algorithm, and the bias B and weight W were updated continuously by the gradient descent method until the optimal objective function value was found;
5Save the slave encoder and the master decoder models to form the model transfer structure based on the improved autoencoder.

3. Results and Discussion

3.1. Experimental Data Set

To verify the effectiveness of the proposed algorithm, in this paper, 64 groups of mixed solutions of copper, cobalt and iron under high zinc background were designed and configured according to an orthogonal test. Among them, zinc ion concentration was 33 g/L, and copper, cobalt, and iron ion concentration range was 2–16 mg/L. The T9 UV-Vis dual-beam spectrometer (Persee Instrument Co., Ltd., Beijing, China) and ATP2000 micro-spectrometer (Optosky Photonics Co., Ltd., Xiamen, China) were used to scan the spectral curves of 64 groups of samples at 480–800 nm. The spectral scanning results are shown in Figure 4.
To verify the necessity of spectral model transfer between the micro-spectrometer and traditional large spectrometer, the UV-Vis spectra of the solution with the same ion species and concentration were measured by using ATP2000 and T9 conventional spectrometers, respectively. The principal component score spatial distribution method was used to test the applicability of the model. It mainly used principal component analysis (PCA) to obtain the scores of samples in different principal components, then obtained the distribution map of the scores through calculation and then used the distribution map of the principal component score to judge the applicability of the model.
Figure 5a,b are the T9 and ATP2000 pareto graphs obtained after principal component analysis, respectively. The variance of the first two principal components of both was more than 95% of the total variance, so most of the information of the sample is generally reflected in the first and second principal components of the sample. Therefore, in this paper, the applicability of the model is judged by calculating the spatial distribution of the first and second principal component scores.
As can be seen from Figure 6, the scoring space of the first principal component and the second principal component of the T9 sample only partially overlapped with that of the ATP2000 sample, which did not completely cover the scoring space of the sample to be tested. Therefore, there is a great difference between the UV-Vis spectral data measured by the two UV-Vis spectrometers. The UV-Vis spectral data measured by T9 cannot directly build models to predict the ion concentration of samples measured by ATP2000. Therefore, it is necessary to solve this problem through model transfer.

3.2. Model Transfer Evaluation and Sample Number Selection

For model transfer, the fundamental purpose is to make the measurement under the different instrument condition of the same sample as close as possible, so as to ensure the multivariate calibration model can directly predict results. Set the X = { x 1 , x 2 , , x m } as the master sample, Y = { y 1 , y 2 , , y m } as the slave sample. The m is the number of samples.
For the whole test set, we used the average transfer accuracy coefficient T A C a v e and the minimum transfer accuracy coefficient T A C m i n to evaluate the model transfer algorithm. The average transfer accuracy coefficient represents the overall performance of model transfer, and the minimum transfer accuracy coefficient represents the maximum possible transfer risk of model transfer, where T A C a v e and T A C m i n are defined as:
T A C a v e = 1 m i = 1 m T A C i
T A C min = 1 min ( T A C i )
Different model transfer algorithms require different numbers of samples to be transferred, and there are slight differences in the methods used to select the transfer samples [29]. A more perfect model transfer algorithm needs fewer transfer samples to achieve good transfer performance. In order to quantitatively evaluate the model transfer performance, we first fixed all the parameters of the model transfer algorithm based on an autoencoder, and then adopted the K/S algorithm [30] to select the number of transfer samples of the proposed model transfer algorithm. The larger the average transfer precision coefficient and the smaller the minimum transfer precision coefficient of the test samples are, the better the model transfer effect is. Therefore, the optimal transfer sample number should be the number of samples at which T A C a v e is large and T A C m i n is small simultaneously. In order to ensure the robustness and accuracy of the transfer model, we should not use too few samples for model training, and at the same time, we should ensure enough samples are used as verification sets. Therefore, when verifying the effect of the number of transferred samples on T A C a v e and T A C m i n , the range of samples is set from 10 to 43. As shown in Figure 7, under the condition that the number of transferred samples is as small a as possible and T A C a v e as large as possible, as small T A C m i n as possible, the number of transferred samples should be 32.
The UV-Vis spectrum correction model was established by a model transfer algorithm based on an autoencoder. It can be seen from Figure 4 that there are great differences between ATP2000 and T9 spectra of 64 groups of samples scanned by two different spectrometers. Figure 8a shows the difference in spectral absorbance between the two instruments ATP2000 and T9 when measuring the same sample. It can be seen from the figure that the two spectral curves present an obvious state of baseline drift, and the difference at each wavelength point is nonlinear, especially at the peaks and troughs of the spectrum. It can be seen from the two characteristic peaks that the two absorbance curves also have the phenomenon of wavelength point drift. After the transfer of the model proposed in this paper, the spectrum measured by the slave instrument is basically coincident with the master spectrum after correction. The phenomenon of wavelength point shift is basically eliminated, as shown in Figure 8b.
In order to verify the effectiveness of the proposed algorithm and compare it with DS and PDS algorithms, the average and minimum transfer accuracy coefficients of the three model transfer algorithms were, respectively, calculated using 32 validation sets samples, as shown in Table 1.
Before model transfer, there was a big difference in measured spectra between instruments. After spectral transfer through the three model transfer methods, the average transfer accuracy coefficient between the master and the slave instrument was improved, while the minimum transfer accuracy coefficient was reduced. As can be seen from Figure 9, the spectral error of 32 validation set samples before model transfer is about 0–0.3, and the spectral difference can be controlled within −0.03–0.03 after model transfer of the algorithm in this paper. It can be seen from Table 1 that the proposed algorithm has the best model transfer performance. Compared with the DS algorithm and PDS algorithm, the average transfer accuracy coefficient increased by 45.11.% and 22.38%, respectively, and the minimum transfer accuracy coefficient decreased by 44.32% and 36.84%, respectively.
To further verify the effectiveness of the algorithm, compared with an algorithm based on the DS and PDS, the transfer model was established by using a multivariate calibration model of least squares to predict concentration. As shown in Table 2, the root mean square error of prediction results was used to validate the results.
According to Table 2, huge deviations occurred in the prediction of sample data by using the partial least squares (PLS) regression model established before model transfer, indicating that the model established on the master instrument had basically become completely invalid. After three model transfer algorithms, the predicted mean square error decreased. However, the DS algorithm adopted all the wavelength points to establish the transfer model. In the high-dimensional spectral background, the wide modeling range is very likely to cause the transfer model error. Although PDS establishes a window near a certain wavelength point and builds the transfer model in a small range, the spectral data collected by spectrometers ATP2000 and T9 will also have offset due to the different spectral resolution, and the window size will also affect the performance of the model. It can be seen from Table 2 that the algorithm proposed in this paper has the best prediction ability of ion concentration compared with the comparison algorithm. Compared with the DS algorithm and PDS algorithm, the root mean square error of Cu 2 + prediction was reduced by 92.88% and 75%, respectively. The prediction error of Co 2 + was reduced by 87.37% and 84.47%, respectively. The prediction error of Fe 2 + was decreased by 67.81% and 65.94%. The prediction accuracy of the ion concentration was greatly improved.

4. Conclusions

For spectral difference between a traditional desktop spectrometer and micro-spectrometer caused by hardware, this paper proposes a model transfer algorithm based on the improved autoencoder. Firstly, two autoencoders are used to train the spectral data of the master and slave instrument, respectively. Then, the two encoder is added with hidden variable constraint conditions, which makes the two hidden variables equal. A Bayesian optimization algorithm and transfer accuracy coefficient are proposed to optimize the model. Finally, the hidden variables from the instrument are obtained through the decoder of the master instrument to obtain the final reconstruction data, so as to complete the process of model transfer. The experimental results show that the average transfer accuracy coefficient of the proposed algorithm is improved by 45.11% and 22.38%, and the minimum transfer accuracy coefficient is reduced by 44.32% and 36.84% compared with the DS algorithm and PDS algorithm, respectively. Therefore, the proposed method can reduce the spectrum difference between the micro-spectrometer and the traditional large spectrometer and realize the data sharing between different instruments.

Author Contributions

Conceptualization, H.Z.; methodology, F.C.; software, H.H.; validation, Q.W.; writing—original draft preparation, F.C. and Y.S.; writing—review and editing, T.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (Grant No. 62273360), Natural Science Foundation of Hunan Province (Grant No. 2020JJ4382) and the Fundamental Research Funds for the Central Universities of Central South University (2021zzts0180).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are not publicly available at this time, but may be obtained upon reasonable request from the authors.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Xiao, H.; Sun, K.; Sun, Y.; Wei, K.; Tu, K.; Pan, L. Comparison of benchtop Fourier-transform (FT) and portable grating scanning spectrometers for determination of total soluble solid contents in single grape berry (Vitis vinifera L.) and calibration transfer. Sensors 2017, 17, 2693. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Chu, F.; Cheng, X.; Peng, C.; Jia, R.; Chen, T.; Wei, Q. A process transfer model-based optimal compensation control strategy for batch process using just-in-time learning and trust region method. J. Frankl. Inst. 2021, 358, 606–632. [Google Scholar] [CrossRef]
  3. Zhang, F.; Zhang, R.; Ge, J.; Chen, W.; Yang, W.; Du, Y. Calibration transfer based on the weight matrix (CTWM) of PLS for near infrared (NIR) spectral analysis. Anal. Methods 2018, 10, 2169–2179. [Google Scholar] [CrossRef]
  4. Wang, Y.; Veltkamp, D.J.; Kowalski, B.R. Multivariate instrument standardization. Anal. Chem. 1991, 63, 2750–2756. [Google Scholar] [CrossRef]
  5. Da Silva, N.C.; Pimentel, M.F.; Honorato, R.S.; Talhavini, M.; Maldaner, A.O.; Honorato, F.A. Classification of Brazilian and foreign gasolines adulterated with alcohol using infrared spectroscopy. Forensic Sci. Int. 2015, 253, 33–42. [Google Scholar] [CrossRef] [PubMed]
  6. Wang, Y.; Lysaght, M.J.; Kowalski, B.R. Improvement of multivariate calibration through instrument standardization. Anal. Chem. 1992, 64, 562–564. [Google Scholar] [CrossRef]
  7. Dangal, S.R.; Sanderman, J. Is standardization necessary for sharing of a large mid-infrared soil spectral library? Sensors 2020, 20, 6729. [Google Scholar] [CrossRef]
  8. Zeng, J.; Ping, W.; Sanaeifar, A.; Xu, X.; Luo, W.; Sha, J.; Huang, Z.; Huang, Y.; Liu, X.; Zhan, B.; et al. Quantitative visualization of photosynthetic pigments in tea leaves based on Raman spectroscopy and calibration model transfer. Plant Methods 2021, 17, 4. [Google Scholar] [CrossRef]
  9. Binfeng, Y.; Haibo, J. Near-infrared calibration transfer via support vector machine and transfer learning. Anal. Methods 2015, 7, 2714–2725. [Google Scholar] [CrossRef]
  10. Zhou, C.; Yu, W.; Huang, K.; Zhu, H.; Li, Y.; Yang, C.; Sun, B. A new model transfer strategy among spectrometers based on SVR parameter calibrating. IEEE Trans. Instrum. Meas. 2021, 70, 1–13. [Google Scholar] [CrossRef]
  11. Lima, F.; Borges, L. Evaluation of standardisation methods of near infrared calibration models. J. Near Infrared Spectrosc. 2002, 10, 269–278. [Google Scholar] [CrossRef]
  12. Brito, A.L.B.; Santos, A.V.P.; Milanez, K.D.T.M.; Pontes, M.J.C.; Pontes, L.F.B.L. Calibration transfer of flour NIR spectra between benchtop and portable instruments. Anal. Methods 2017, 9, 3184–3190. [Google Scholar] [CrossRef]
  13. Liu, Y.; Cai, W.; Shao, X. Standardization of near infrared spectra measured on multi-instrument. Anal. Chim. Acta 2014, 836, 18–23. [Google Scholar] [CrossRef]
  14. Wang, Y.; Ren, Z.; Li, M.; Lu, C.; Deng, W.W.; Zhang, Z.; Ning, J. From lab to factory: A calibration transfer strategy from HSI to online NIR optimized for quality control of green tea fixation. J. Food Eng. 2023, 339, 111284. [Google Scholar] [CrossRef]
  15. Alves, J.C.L.; Poppi, R.J. Pharmaceutical analysis in solids using front face fluorescence spectroscopy and multivariate calibration with matrix correction by piecewise direct standardization. Spectrochimica Acta Part A Mol. Biomol. Spectrosc. 2013, 103, 311–318. [Google Scholar] [CrossRef] [PubMed]
  16. Parrott, A.J.; McIntyre, A.C.; Holden, M.; Colquhoun, G.; Chen, Z.P.; Littlejohn, D.; Nordon, A. Calibration model transfer in mid-infrared process analysis with in situ attenuated total reflectance immersion probes. Anal. Methods 2022, 14, 1889–1896. [Google Scholar] [CrossRef]
  17. Zhang, Z.; Li, Y.; Li, C.; Wang, Z.; Chen, Y. Algorithm of Stability-Analysis-Based Feature Selection for NIR Calibration Transfer. Sensors 2022, 22, 1659. [Google Scholar] [CrossRef]
  18. Chen, Y.y.; Wang, Z.b. Cross components calibration transfer of NIR spectroscopy model through PCA and weighted ELM-based TrAdaBoost algorithm. Chemom. Intell. Lab. Syst. 2019, 192, 103824. [Google Scholar] [CrossRef]
  19. Folch-Fortuny, A.; Vitale, R.; De Noord, O.E.; Ferrer, A. Calibration transfer between NIR spectrometers: New proposals and a comparative study. J. Chemom. 2017, 31, e2874. [Google Scholar] [CrossRef]
  20. Galvão, R.K.H.; Soares, S.F.C.; Martins, M.N.; Pimentel, M.F.; Araújo, M.C.U. Calibration transfer employing univariate correction and robust regression. Anal. Chim. Acta 2015, 864, 1–8. [Google Scholar] [CrossRef]
  21. Chen, W.R.; Bin, J.; Lu, H.M.; Zhang, Z.M.; Liang, Y.Z. Calibration transfer via an extreme learning machine auto-encoder. Analyst 2016, 141, 1973–1980. [Google Scholar] [CrossRef] [PubMed]
  22. Feudale, R.N.; Tan, H.; Brown, S.D. Piecewise orthogonal signal correction. Chemom. Intell. Lab. Syst. 2002, 63, 129–138. [Google Scholar] [CrossRef]
  23. Ahmad, M.; Shabbir, S.; Oliva, D.; Mazzara, M.; Distefano, S. Spatial-prior generalized fuzziness extreme learning machine autoencoder-based active learning for hyperspectral image classification. Optik 2020, 206, 163712. [Google Scholar] [CrossRef]
  24. Vasafi, P.S.; Paquet-Durand, O.; Brettschneider, K.; Hinrichs, J.; Hitzmann, B. Anomaly detection during milk processing by autoencoder neural network based on near-infrared spectroscopy. J. Food Eng. 2021, 299, 110510. [Google Scholar] [CrossRef]
  25. Deepthi, K.; Jereesh, A. Inferring potential CircRNA–disease associations via deep autoencoder-based classification. Mol. Diagn. Ther. 2021, 25, 87–97. [Google Scholar] [CrossRef] [PubMed]
  26. Ahmad, M.; Alqarni, M.A.; Khan, A.M.; Hussain, R.; Mazzara, M.; Distefano, S. Segmented and non-segmented stacked denoising autoencoder for hyperspectral band reduction. Optik 2019, 180, 370–378. [Google Scholar] [CrossRef] [Green Version]
  27. Munir, N.; Park, J.; Kim, H.J.; Song, S.J.; Kang, S.S. Performance enhancement of convolutional neural network for ultrasonic flaw classification by adopting autoencoder. NDT E Int. 2020, 111, 102218. [Google Scholar] [CrossRef]
  28. Vincent, P.; Larochelle, H.; Lajoie, I.; Bengio, Y.; Manzagol, P.A.; Bottou, L. Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion. J. Mach. Learn. Res. 2010, 11, 3371–3408. [Google Scholar]
  29. Algamal, Z.Y.; Qasim, M.K.; Lee, M.H.; Ali, H.T.M. Improving grasshopper optimization algorithm for hyperparameters estimation and feature selection in support vector regression. Chemom. Intell. Lab. Syst. 2021, 208, 104196. [Google Scholar] [CrossRef]
  30. Kennard, R.W.; Stone, L.A. Computer aided design of experiments. Technometrics 1969, 11, 137–148. [Google Scholar] [CrossRef]
Figure 1. Structure diagram of autoencoder frame.
Figure 1. Structure diagram of autoencoder frame.
Sensors 23 03076 g001
Figure 2. Training process of a model transfer algorithm based on a deep autoencoder.
Figure 2. Training process of a model transfer algorithm based on a deep autoencoder.
Sensors 23 03076 g002
Figure 3. Training process of a model transfer algorithm based on a deep autoencoder.
Figure 3. Training process of a model transfer algorithm based on a deep autoencoder.
Sensors 23 03076 g003
Figure 4. Ultraviolet Visible (UV-Vis) spectra of 64 groups of Cu, Co and Fe mixed solutions. (a) T9 spectrometer; (b) ATP2000 spectrometer (after denoising).
Figure 4. Ultraviolet Visible (UV-Vis) spectra of 64 groups of Cu, Co and Fe mixed solutions. (a) T9 spectrometer; (b) ATP2000 spectrometer (after denoising).
Sensors 23 03076 g004
Figure 5. Principal component analysis (PCA) feature extraction of T9 and ATP2000 samples. (a) PCA feature extraction of the master spectrometer T9; (b) PCA feature extraction of the slave spectrometer ATP2000.
Figure 5. Principal component analysis (PCA) feature extraction of T9 and ATP2000 samples. (a) PCA feature extraction of the master spectrometer T9; (b) PCA feature extraction of the slave spectrometer ATP2000.
Sensors 23 03076 g005
Figure 6. Spatial distribution of principal component scores of T9 and ATP2000 samples.
Figure 6. Spatial distribution of principal component scores of T9 and ATP2000 samples.
Sensors 23 03076 g006
Figure 7. (a): Effects of transfer sample size on T A C a v e (b): Effects of transfer sample size on T A C m i n .
Figure 7. (a): Effects of transfer sample size on T A C a v e (b): Effects of transfer sample size on T A C m i n .
Sensors 23 03076 g007
Figure 8. The spectral transfer result of the method. (a) The difference in spectral absorbance between the two instruments when measuring the same sample. (b) The spectrum measured by the slave instrument and the master spectrum after correction.
Figure 8. The spectral transfer result of the method. (a) The difference in spectral absorbance between the two instruments when measuring the same sample. (b) The spectrum measured by the slave instrument and the master spectrum after correction.
Sensors 23 03076 g008
Figure 9. The spectral errors of the model were verified before and after spectral transfer.
Figure 9. The spectral errors of the model were verified before and after spectral transfer.
Sensors 23 03076 g009
Table 1. Comparison of transfer performance of three model transfer algorithms.
Table 1. Comparison of transfer performance of three model transfer algorithms.
Method TA C ave TA C min
Before model transfer3.57270.8211
DS4.23910.5841
PDS5.02690.5149
Proposed method6.15170.3252
Table 2. Comparison of transfer performance of three model transfer algorithms of the test set.
Table 2. Comparison of transfer performance of three model transfer algorithms of the test set.
RMSECu 2 + Co 2 + Fe 2 +
Before model transfer0.4260.3970.443
DS0.2950.1980.146
PDS0.0840.1610.138
Proposed method0.0210.0250.047
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhu, H.; Shang, Y.; Wan, Q.; Cheng, F.; Hu, H.; Wu, T. A Model Transfer Method among Spectrometers Based on Improved Deep Autoencoder for Concentration Determination of Heavy Metal Ions by UV-Vis Spectra. Sensors 2023, 23, 3076. https://doi.org/10.3390/s23063076

AMA Style

Zhu H, Shang Y, Wan Q, Cheng F, Hu H, Wu T. A Model Transfer Method among Spectrometers Based on Improved Deep Autoencoder for Concentration Determination of Heavy Metal Ions by UV-Vis Spectra. Sensors. 2023; 23(6):3076. https://doi.org/10.3390/s23063076

Chicago/Turabian Style

Zhu, Hongqiu, Yi Shang, Qilong Wan, Fei Cheng, Haonan Hu, and Tiebin Wu. 2023. "A Model Transfer Method among Spectrometers Based on Improved Deep Autoencoder for Concentration Determination of Heavy Metal Ions by UV-Vis Spectra" Sensors 23, no. 6: 3076. https://doi.org/10.3390/s23063076

APA Style

Zhu, H., Shang, Y., Wan, Q., Cheng, F., Hu, H., & Wu, T. (2023). A Model Transfer Method among Spectrometers Based on Improved Deep Autoencoder for Concentration Determination of Heavy Metal Ions by UV-Vis Spectra. Sensors, 23(6), 3076. https://doi.org/10.3390/s23063076

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop