20 feb. 2017

Compare Histograms compensation before calibration


It is convenient to check the compensation of histograms before the calibration procedure. In this case all sample set has been split it into four groups to make a LOCAL calibration study. One group was kept it out for validation and the other three mixed for calibration, making all possible combinations. 
Before to proceed, a look to the histograms will help to see compensation of the groups.

Open four CAL files and use Window-Tile for visual checking.

19 feb. 2017

To consider when developing LOCAL calibrations in Win ISI 4


We can have a cal file with several parameters, and with all of them we start a LOCAL study to develop a LOCAL Calibration. We can split the cal File into two o more sample sets (at less one for the calibration and another for the validation (75% of the samples for the calibration and 25% for the validation selected in a random way could be fine. Now we can start the LOCAL procedure to get which is the best configuration  for:
Minimum and maximum numbers to select  (there is a batch option to check this)
Minimum and Maximum number of terms for the calibration.. 
Wavelength range. 
Math treatments
If we select all the constituents for this study we will get the minimum and maximum range for the terms, and probably we get a maximum close or equal to 50 (due to the ash constituent for example) and a minimum of 3 (due to the moisture). So this is the configuration that we have to add in the LOCAL model profile.
That does not mean that it will take 50 samples for the moisture becouse the algorithm will treat every sample and constituent individually.
You can split the cal file into several Cal files of just one constituent and develop the study for one of them every time and you will see how in the case of the moisture you will get different minimum and maximum for each and the range, if we see all together, is almost the same the one we get with the LOCAL study with all the constituents.
To split the Cal file for constituents can be important in the case that some of the works better with a math treatment that with another which is better for others. In this case we can prepare different RED files and different configurations.

See the LOCAL Label to know more about LOCAL Calibrations in WIn ISI

17 feb. 2017

An example of transfectance concept


I share this video as an example of the transflectance concept used to analyze liquid samples in a reflectance instrument. In this case the cup used is a slurry cup which is easier to clean, and the reflector is placed over the sample so the light goes through the sample and is reflected back to the detector. It is important to select the right pathlength in order to get a better signal and not saturated NIR bands in the spectra.


15 feb. 2017

Temperature effect in the NIR spectra

This is the case of a sample scanned in the same cup at different temperatures. Normally when we scan a sample is at a temperature similar to the laboratory, but sometimes we received the sample from the process and can be warmer and for different reasons we analyze the sample warmer than normally. There are other cases, especially in the winter that we take the sample from the truck with samples and the sample is very cold and we analyzed by NIR anyway. 
In both cases probably we get a warning from the Mahalanobis distance, and a strange result and that is because the model does not incorporate the variance due to the temperature of the sample. In this case wait that the sample reaches the lab temperature and analyze it by NIR.
Of course maybe you can make the model robust to this effect.
In the next figure we can see the spectra of a sample in second derivative scanned 46 time at 46 different temperatures (from very warm to very cold) and we can see that all the spectra seem the same except in certain zones:


Now we calculate the average spectrum and we subtract every spectrum from the average spectrum, in order to do this I have export the spectra to Excel, and these curious spectra appear:

As we can see some kind of first derivatives appear at the wavelength zones of O-H, due probably to hydrogen bonds which shift the peaks of the water band.
Using repeatability files we can minimize this effect and obtain similar results analyzing the same sample at different temperatures.