Zhiling Zhou (Talk | contribs) |
Zhiling Zhou (Talk | contribs) |
||
Line 547: | Line 547: | ||
<div class="imgdiv"><img class="textimg" src='https://static.igem.org/mediawiki/2017/9/97/ZJU_China_VOC_2.png' alt=''/></div> | <div class="imgdiv"><img class="textimg" src='https://static.igem.org/mediawiki/2017/9/97/ZJU_China_VOC_2.png' alt=''/></div> | ||
<p class="PP">We remove those records with singular value, and the data left obey normal distribution:</p> | <p class="PP">We remove those records with singular value, and the data left obey normal distribution:</p> | ||
− | <div class="imgdiv"><img class="textimg" src='https://static.igem.org/mediawiki/2017/3/32/ZJU_China_VOC_3.png' alt=''/></div> | + | <div class="imgdiv col-md-6 col-sm-6"><img class="textimg" style="height: 230px !important; width:auto !important;" src='https://static.igem.org/mediawiki/2017/3/32/ZJU_China_VOC_3.png' alt=''/></div> |
− | <div class="imgdiv"><img class="textimg" src='https://static.igem.org/mediawiki/2017/e/e0/ZJU_China_VOC_4.png' alt=''/></div> | + | <div class="imgdiv col-md-6 col-sm-6"><img class="textimg" style="height: 230px !important; width:auto !important;" src='https://static.igem.org/mediawiki/2017/e/e0/ZJU_China_VOC_4.png' alt=''/></div> |
<h3 id="dataanalysis" class="H3Head">Data analysis</h3> | <h3 id="dataanalysis" class="H3Head">Data analysis</h3> | ||
Line 1,211: | Line 1,211: | ||
class="bs-docs-sidebar hidden-print hidden-xs hidden-sm"> | class="bs-docs-sidebar hidden-print hidden-xs hidden-sm"> | ||
<ul class="nav bs-docs-sidenav shorterli"> | <ul class="nav bs-docs-sidenav shorterli"> | ||
− | <li><a href="#modeling"> | + | <li><a href="#modeling">Modeling</a></li> |
<li> | <li> | ||
<a href="#vocclassification">VOC Classification</a> | <a href="#vocclassification">VOC Classification</a> |
Revision as of 05:59, 1 November 2017
Modeling
VOC Classification
Overview
The VOC device is designed to judge whether the tobacco is heathy or gets infected. Since this is an inquiry experiment, algorithms in data analysis are widely use in our modeling. We do data preprocessing, data analysis, and algorithm optimization on the data collected by VOC device. Finally, we use Logistic regression and detect the infected tobacco with 91% confidence.
Data preprocessing
First we defragment the raw input data, and reorganize them into a matrix. 10 VOC factors are served as features, and the status(heathy or infected) is served as tag to be predicted.
Then we analysis the data using box plot and discover that most data are normal, but some records are singular, whose box plot are show as folowing:
We remove those records with singular value, and the data left obey normal distribution:
Data analysis
Our target is to create a model and predict tobacco's status according to 10 input features. This is a classic two classification problem, and there are several algrithm to solve it. The sampling algorithm is cross validation and the scoring policy we apply is ridit test.
Decision Tree
First we use decision tree based on information theory. ID3 decision tree is used to reduce the most information gain, and CART tree is used to reduce the GINI index. The performance of these two algorithm is almost the same. R = 0.83
MLP
The second algorithm we apply is Multi-Layer Perception, also called neural network. In this model, we use more than 100 neurons in each layer and the activation function is relu.
The result of MLP is much better than decision tree.R = 0.89
Leaner Model
Although the performance of MLP has been good enough, it's difficult to extract konwledge learn by algorithm, the interpretability is weak. Why don't we try a simple model with high interpretability? First we try LDA algorithm to compress the 10dimensions data into 2 dimensions.
We define as within-class scatter matrix
We define as between-class scatter matrix
The result of LDA algorithm is as following and :
This result prove the data are linear separable, then we choose logistics regression algorithm.
We difine
Then we can apply maximum likelihood method algorithm to estimate the paramaters.
The result is as following:
Algorithm optimization
From the result of logistics regression, factor C and I and etc. are with less important weight, these factors maybe disturb the classifaction. We try to reduce unimportant factors and simplify the model.
Finally, we reserve 4 factors with which we can predict the tobacco in 91% confidence and also reduce the VOC device.
Summary
In this model, we try different algorithm to abttain a robust, interpretable, and accurate solution to predict whether the tobacco is infected only according to 4 features in 91% confidence. Since there are 6 VOC sensors are meaningless in this model, we the device can also be simplified by reduce them.