Data Preprocessing in FAKE...

Post on 17-Jul-2020

1 views 0 download

Transcript of Data Preprocessing in FAKE...

01001110 0110010101110101 0111001001101111 0110111001101111 0111011001100001 0010000001110011 0110101101110101 0111000001101001 0110111001100001 0010000001101011 0110000101110100 0110010101100100 0111001001111001 0010000001110000 0110111101100011 0110100101110100 0110000101100011 0111010100101100 0010000001000110 0100010101001100 0010000001000011 0101011001010101 0101010000101100 0010000001010000 0111001001100001 0110100001100001 00000000

Data Preprocessing in Data Preprocessing in FAKE GAMEFAKE GAME

Miroslav ČepekMiroslav Čepekcepekmir@fel.cvut.czcepekmir@fel.cvut.cz

http://cig.felk.cvut.czhttp://cig.felk.cvut.cz

Computational Intelligence GroupComputational Intelligence GroupDepartment of Computer Science and EngineeringDepartment of Computer Science and Engineering

Faculty of Electrical EngineeringFaculty of Electrical EngineeringCzech Technical University in PragueCzech Technical University in Prague

Data mining process

Data preprocessing

IntroductionIntroduction

● Usualy data preprocessing takes about 80% time of whole data mining process.

● Data preprocessing is corner stone of data mining process.

– Garbage in – garbage out principle

– When training data does not contain important information resulting model is irrelevant and does not work.

● Data preprocessing is time-consuming but important!

● The part of FAKE GAME project is the Data Preprocessing subsystem.

● The Data preprocessing subsystem is divided into

– Manual preprocessing part.

– Automatic preprocessing part.

Manual preprocessing

● In this mode you can select and apply data preprocessing methods as you like.

Data preprocessing methods

● Data Preprocessing subsystem contains methods from various fields:

– Data acquisition (CSV, XLS, Databases)

– Missing data imputation

– Data normalization

– Data reduction (sampling and dimension reduction)

– Outlier detection

– …

Automatization of data preprocessing

● How to simplify the data preprocessing task?– Some parts can not be automated – data

acquisition, feature extraction, data cleaning.

– On the other hand there is still large part which can be automated.

● Replace (impute) missing values. Which method to use?

● Normalize attributes? Which method to use? To which range?

● …

Automatic Preprocessing – Ideas

● The task of finding the order and setup of preprocessing methods is an optimization problem.

– Simulated annealing

– Linear programming

– Taboo search

– Ant colony optimization

– Particle swarm optimization

– Genetic algorithms

Ideas for data preprocessing

● Automatic Preprocessing utilizes genetic algorithm to search for the optimal sequence of preprocessing methods.

– Each individual presents a sequence of preprocessing methods.

– Fitness function of each individual is accuracy over testing data of model created from data preprocessed by sequence of preprocessing methods.

Automatic Preprocessing – Sequences

● For each input attribute exists one subsequence

● Each attribute is preprocessed separately

Genome

Attribute sequences are contecated into individual (genome).

− One more special subsequence exists – Global

− This subsequence contains preprocessing methods manipulating with the whole dataset.

− Methods like PCA, Data reduction, …

Fitness function

• The fitness is accuracy of the model created from the training data.

• The final fitness and results depends on modeling method used.

– Modeling method should be fast and reasonably accurate.

– At this time, the decision tree looks the best.

– But also logistic and SVM classifiers, can be used.

Calculation of Fitness

• Fitness of the individual in Automatic Preprocessing is accuracy of model created from data preprocessed by methods selected by given individual.

Fitness value modifications

● Regularization– Keep number of applied preprocessing methods

as small as possible.

– Avoid preprocessing methods which do not improve the accuracy.

● Remaining missing values– Penalization if missing values are still present in

dataset after preprocessing is complete.

● Complexity of resulting model– Penalization of too complex models.

Example result

● Improvements of the fitness with EColi data.● Boxplots created from 20 repetitive runs showing

accuracy of the best-so-far individual and the average accuracy in the population.

Generations

Acc

urac

y (F

itnes

s va

lue)

Average fitness of the population

Fitness of the best-so-far individual

Influence of modeling method

● Not all modelling methods achieved the same accuracy.

– The final fitness and differences between fitnesses achieved by modelling methods is problem depend.

– For now – if the most accurate model is needed, all modelling methods much be tried.

Utilization of preprocessing methods

● There remains very important question about utilized methods.

– I have to double check which methods are utilized by successful individuals.

Future of Automatic Preprocessing

● Utilization of Meta-data to speed-up the genetic algorithm or even to skip it.

● We plan to extend to the Automatic preprocessing to

– automatic selection of features to extract from time-series (signals),

– automatic selection of features to images.

● Improvements to “manual” part of the preprocessing algorithms.

Thank you for your attention.

Miroslav Čepek(cepekmir@fel.cvut.cz)

● Predstaveni modulu pro predzpracovani dat + ze mame spoustu naimplementovanych metod

● Zacatek auto predzprac● Jak to funguje (vnitrnosti)● Slechteni pro konkretni modely● Fitness – presnost modelu, regularizace,

slozitost modelu, …● Zaskladni vysledky● Budoucnost predzpracovani (auto predzp

signalu/obrazku/predzpracovani podle meta-dat)