FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access...

15
FACT – Free Access Chemometric Toolbox : a new chemometric toolbox for SCILAB JC BOULET D.BERTRAND G.MAZEROLLES JM ROGER

Transcript of FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access...

Page 1: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

FACT – Free Access Chemometric Toolbox :

a new chemometric toolbox for SCILAB

JC BOULETD.BERTRAND

G.MAZEROLLES

JM ROGER

Page 2: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

What is chemometrics ?

Chemometrics is the science of relating measurements made on a chemical system or process to the state of the system via application of mathematical or statistical methods (International Chemometric Society).

Chemometrics is the science of extracting information from chemical systems by data-driven means (Wikipedia).

Spectrum visualization

chemometrics

Ex : near infrared spectra of wheat flour

Ex : partial least squares regression

Sample classification

Compound quantification ...

Ex : discriminant   analysis

Page 3: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

Where are chemometric applications?

Almost everywhere !

Drug industry

Oil industry And many others...

Food industry

PAT (FDA/US): process access technology

quality control

quality control

Page 4: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

Why one more chemometric toolbox ?

Toolboxes /softwares already exist...

… with the pros and cons of commercial softwares.

Page 5: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

Which free platform?

OCTAVE

- syntax and performances too different from Matlab

- same syntax as Matlab- difficult to use, not enough friendly- performances ?

- performances close to Matlab- recent improvements- teached in France

X

X

Page 6: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

How FACT was designed

→ 100% free

Starting point :

+ functions of the

co-authors

Specifications :

→ Famous methods + new & promising methods

1- tutorials & datasets - to get started-

2- abc_fact html help page

3- Div objects - data-individuals-variables-

Focus on 3 features :

→ Easy to use

Page 7: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

1- Getting started

FACT web page(google: fact atoms scilab)

Page 8: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

getting_started.zip :

1- Getting started

Training datasets

Tutorial

Page 9: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

2- Finding a Fact function ? fact...

fact

abc_fact barycentermapcaccswacdelcenteringcoloredmapcomdimcopdacorrcoefcorrmatcorrplotcovmatcovselcspcanacsv2divcurvesdaapplydcsv2divdetrending...

Functions classified byalphabetical order

Automatically built by Scilab

Called by :

help fact

Page 10: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

2 - ...and abc_fact

abc_fact :

Statisticscorrmat...

Pretreatments (X->X) by orthogonal projectiondetrending...

Pretreatments (X->X) by variable selection covsel...Other pretreatments (X->X)

snv...One matrix (X) of observations/variables

pcana...A matrix of contingency

ca...Two matrices of observations/variables ; calibrations

pls...Two matrices ...; classifications

fda...Several matrices... ; multiway analysis

ccswa...Graphics

curves...Data management

groupcreate...

Functionsclassified by theme

New !

Called by :

help abc_fact

Page 11: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

3 – The Div object Variables labels (q x 1)

Indi

vidu

als

labe

ls (

n x

1)

Numerical values( n x q)

X.d (n x q) – double- .i (n x 1) - string-

.v (q x 1) - string -

Page 12: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

3 – Example : a plot with labels The dataset : Wine dataset (downloaded from Eigenvector website) :→ 10 countries → 5 variables

The Div structure : wine = d: [10x5 constant] i: [10x1 string] v: [5x1 string]

Wine.v =!Liquor !!Wine !!Beer !!LifeEx !!HeartD !

The command :

map(wine, 5,2)

The plot :

Page 13: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

3 – Added value of the Div structures

→ As easy to handle as matrices (almost)

<> Overloading of the classical operators ( + - * / [ ] etc)

<> Div automatically built by the main functions

→ Very useful when variables and /or observations are added / dropped / sorted...

→ Very useful for plotting labels

→ Less crash problems (OOP)

Page 14: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

Perspectives

1- Completing FACT

2- providing some 'guarantees'

- new chemometric functions (at least : genetic algorithms, EMSC, neural networks)

- hyperspectral image

- regular updates (2-3 / year)

- Benchmarks with reference softwares/toolboxes

- Available from the FACT page

2 projects

3- Building MOOCs

- the information + the tool + the training datasets

- Ground 0 of this project...

In progress

Page 15: FACT – Free Access Chemometric Toolbox : a new chemometric ... · FACT – Free Access Chemometric Toolbox : ... (FDA/US): process access technology quality control quality control.

Conclusion

FACT : released Nov 2013

more than + 2 users/day

almost no uninstall

=> encouraging to continue!

=> speed depending on partners contributions :

→ Chemometricians (more methods)→ Fundings (MOOCs)→ Scilab developers (Scilab performances)