fourier transform infrared ( ftir ) and gas chromatography - mass spectrometry ( gcms ) are two essential techniques applied for analysis of edible oils [ 1 , 2 ] . fundamentally , ftir spectra illustrate absorption bands with characteristic frequency attributed to different functional groups whilst gcms reveals the compounds eluted at different retention times with mass spectra corresponding to compounds present , indicative of the fatty acid compositions . conventionally the resultant signals from both instruments are analysed with the software equipped at the workstations for peak integration . the signal processing tool exclusively designed for ftir is not applicable to gcms chromatograms due to differences in data nature and characteristics . therefore to analyse the output from both ftir and gcms , an analyst has to juggle between both instruments . when a large volume of sample is involved , the signal processing process can be exhaustive and time consuming . with the advances in computer technology , various alternatives have been made available reducing the dependence on the default signal processing tool ; for instance , the digital data in csv format is readable on microsoft excel . numerous algorithms have been developed for analysis of signal from various instrumentation techniques , that is , fourier transform infrared ( ftir ) [ 1 , 3 ] , gas chrnomatography - differential mobility spectrometry ( gc - dms ) , gas chromatography - mass spectrometry ( gc - ms ) [ 57 ] , high performance liquid chromatography ( hplc ) , nuclear magnetic resonance ( nmr ) , two - dimensional gas chromatography ( gc - gc ) , and liquid chromatography - mass spectrometry ( lc - ms )   to allow mathematical integration of the signals including baseline correction , smoothing , and peak deconvolution on a personal computer . these algorithms however are designed to cater a specific source of signal ; hence , when multiple sources of signals are involved more than one algorithm is required . in edible oil industry , continuous monitoring and extensive cross comparisons between products involving multiple instrumental techniques such as ftir and gcms are common and this often results in enormous amount of data that requires a more efficient way for data interpretation . this has motivated the development of a signal processing approach that aids in analysis of signals from multiple sources . in this paper , we report a synchronised signal processing algorithm that caters both ftir and gcms signal for evaluation of thermally degraded vegetable oils . seven types of edible oils were studied including ( 1 ) palm oil , ( 2 ) canola and palm oil , ( 3 ) corn oil , ( 4 ) canola oil , ( 5 ) soybean oil , ( 6 ) blended palm , sesame and peanut oil , and ( 7 ) canola and sunflower oil . they were obtained from the local market and heated at 100c and 150c , respectively , for 15  min using a digital heating block . a total of 63 ftir spectra and gcms chromatograms , respectively , were produced ( 7 types  3 treatments  3 replicates = 63 ) . all spectra were obtained using an atr - ftir of thermoscientific ( thermo nicolet analytical instruments , madison , wi ) . the spectra were collected at a resolution of 4  cm in the range of 4000650  cm . each spectrum was rationed against a fresh background spectrum recorded from the bare atr crystal . prior to collection of each background spectrum , the atr crystal was cleaned with absolute ethanol to remove any residual . for gcms analysis , 100  l of oil was dissolved in 2  ml of dichloromethane ( dcm ) . the sample was analysed on a shimadzu gc - ms system model qp500 with a medium polarity capillary column ( bpx-5 column ( 29.4  m  0.25  mm ) , with film thickness of 0.25  m ) with helium as the carrier gas . one microlitre of the sample was injected using splitless injection with injector temperature 300c according to the following scheme : 50c for 2  min with 10c / min up to 300c . the total runtime for each sample was 37  min . for ms detection , electron ionization with 70  ev was applied and mass fragments were detected between 40 and 500  m / z . the ftir spectra and gcms chromatograms were analysed using the synchronised algorithm developed in matlab r2012a . the synchronised strategy is an extension of the peak detection and matching algorithm designed for ftir , published in . first , all data files ( csv format for ftir spectra and netcdf for gcms chromatograms ) were converted into mat files . the algorithm requires input of the data nature whether it is one - dimensional or two - dimensional . if the data is two dimensional , the algorithm would obtain the total ion chromatogram ( summing the intensities of all mass spectral of the same scan ) compressing them into one - dimensional data . the data is subsequently baseline corrected according to asymmetric least squares , smoothed using soft heuristic thresholding ( sym8 wavelet ) , and transformed into first derivative signal where the peak start , peak , and peak end are identified . briefly , the algorithm would evaluate each data point of the derivative signal in succession ; a peak start is labelled when the derivative signal is above zero and x times greater than the peak noise ( average absolute change of derivative ) ; when the signal crosses x - axis attaining negative values , the peak is located . as the derivative signal crosses x - axis again where the values become positive , peak end has arrived . upon detection of a peak , the corresponding peak area is calculated as the sum of the detector output between the start and the end . the algorithm would evaluate the spectrum in turn to identify the peaks present ; they will then be matched across samples for similar functional groups according to a predefined window size . for example , if a window of z1 scans is set and a peak at 1720  cm is targeted for matching , the algorithm would search through all samples for possible matching peaks ranging between 1720  z1 cm . the matching peaks are subsequently arranged in the same column with rows corresponding to samples ; as a result , a table representative of peaks detected and matched is produced . it is important to evaluate the resultant table to confirm that parameters employed such as window size and peak threshold are adequate . if a potential matching peak is mismatched or unmatched , it is an indication that the window size would require fine - tuning . in terms of peak detection , it is possible that the algorithm suffers to identify poorly resolved bands or shoulder bands ; sometime the peak noise threshold may be unsuitable , too small that noise is misidentified as signals or too large that signals are overlooked . therefore , it is essential to manually verify the information on the peak table overlaying the spectra for visualization . for gcms data , peaks are detected similarly based on the total ion chromatograms ; however , in the matching process , the candidate matching peaks are identified according to a predefined window size , z2 ( in this paper , z2 = 50 scans ( 15  s ) ) , and further confirmed with the mass spectra according to the similarity index . spectra with correlation coefficient > 90% are considered corresponding to the same compound in which matching peaks are organised into a peak table as described above . for each compound the spectra were prealigned to some common peaks according to the strategy of retention time alignment in . in oil analysis , prealignment , and setting , an optimum window size is crucial to minimize erroneous matching as compounds eluted closely may exhibit mass spectra with high similarity , sometime more than 98% for example , 2,4-dodecadienal and 2,4-decadienal eluting at 11.98  min and 12.35  min , respectively . two peak tables were produced resulting from the analysis of ftir and gcms spectra / chromatograms . the algorithm undoubtedly experiences some inherited shortcomings ; nevertheless , it enables multiple output signals from analytical instruments to be processed efficiently and systematically . the peak table was preprocessed ( square rooted , scaled to one , and standardised ) and subjected to principal component analysis ( pca ) for further analysis . the algorithm yields two peak tables corresponding to the analysis of a total of 63 ftir and gcms spectra / chromatograms , respectively . figure 2 shows the ftir spectra of seven edible oils treated under different temperatures : unheated , 100c , and 150c . essentially the superimposed spectra of heated and unheated palm oil , corn oil , and blended palm oil exhibit slight variation suggesting little changes upon treatments . the scores plot of the ftir peak table in figure 3 shows that canola - based oils are differentiable from palm - based oil . after heating at 150c , various vegetable oils regardless of the origin are observed to cluster implying sharing of common features where palm oil encountered comparatively less alteration , inferring better thermal stability . typically , heated cooking oils are challenged with the loss of unsaturation due to the attack of oxygen via radical reaction . the degree of unsaturation is often monitored based on several characteristic bands at 1650  cm ( c = c stretching vibration of cis - olefins ) , 1417  cm ( rocking vibrations of ch bonds of cis - disubstituted ) , and 3001  cm ( ch stretching vibration of the cis - double bond ) . if only a limited number of spectra are involved , there is no issue related to identification of changes due to thermal treatment ; however , the process can be exhaustive when numerous spectra are concerned . figure 4 illustrates the relative abundance of some bands commonly reported for discrimination of thermally degraded oil . evidently , the band corresponding to olefinic attribute at 14301330  cm reduces steadily / disappears upon heating confirming the loss of double bonds where palm oils are characterised by relatively less polyunsaturated compounds , which is not unexpected . other lines of evidence of diminished unsaturation are observed at 3010  cm and 1650  cm . as oxidation continues , the degree of unsaturation is correspondingly reduced closing the gap of difference between polyunsaturated and polysaturated oils , leading to clustering of the thermally oxidised edible oils as demonstrated in figure 3 . in addition to loss of unsaturation , elevated temperature simultaneously triggers hydrolysis of triglycerides yielding fatty acids and glycerols , evidenced with increased band intensity at 1157  cm ( c  o ester groups ) . the band at around 1680  cm , indicative of the c = o stretching of conjugated unsaturated aldehydes , is profoundly detected in heated oils of which palm oil demonstrated greater abundance . formation of trans - fatty acid , a common issue in thermally oxidised oil , is associated with the band near 966  cm ; it is often identified in a small amount in fresh oil as a consequence of isomerisation of cis - unsaturated fatty acids upon bleaching , refining , and deodorization [ 1820 ] . the undesirable conversion is witnessed to be encouraged under increasing temperature confirmed by soaring of the band at 966  cm in which palm olein oil and blended canola - sunflower oil demonstrate higher concentration after heating . as suggested elsewhere , palm oil and sunflower oil are characterised by better efficiency of heat transfer , thus leading to higher conversion of trans - fatty acid [ 21 , 22 ] . the information on the peak table is converted into bar charts that are verified by overlaying the spectral at a designated region as illustrated in figure 4 ; this approach enables rapid validation of the algorithm . figure 5 illustrates the peaks precisely identified in a chromatogram and the inset shows several dienaldehydes commonly present in all chromatograms . most cooking oils are enriched with vitamin e that exists in various forms mainly tocopherols and tocotrienols . their presence essentially improves the antioxidation property of cooking oil as the compounds , during oxidation process , compete with unsaturated fats for lipid peroxy radical . according to al - saqer et al . , these compounds are prominently found in soybean , canola , sunflower , and corn oils with relatively lower amount in palm oil . in this study , only - and -tocopherols are identified ; they are relatively more prominent in blended and pure palm oil as opposed to the findings of al - saqer et al . . nevertheless the nutritional label on the products , when compared , indicates that blended and pure palm oils possess higher vitamin e corresponding to the relative abundance of the total tocopherols revealed by gcms : palm , peanut , and sesame ( 75  mg/100  ml ) ; palm oil ( 60  mg/100  ml ) ; corn ( 63  mg/100  ml ) ; canola and palm ( 50  mg/100  ml ) ; canola and sunflower ( 30.8  mg/100  ml ) ; canola ( 20.3  mg/100  ml ) ; soya ( 15  mg/100  ml ) . the higher concentration of vitamin e in palm based oil provides an explanation to the better oxidative stability suggested from the analysis of ftir spectra . the various forms of tocopherols are in addition convertible ; several studies have reported the conversion of - and -tocopherols into - and -tocopherols [ 25 , 26 ] . as observed in this study , the -form of tocopherol is distinctively found in unheated palm - based oil , corn oil , and canola - sunflower oils ; upon heating , this compound is completely missing and replaced with -tocopherol that appears to degrade with increasing temperature . squalene is also a compound commonly found in vegetable oils , particularly high in olive oils , with antioxidant property . as illustrated in figure 6 , squalene is detected profoundly in blended and pure palm oil as well as corn oil corroborating the hypothesis drawn from ftir spectra that these varieties of oils are more resistant to oxidation . plant sterols including sitosterol , campesterol , and stigmasterol are cholesterol - like molecules ; the saturated analogues are suggested as effective cholesterol - lowering agents whilst those with ethylidene contain side chain that may behave as antioxidants [ 27 , 28 ] . in this study , - and -sitosterols are identified with the former distinctively detected in canola and corn oils where the finding is in agreement with ratnayake et al . . during oxidation , fatty acids are typically converted into hydroperoxides and further broken down into secondary products such as aldehydes and ketones [ 3032 ] . it is found that dienaldehydes such as 2,4-nonadienal and 2,4-decadienal are consistently detected in all oil samples where the concentrations appear to increase appreciably after heating at 150c with no significant different concluded statistically ( p > 0.05 ) . interestingly at 100c , a decline in the amount of dienaldehydes is consistently experienced in all oil varieties , possibly due to the chain reaction of transformation to ultimate by - products . the study demonstrates that output from ftir and gcms can be simultaneously analysed using a common signal processing approach for evaluation of thermally degraded vegetable oils . this would save the time for an analyst to juggle between instruments and applies some common guidelines to process the signals systematically . undoubtedly , the approach is not a perfect and flawless method as there are possibilities that peaks are overlooked or mismatched ; nevertheless , it offers a systematic strategy to process relatively large datasets of edible oils from gcms and ftir simultaneously with reasonable reliability .
fourier transform infrared ( ftir ) and gas chromatography mass spectrometry ( gcms ) are two common instruments used for analysis of edible oils . the output signal is often analysed on the software attached to the workstations . 
 the processing software is usually individualised for a specific source . 
 the output of gcms can not be analysed on the ftir hence analysts often need to juggle between instruments when multiple techniques are employed . 
 this could become exhaustive when a large dataset is involved . 
 this paper reports a synchronised approach for analysis of signal from ftir and gcms . 
 the algorithm is demonstrated on a dataset of edible oils to investigate the thermal degradation of seven types of edible oils treated at 100c and 150c . 
 the synchronised routines identify peaks present in ftir and gcms spectra / chromatograms where the information is subsequently extracted onto peak tables for further analysis . in this study 
 , it is found that palm based products and corn oils were relatively more stable with higher content of antioxidants tocopherols and squalene . as a conclusion 
 , this approach allows simultaneous analysis of signal from multiple sources and samples enhancing the efficiency of the signal processing process .