Continuous Measurement of Rare-Earth Ion Concentrations Using Dynamic UV–Vis Absorption Spectroscopy and Adaptive Residual Correction [dataset & soruce code]
Description
The accompanying MATLAB source code includes implementations for Leave-One-Group-Out Cross-Validation (LOGO-CV), online concentration prediction, and comparative performance evaluation of AMRC-PLSR and representative regression models.
Files
Steps to reproduce
1. **Data preparation:** Download and extract the experimental datasets and MATLAB source code. Configure the file paths in the scripts according to the local directory structure. 2. **Leave-One-Group-Out Cross-Validation (LOGO-CV):** Navigate to the corresponding subfolder for each rare-earth ion (Nd³⁺, Pr³⁺, and Dy³⁺) and execute `8Model_LOGO_AMRC.m`. This script performs group-aware cross-validation and compares the quantitative performance of eight regression models, including the proposed AMRC-PLSR method. 3. **Online prediction and model comparison:** Navigate to the `ONLINE_TEST` folder and execute `8Model_FullTrain_AMRC_onlineTest.m`. This script evaluates the online concentration prediction performance of the eight models using independent time-series spectral data acquired approximately 30 days after model development. 4. **Performance evaluation:** Examine the generated predictions and performance metrics, including R², RMSE, MAE, and prediction bias, where available. Compare the results with the corresponding tables and figures reported in the associated manuscript. **Note:** The released MATLAB code focuses on LOGO-CV, independent online prediction, and comparative model evaluation. The correlation-based wavelength selection procedure is described in the manuscript but is not included in the released source code.
Institutions
- Jiangxi University of Science and TechnologyJiangxi, Ganzhou
- Chinese Academy of SciencesBeijing, Beijing