<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeff Lai on Medium]]></title>
        <description><![CDATA[Stories by Jeff Lai on Medium]]></description>
        <link>https://medium.com/@jefflai108?source=rss-35d030421993------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TJbweva3o_ggvVh8ksZryw.jpeg</url>
            <title>Stories by Jeff Lai on Medium</title>
            <link>https://medium.com/@jefflai108?source=rss-35d030421993------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:46:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jefflai108/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Top Research Papers (2016–2019)]]></title>
            <link>https://medium.com/@jefflai108/my-top-research-papers-2016-2019-279b7c89d9e8?source=rss-35d030421993------2</link>
            <guid isPermaLink="false">https://medium.com/p/279b7c89d9e8</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[review]]></category>
            <category><![CDATA[speech]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[Jeff Lai]]></dc:creator>
            <pubDate>Mon, 18 Feb 2019 04:30:21 GMT</pubDate>
            <atom:updated>2019-02-18T04:30:21.396Z</atom:updated>
            <content:encoded><![CDATA[<p>Having had some research experiences and given that I just finished undergrad, I thought it would be nice to share some of my top papers I have read. Most paper I read (and I guess the nature of my work) is based on neural networks applied for speech and language.</p><h4>Attention Is All You Need (<a href="https://arxiv.org/abs/1706.03762">https://arxiv.org/abs/1706.03762</a>)</h4><p>It took me a couple months (after reading some NMT paper) to understand what’s going on and why there is so much hype for the Transformer. Transformer has already been applied to other areas such as ASR(<a href="https://arxiv.org/pdf/1804.08050.pdf">https://arxiv.org/pdf/1804.08050.pdf</a>), GAN (<a href="https://arxiv.org/abs/1805.08318">https://arxiv.org/abs/1805.08318</a>), language modeling (<a href="https://arxiv.org/abs/1901.02860">https://arxiv.org/abs/1901.02860</a>, <a href="https://arxiv.org/abs/1810.04805">https://arxiv.org/abs/1810.04805</a>), etc.</p><h4>Representation Learning with Contrastive Predictive Coding (<a href="https://arxiv.org/abs/1807.03748">https://arxiv.org/abs/1807.03748</a>)</h4><p>The paper was quite challenging for me since I’m not familiar with density estimation techniques, but I like its unsupervised learning framework a lot and my senior thesis is based upon it. There are other recent extensions (<a href="https://arxiv.org/abs/1812.00271">https://arxiv.org/abs/1812.00271</a>, <a href="https://arxiv.org/abs/1901.08810">https://arxiv.org/abs/1901.08810</a>).</p><h4>Speaker Verification Using Adapted Gaussian Mixture Models (<a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.117.338&amp;rep=rep1&amp;type=pdf">http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.117.338&amp;rep=rep1&amp;type=pdf</a>)</h4><p>This is one of the most highly cited speech paper, and the GMM-UBM model paves the way for later developments in speaker recognition, such as the i-vectors (<a href="https://ieeexplore.ieee.org/document/5545402">https://ieeexplore.ieee.org/document/5545402</a>). I read this paper two years ago, and I still think it is a very good introductory paper for newbies in speech.</p><h4>Exploring the Encoding Layer and Loss Function in End-to-End Speaker and Language Recognition System (<a href="https://arxiv.org/abs/1804.05160">https://arxiv.org/abs/1804.05160</a>)</h4><p>The paper (LDE) is very well written and the idea is quite novel for speaker recognition (although it hasn’t gotten major attention yet). x-vectors (<a href="https://www.danielpovey.com/files/2018_icassp_xvectors.pdf">https://www.danielpovey.com/files/2018_icassp_xvectors.pdf</a>) has demonstrated the effectiveness of DNN, and LDE presented a truly end-to-end approach for speaker tasks.</p><h4>Neural Machine Translation by Jointly Learning to Align and Translate (<a href="https://arxiv.org/abs/1409.0473">https://arxiv.org/abs/1409.0473</a>)</h4><p>This paper shows that end-to-end models have the potential to out perform statistical approaches. It has a profound impact in NMT and ASR.</p><h4>Deep Residual Learning for Image Recognition (<a href="https://arxiv.org/abs/1512.03385">https://arxiv.org/abs/1512.03385</a>)</h4><p>This is probably the most basic deep learning paper, but ResNet has been the backbone of many neural network architectures, especially for object detection (<a href="https://arxiv.org/abs/1506.01497">https://arxiv.org/abs/1506.01497</a>, <a href="https://arxiv.org/abs/1612.03144">https://arxiv.org/abs/1612.03144</a>) and image recognition (<a href="https://arxiv.org/abs/1608.06993">https://arxiv.org/abs/1608.06993</a>, <a href="https://arxiv.org/abs/1709.01507">https://arxiv.org/abs/1709.01507</a>).</p><h4>Generative Adversarial Nets (https://papers.nips.cc/paper/5423-generative-adversarial-nets.pdf)</h4><p>The original GAN paper is one of the first research paper I read. GAN and adversarial training got a lot of hype these two years, and their variants, such as the CycleGAN (<a href="https://arxiv.org/abs/1703.10593">https://arxiv.org/abs/1703.10593</a>), have some interesting applications for speech.</p><h4>Deep Predictive Coding Networks for Video Prediction and Unsupervised Learning (<a href="https://arxiv.org/abs/1605.08104">https://arxiv.org/abs/1605.08104</a>)</h4><p>I discovered the paper through David Cox’s neuroscience/deep learning talk (<a href="https://www.youtube.com/watch?v=P0yVuoATjzs">https://www.youtube.com/watch?v=P0yVuoATjzs</a>). The paper is easy to read, but it has a well-established connection to some neuroscience/cognitive science theories, which is quite interesting.</p><h4>Honorable Mention:</h4><ol><li>Transfer Learning from Speaker Verification to Multispeaker Text-To-Speech Synthesis (<a href="https://arxiv.org/abs/1806.04558">https://arxiv.org/abs/1806.04558</a>)</li><li>Unsupervised Learning of Disentangled and Interpretable Representations from Sequential Data (<a href="https://arxiv.org/abs/1709.07902">https://arxiv.org/abs/1709.07902</a>)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=279b7c89d9e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some thoughts on Google’s Outrageously Large Network]]></title>
            <link>https://medium.com/@jefflai108/some-thoughts-on-googles-outrageously-large-network-9dc186afb614?source=rss-35d030421993------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dc186afb614</guid>
            <category><![CDATA[machine-translation]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Jeff Lai]]></dc:creator>
            <pubDate>Mon, 02 Oct 2017 05:17:27 GMT</pubDate>
            <atom:updated>2017-10-02T05:17:27.630Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Why is this paper important?</strong></blockquote><p>Well, this is actually a very old deep learning paper published in Jan 2017. The reason I’m reading it is because I’m leading a paper discussion next week. I heard people in the industry calls it the future of deep learning, so I supposed it is worth looking into what absurd network structure they came up with this time.</p><blockquote><strong>My first impression:</strong></blockquote><p>As its title suggest, it is a big neural network and boy, it is tremendous. It has over 4 billion parameters and trained on a 100 billion corpus (you could probably figure out where Google gets all these data from ;)</p><p>They spent all their energy talking about parallel programming and computation efficiency, which is very trivial for me right now (hey I’m not CS major). But it does make sense in a DL problem setting and if the goal here if to brute-force the task.</p><p>I could see what they attempted to accomplish: 1) Realize conditional computation: Learn a network that distributes computation resources to different tasks 2) Justify another deep learning domination in fields other than CV.</p><blockquote><strong>Network Structure (NO MATH)</strong></blockquote><p>One problem in DL is, as the model capacity increases, the data and computation resources required increase proportionally. It would be ideal if the same amount of data can be used to train a much more complex model with much more neurons and connections. This is called conditional computation. Turns out, some previous work has been done, but no one had actual implementations of it. So Google takes the matter into its own hand.</p><p>The core idea is to turn off large chunks of the network during training, so only part of the network is active and therefore less examples are needed per step. Below is the network infrastructure proposed. Mixture of Components (MoE) layer consist of multiple “experts” that each of which is ideally trained for a different purpose (or specializes on a small subspace of the entire problem space), and a gating mechanism that selects which combination of experts to “work together” (trained together). The gating network and the experts network are simple feedforward DNNs. One can think of this as a huge network that assigns a number of its hundreds of subnetworks to tackle the input task every time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GAnG2fKoV_u83tAnMZ7kvQ.png" /></figure><p>MoE is stacked between LSTM layer in this literature and employed for machine translation.</p><blockquote><strong>Is this helpful?</strong></blockquote><p>No. Well, I guess if you work at a big tech company and have access to the same level of computation power (and data!!), sure. I skimmed through the paper and found the technical part bland, as it is primarily dealing with parallel programming in which I have no knowledge/interest in. There is one detail, however, that I am still investigating in. In NLP, random variables are discrete. This will post an issue during backprop, since the algorithm operates on continuous function. They added Gaussian noise as a smooth estimator to solve this issue. Furthermore, the same problem occurs in GAN. For example, Gumbel-Softmax could be used as another smooth estimator for GAN. In RL, similar problems rooted from reward functions while training the agent (I think). Apparently there is a connection between adding noise during training and Bayesian statistics?</p><p>Anyway, I learnt nothing about NLP after reading this paper. I have had some exposure to NLP this semester, and I recommend looking into one of my professor <a href="http://tallinzen.net/">Tal Linzen</a>’s NLP/cognition research, for example <a href="http://tallinzen.net/media/papers/linzen_dupoux_goldberg_2016_tacl.pdf">this one</a>. It is refreshing to learn some syntax/linguistics other than pure computation model and perhaps his research is a sharp contrast to this Google’s paper.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dc186afb614" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualizing Deep Learning with Plotly]]></title>
            <link>https://medium.com/@jefflai108/visualizing-deep-learning-with-plotly-8f2500e24b27?source=rss-35d030421993------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f2500e24b27</guid>
            <category><![CDATA[parsing]]></category>
            <category><![CDATA[plotly]]></category>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Jeff Lai]]></dc:creator>
            <pubDate>Thu, 29 Jun 2017 20:23:47 GMT</pubDate>
            <atom:updated>2017-06-29T20:23:47.191Z</atom:updated>
            <content:encoded><![CDATA[<p>Having been working with <a href="https://keras.io/">keras</a> for a while, I think it may be fun to do some simple visualization with my model’s result. By visualization, I merely mean the accuracy and loss (sorry for the misleading title). However, I only had experience with <a href="https://matplotlib.org/">matplotlib</a> before, and I want an interactive graph instead. Since I mainly(only) code in Python, my coworker recommends <a href="https://plot.ly/">plotly</a> to me. I checked out their website projects and I decided to give it a shot.</p><p>Below is an example of what my model’s architecture looks like. Keras has a function to display the model summary, and it comes in handy for checking input-output dimensions (especially for CNN). The example model below took me about 17 hours to train with GPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*_3fW4QrtV6VYTeUPmZ3xgw.png" /></figure><p>I pip the training output to a <a href="https://github.com/jefflai108/scale/blob/master/vad/result/LSTM_model_4_result_text.rtf">textfile</a>, then parse it and write it to excel with this <a href="https://github.com/jefflai108/scale/blob/master/vad/result/text_parse.py">function</a>. I am using plotly’s cloud service instead of plotting it offline for simplicity. Therefore, I just need to upload the excel file and tweak some parameters to make it pretty. Below are three results visualized from 2 different models. Overall, plotly is pretty, interactive, and I would definitely use it again :)</p><p><a href="https://plot.ly/~jefflai108/1/">https://plot.ly/~jefflai108/1/</a></p><p><a href="https://plot.ly/~jefflai108/3/">https://plot.ly/~jefflai108/3/</a></p><p><a href="https://plot.ly/~jefflai108/5/">https://plot.ly/~jefflai108/5/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f2500e24b27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Channel compensation for SVM speaker recognition]]></title>
            <link>https://medium.com/@jefflai108/channel-compensation-for-svm-speaker-recognition-3588f777ca78?source=rss-35d030421993------2</link>
            <guid isPermaLink="false">https://medium.com/p/3588f777ca78</guid>
            <category><![CDATA[channel-compensation]]></category>
            <category><![CDATA[projection-mapping]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[svm]]></category>
            <category><![CDATA[speech-recognition]]></category>
            <dc:creator><![CDATA[Jeff Lai]]></dc:creator>
            <pubDate>Wed, 31 May 2017 17:00:24 GMT</pubDate>
            <atom:updated>2017-05-31T17:00:24.954Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://www.isca-speech.org/archive_open/archive_papers/odyssey_04/ody4_055.pdf">http://www.isca-speech.org/archive_open/archive_papers/odyssey_04/ody4_055.pdf</a></p><blockquote><strong>Overview</strong></blockquote><p>This paper talks about the effect of channel variation in speaker recognition. Channel (e.g. means of recording) variation has posed a major challenge in system performance. Fig. 1 visualizes the problem colorfully. This paper focuses on adaptive <a href="https://nlp.stanford.edu/IR-book/html/htmledition/support-vector-machines-the-linearly-separable-case-1.html">SVM</a> model, a popular classifier back in the days before the dominance of deep learning, to compensate channel variation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*KWz46w0SDfziQoTtA25Fbg.png" /><figcaption><strong>Model is evaluated on </strong><a href="https://www.nist.gov/"><strong>NIST</strong></a><strong> SRE data set.</strong></figcaption></figure><blockquote><strong>SVM</strong></blockquote><p>SVM separates data into two-classes with a hyperplane. To train a M class classifier (separate data into M classes), we can simply adopt “one v.s. M-1” strategy. One limitation that comes with SVM is its linearity: the hyperplane is linear. In other words, it is limited to data set that is only linearly seperable. Sadly, we live in a non-linear world, and real-life data is not always linear. However, it is possible to transform a low-dimension nonlinear feature space to a high-dimension linear feature space, where SVM can do its job.</p><p>But computation is expensive! We linearize the problem, but we want to avoid burning out all the computation power. A way to get around this is the kernel trick, a mapping function K(<em>x</em>,<em>y</em>). <a href="https://www.quora.com/What-is-the-kernel-trick">Quora</a> explains this perfectly. While solving the SVM, we only need to compute the dot product (distance) between two data points in a high-dimension space. The kernel function K(<em>x,y</em>) allows us to get the same result in the low-dimension feature space with fewer computation power used.</p><p>In formula (1), <em>x</em> is input data, <em>xi</em> is support vector (data that affects the hyperplane), the rest are parameters obtained through training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*X0ZwMkTsduerA8dKTXiymg.png" /></figure><blockquote><strong>KPCA</strong></blockquote><p>KPCA = kernel trick + PCA. When dealing with high-dimensional data, we would like to see the space where constructions take place. In our case, we want to see where the kernel function K(<em>x,y</em>) maps the data to. PCA is a dimension reduction method that returns principal axes (eigenvectors). For example, PCA reduces the dimension of input space from 10 to 2, and allows us to plot the high-dimension space in a 2D cartesian coordinate. Combine together, KPCA provides a simple method for viewing aspects of the high-dimensional space where the SVM classifier operates.</p><blockquote><strong>GMM</strong></blockquote><p>According to several SRE (speech recognition) experts, the most popular model evolutes from GMM, JFA (joint factor analysis), i-vector to DNN (deep neural network). <a href="http://www.ics.uci.edu/~smyth/courses/cs274/notes/EMnotes.pdf">Gaussian Mixture Model</a> is a math model. It decomposes a random distribution to K <a href="http://www.math.uah.edu/stat/special/MultiNormal.html">multivariate Gaussian distributions</a> by the EM algorithm.</p><p>While I am still studying GMM and getting used to Bayesian statistics, it is easy to imagine the luxury of having Gaussian distribution in a complex optimization problem. In Bayesian statistics, we assume data comes from a certain probability distribution (prior probability), such as Beta distribution, Dirichlet distribution, or normal distribution. The advantage of assuming data as a Gaussian is that there is only 2 parameters: mean and covariance. GMM can model a random distribution as K Gaussians, which makes our life easier.</p><p>Another general usage of GMM is feature extraction. Say we are given a continuous random variable (dataset) and we desire to discretize it to some features. GMM can accomplish this by clustering data into clusters. Indeed, we love GMM.</p><blockquote><strong>Channel Compensation: Projection</strong></blockquote><p>The goal is to minimize the effect of different channels, namely channel compensation. An idea is to “project” out the channel compensation effect, with a projection matrix P, after applying the kernel function K(<em>x,y</em>). We can design/train the projection matrix P such that the channel compensation effect “collapes” after the linear transformation. Recall from Linear Algebra, this is implying that P has nullity equals to 1, or its null space is consists of only 1 basis. With the assumption made, P can be constructed as below. Vector <em>w</em> is the only solution to Px = {0}, and hence null(P) is 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/1*iZ_KeWXG_E-wjfsR_zyKPw.png" /></figure><p>So, the big idea is that we have a kernel matrix K that maps the low-dimension feature space to high-dimension space Y, and a projection matrix P that projects Y to another space Z with one less dimension (channel effect). This gives us the modified kernel K’. While reading this part of the paper, I was bewildered with the author’s decision of finding a projection matrix instead of a new kernel function. It turns out that there is only a limited number of kernel method, and finding a new one is indeed a much harder problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*_NKNOiEChmAjxqpLFNfYmg.png" /></figure><p>To train the projection matrix P, we need an objective (loss) function. As usual, a straightforward loss function is the Euclidean distance at the projection space, defined as followed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*hjkfvWHkvaeGXP2zkymtPg.png" /></figure><p>We wish to find the optimal P such that the average distance between two channels is minimized over the training dataset. The solution for the optimization problem is given by the largest eigenvector of equation 7, a generalized eigenvalue problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*Os4IN9ING5SSOq5oSOogfA.png" /></figure><p>We do not need to know how to solve the (generalized) eigenvalue problem since most libraries have implemented for us, and it’s not a research problem anyway. Another example where generalized eigenvalue problem occurred is <a href="https://en.wikipedia.org/wiki/Linear_discriminant_analysis">LDA (Linear Discriminant Analysis)</a>. In LDA, we wish to maximize the between-class covariance and minimize the within-class covariance. This can be achieved through solving the generalized eigenvalue equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*-lplHERyKRClb9jw0_gN7g.png" /></figure><blockquote><strong>Some Modifications</strong></blockquote><p>We can modify the projection matrix P with null(P) &gt; 1. Hence, the null space of P is comprised of m basis, and according to the rank-nullity theorem, P is of rank n-m. We can think of this as throwing away m features that contribute the most to channel noise. The solution to the optimization problem is then find the largest m eigenvectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/121/1*kJNcE4a907nMHRH8MRL9nA.png" /></figure><p>Another modification is on the generalized eigenvalue equation. In equation 7, we attempt to minimize the channel differences. However, increasing intra-channel difference can also increase the classifier performace. This is opposite to LDA, where we try to maximize between-class covariance and minimize within-class covariance. This can be done by adding a negative term for speaker, as in equation 8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*IF_fS86Egv0V6kMkaH9w9w.png" /></figure><blockquote><strong>Experiment</strong></blockquote><p>Note that this is a speaker ID task. We want to classify data to either one of the two classes under different channels with SVM. We need to train: 1. channel compensation projection 2. SVM model.</p><p>Some restrictions and facts:</p><ol><li>Male speaker data from 2003 NIST SRE.</li><li>Kernel is text-independent generalized linear discriminant kernel.</li><li>Dimension of SVM expansion space is 9139.</li><li>2 channels: carbon button and electret.</li><li>Training data: 5600 utterances and 230 hours of speech.</li></ol><p>The result is visualized with the DET curve. The colored lines are SVM with channel compensation (rank 1, rank 2) and the solid line in the normal SVM approach. But how do we interpret the plot? And how does it differ from ROC?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*IcLcyX9Gp4uNt20K_sNm3A.png" /></figure><blockquote><strong>An intuitive view on DET, ROC, EER, AUC</strong></blockquote><p>DET (detection error rate) and ROC (receiver operating characteristics) are two common plots how data scientists visualize the effectiveness of their binary classification algorithms. The two axes for ROC and DET are false positive rate and false negative rate. These two are misclassification rates in a binary classification problem. For instance, classifying a boy as a girl.</p><p>DET differ from ROC only from its nonlinearity in two axes. In ROC, the axes are linear; axes are arranged in Gaussian for DET. The rationale is clear if one looks at the plots below. It is much easier to tell the difference between the curves with DET. But here comes another issue. How much difference exists between the curves (methods)? Human are subjective, so we want to quantitate such differences: EER and AUC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*DlZsjWErBvCHmRVIrlYz2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*JA8oMCR3WJqT-pwqo8s-ow.png" /><figcaption><strong>From Wikipedia</strong></figcaption></figure><p>EER (equal error rate) is the midpoint of the DET and ROC curve. It represents the crossing point of the two probability distribution (e.g. male and female speaker). However, EER only gives us information about a point (although very crucial) in the entire misclassification space. To look at the entire space, we integrate the area under the curve, or AUC.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3588f777ca78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Study of Feature Selection of Whale Vocalization]]></title>
            <link>https://medium.com/@jefflai108/a-study-of-feature-selection-of-whale-vocalization-4d06bad23677?source=rss-35d030421993------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d06bad23677</guid>
            <category><![CDATA[vocalizations]]></category>
            <category><![CDATA[laplacian-eigenmap]]></category>
            <category><![CDATA[weyl-transform]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[whales]]></category>
            <dc:creator><![CDATA[Jeff Lai]]></dc:creator>
            <pubDate>Sun, 28 May 2017 01:32:26 GMT</pubDate>
            <atom:updated>2017-05-28T01:32:26.891Z</atom:updated>
            <content:encoded><![CDATA[<p>These two IEEE paper from Duke University are recommended to me by Dr. <a href="http://www.math.jhu.edu/~jmurphy/">Murphy</a>, who was a visiting assistant professor at Duke. Both paper discuss feature selection techniques specifically for whale signals prior to classification. From my point of view, the first paper is more math-heavy, introducing four transformations related to Fourier tranform, while the second paper introduces four mappings for dimensionality reduction. These paper are for those who have some prior exposure to signal processing and linear algebra.</p><h3><strong>Whale vocalizations with Weyl Transform</strong></h3><p><a href="http://ieeexplore.ieee.org/document/7178074/">Classification of whale vocalizations using the Weyl transform - IEEE Xplore Document</a></p><p>This paper focuses on signal processing techniques, specifically the feature selection process, and does not have any discussion in machine learning methods. The authors propose an unique method to analyze a whale signal. Intuitively speaking, various signal analysis methods suit different kinds of signals. The subject matters in the discussion are right whale and humpback whale signals. To classify one from the other, the authors use the chirp-like signal, an intrinsic identity of marine mammals. To obtain such information, they propose Weyl Transform, which supposedly gives second-order information of a signal. Recall from physics, a second-order derivative of replacement vector x(t) gives us acceleration vector a(t). Put another way, it gives us a global view of the subject matter.</p><p>In section 2, the author briefly introduce MFCC and Chirplet transform. MFCC is an very established feature in SR (speech recognition). Chirplet is a niche method very specific for chirp-like signals (ignorable). Basically, these two methods extract coefficients from a signal and present essential information to the classifier. One motivation of proposing an alternative to MFCC is that MFCC only provides first-order frequency information. To understand MFCC, basically it projects STFT to a triangular filter before taking the DCT, which reduces dimensionality and retrieves only the real part (cosine part of Euler’s formula). The filter H(<em>k</em>,<em>m</em>) below manifests why MFCC is characterized by first-order frequency information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*bqSnvk4cZlI6OgOMZYjz-w.png" /></figure><p>Section 3 explains the source of data and rationale of selecting chirp-like singals as the feature. Section 4 mathematically deduces the feature selection process. The authors propose two feature sets out of the Weyl transform, modifying Feature Set I to get Feature Set II. I have some difficulties understanding the math in this section, yet from formula (4), it is clear that Weyl transform is built on top of Fourier Transform. In addition, Fig. 3 clarifies their intention. We can see that Feature Set I (c) and Feature Set II (d) attempt to attain the chirps from a signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*waaPpf-comi4saRPJw3MbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*DRqVQq6JM3uveCpyh77a1w.png" /></figure><p>Last section is classification result. The authors employ KNN as classifier, Hamming window for MFCC, and <a href="https://en.wikipedia.org/wiki/Receiver_operating_characteristic">ROC</a> (receiver operating characterisitc) curve to visualize classification results of 4 features. To interpret ROC curve, one needs to understand type I and type II error. Generally, depending on the axes, the closer the curves are to the upper-left or lower-right corners, the better the results are. From Fig. 4, Feature Set II outperforms Feature Set I and the others, and proves that Weyl transform is a good feature selector for Whale signals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*yoKf3OGe20k34-1J2RnsaA.png" /></figure><h3>Intrinsic Structure Study of Whale Vocalization</h3><p><a href="http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7761101">Intrinsic structure study of whale vocalizations - IEEE Xplore Document</a></p><p>Similar to the first paper, this paper also focuses on the feature selection process. It focuses on the dimension reduction techniques, in contrast to the mathematical transform in the first paper. This is reasonable since the whale siganl, as stated in both paper, is a polynomial-phase siganl. We naturally desire the number of coefficients to be as small yet respresentative as possible. The whole propose of the paper is to compare efficacies of nonlinear mapping to linear mapping, as in Fig. 1 below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*BAEABh7WjnXt1fa4h2ZPkA.png" /></figure><p><strong>PCA (section 2.1)</strong></p><p>PCA is perhaps the most popular dimension reduction technique. For those who have just taken Linear Algebra like me, it is not hard to understand its concept. In short, we compute the covariance matrix of the input matrix, and then compute the eigenvector of the covariance matrix. Eigenvector with the highest eigenvalue is the principle component of the data set. I found the following link a good read:</p><p><a href="http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf">http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf</a></p><p><strong>Multidimensional Scaling (section 2.2)</strong></p><p>The explanation of MDS is too succinct on the paper. MDS is a spatial rearrangement in such a way that, distances between objects indicates the similarities (dissimilarities) of the objects: similar object are represented by points that are close to each other, dissimilar objects by points that are far apart. To state the problem mathematically, given a pair-wise (Euclidean/non-Euclidean) distance matrix Dx of N points in k-dimension space, find a new set of N points in p-dimension space (p&lt;&lt;k) such that the new pair-wise distance matrix Dy is the best approximation of Dx. Below is the algorithm for classical multidimensional scaling:</p><ol><li>Set up distance matrix <strong>D</strong> with entries,</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*AC3NlieVEz6h_z_bsi4p-A.png" /></figure><p>2. Apply double <a href="https://en.wikipedia.org/wiki/Centering_matrix">centering</a> do D:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*IVzj6r6OOWjJ7_tWrBnI1A.png" /></figure><p>3. Find p principal components. Since B is symmetric, by spectral theorem, we can decompose it to a diagonal matrix. Multiplying square root of the first p eigenvalues with their corresponding eigenvectors,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*IV5SD6q760XxZ_QbyoA24w.png" /></figure><p>A good read with example of MDS: <a href="https://pdfs.semanticscholar.org/dbe6/5466b905b63cf67739d3b696d617ec101d00.pdf">https://pdfs.semanticscholar.org/dbe6/5466b905b63cf67739d3b696d617ec101d00.pdf</a></p><p>The problem with the above two methods is that the linearity identity fails to capture global information of the manifold learning problem (I think of manifold as geometric structure of the data). On the other hand, a nonlinear mapping has two obvious advantages. It captures local structures of the manifold and present a global view by connecting the local data information. Recall from Multivariable calculus, nonlinearity is a function that has order greater than 1.</p><p><strong>Laplacian Eigenmap (section 2.3)</strong></p><p>To understand the algorithm, one may need elementary knowledge in graph theory. Our starting point is to preserve local structure of the manifold. An idea is to visualize the manifold (data set) with an undirected adjacency weighted graph G (connected/disconnected). Each vertex is an object, while the edge represents similarities (dissimilarities) between objects (data). The graph is undirected because similarity between i and j equals similarity between j and i, and weighted for the degree of similarities. Surprisingly, the conversion is very logical (at least for me).</p><p>Now, we have restated the problem to mapping the graph <em>G </em>to an <em>m</em>-dimensional Euclidean space, so that connected points stay as close together as possible. The simplest objective function in the Euclidean space is the following formula,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*zEcKc9ClRUECmKnv1MLdEA.png" /></figure><p>where we penalize euclidean distances with their corresponding weight. Finding the argument minima is equivalent to finding the eigenvalue of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*fZVVxGMeYBuDMRo-67RIog.png" /></figure><p>(I don’t understand the optimization part). The word Laplacian comes from the <a href="https://en.wikipedia.org/wiki/Laplacian_matrix">Laplacian</a> matrix L = W(weight matrix) — D(degree matrix); the word Eigen originates from solving the optimization problem)</p><p>A rigorous proof of Laplacian Eigenmap: <a href="http://yeolab.weebly.com/uploads/2/5/5/0/25509700/belkin_laplacian_2003.pdf">http://yeolab.weebly.com/uploads/2/5/5/0/25509700/belkin_laplacian_2003.pdf</a></p><p><strong>ISOMAP (section 2.4)</strong></p><p>ISOMAP is a modification of MDS. Replace the Euclidean distance in MDS with the following,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsgMRsEdPMPSXf2p_1hlsQ.png" /></figure><p>Neighbors are motivated from <a href="https://en.wikipedia.org/wiki/K-nearest_neighbors_algorithm">K-NN</a> algorithm (I guess). Recall from data structures, to find the shortest path between two vetices, we can use <a href="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm">Dijkstra’s</a> algorithm. After constructing the distance matrix P, we decompose it to its Eigen (principal) components.</p><p>Fig. 4 gives a comparison of the four methods with Laplace Eigenmap having the best result under 3 different classifiers, and subsequently proves the author’s thesis that nonlinear mapping provides a better insight to whale vocalization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*scq_9Z7wrJ9NeGRmHeD3vA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d06bad23677" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Recap of Spring 2017 | 春季回顧]]></title>
            <link>https://medium.com/@jefflai108/a-recap-of-spring-2017-%E6%98%A5%E5%AD%A3%E5%9B%9E%E9%A1%A7-ddbcab6dc33b?source=rss-35d030421993------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddbcab6dc33b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[taiwan]]></category>
            <category><![CDATA[johns-hopkins-university]]></category>
            <dc:creator><![CDATA[Jeff Lai]]></dc:creator>
            <pubDate>Sun, 21 May 2017 22:13:05 GMT</pubDate>
            <atom:updated>2017-05-21T22:13:05.882Z</atom:updated>
            <content:encoded><![CDATA[<p>Inspired by a few friends of mine, I made a post of the technical stuff I did over the past semester for two reasons:</p><ol><li>An attempt to boost my <a href="http://mrjlai.weebly.com/">website</a> view counts.</li><li>Intrigues my future employer(s), perhaps.</li></ol><p>I will make posts bilingual and keep updating through Medium over the summer.</p><p>這個網站是美國蠻多人在用的部落格，版面漂亮簡潔，許多科技業的人會寫些學習的心路歷程，而且在個人行銷主義盛行的年代，偶而寫些有營養的東西增加曝光度在學界跟業界似乎是一種趨勢。下面三點總結我這學期學到的東西，暑假也會盡量找時間歸納我學到的東西。</p><h3>Statistics TA | 機率統計助教</h3><p>I worked as a teaching assistant for Dr. <a href="http://www.ams.jhu.edu/~prashant/">Prashant</a> this semester. I lead a statistics recital section every week, and my job consisted of writing homework/quiz solutions and delivering concepts clearly to students. It came to me at the very beginning that there is a distinct difference between getting A+ in class and understanding the depth of the materials enough to explain them to the others. For me, the best part of being a TA is to meet people and learn <a href="https://github.com/jefflai108/Prob_Stats_Review-">LATEX</a>, unexpectedly.</p><p>這學期當了一堂應用數學課的助教，原本擔心表達能力很差的我會講不出話來，因為高中時沒什麼這方面的訓練（考試制度下的悲哀），但不知道為什麼不怎麼緊張，跟學生處的蠻不錯的，大一到大四都有，第一次監考時還很興奮。只不過準備講課和學一個新程式語言來打教材花了很多時間，連帶影響自己的課業，所以下學期大概會轉當電腦科學的助教或乾脆辭掉好好做專題。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fHiEa5yfHpqbTRUr0d5URQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_09Sk91-SMMXkvuIZBMeQ.jpeg" /></figure><h3>Robotics | 機器人</h3><p>I took two <a href="https://en.wikipedia.org/wiki/Mechatronics">mechatronics</a> classes with Dr. <a href="https://engineering.jhu.edu/ece/faculty/rizk-charbel-g/">Rizk</a> during my Sophomore year. Although I strongly disagree with his approches to teaching a class without giving specific guidelines and his take on width over depth, I made friends who come from Mechanical Engineering and Robotics backgrounds. Projects I was involved in this semester include: Mobile Platform, Autonomous Tracking System, Simple Object Avoidance System, and <a href="https://github.com/jefflai108/Holed_Up">Autonomous</a> Emergency Responders. Overall, it was extremely frustrating, and I realized product design and hardware engineering are not my career interests, which brings up my last section — Speech and Language.</p><p>普遍上來說，亞洲的高中教育系統對實作課跟工程的重視跟美國相比少上許多，很多美國小孩上大學前就有不少實作經驗，這包括使用設計軟件，基礎電路知識，跟產品設計（這點台灣完全沒有）。大一時被學長找去做校園導覽機器人後，之後一年的時間做了大概五到十個機器人，如果去年跑來問我如何定義在大學裡成功，我大概會說同時做好很多不同的專案。大二上了一位教授一年的課，上課的宗旨就是教導如何做出客戶滿意的產品，即便客戶要求及不合理，教授就是要你做出來，導致我學期中對他的一些理念很不滿，但總結認識蠻多機械系跟產品設計蠻厲害的人。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFfl7YjoEQO_ufnv-67FeA.jpeg" /><figcaption><strong>Autonomous Tracking System</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yW6pxtYOTBT_geIqHIrMMw.jpeg" /><figcaption><strong>Simple Object Avoidance System</strong></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSLHTmXHP4wA%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSLHTmXHP4wA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSLHTmXHP4wA%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/abd16b7aa361ad703aa30c9e92081ca8/href">https://medium.com/media/abd16b7aa361ad703aa30c9e92081ca8/href</a></iframe><h3>Speech and Language | 語音處理和辨識</h3><p>AI (Artificial Intelligence) is the <a href="https://risnews.com/2017-buzzword-year-artificial-intelligence">buzzword</a> of 2017. However, for most ML (Machine Learning) researchers, AI and even ML are ambiguous terms since there are a considerable amount of research <a href="https://www.csail.mit.edu/research_groups">groups</a> under AI. In particular, I have developed a growing interest in speech and language over Sophomore year for its math models’ complexity and connections to linguistics. I am in Dr. <a href="https://www.clsp.jhu.edu/faculty/najim-dehak/">Dehak’s</a> speech lab under Johns hopkins <a href="https://www.clsp.jhu.edu/">CLSP</a>. I am constantly amazed by how knowledgable the Post-Docs (<a href="https://www.flickr.com/photos/jesusvillalba/with/16512442059/">Jesús</a>) and PhDs (<a href="http://myemacs.com/">Naxin</a>) are, and I got to meet researchers from Spain and France. The most fruitful reward is having exposure to data processing, visualization, and machine learning <a href="https://keras.io/">tools</a>.</p><p>當初會跟做語音的老闆完全是因為當時只有他收我，只不過大二上因為一度同時做七八個專案幾乎沒花時間在這個實驗室上，導致後來老闆對我很不滿，每次開會都威脅我要趕我走，所以學期初時下定決心要往這方面走，把其他計畫都推掉，學期中大概每個禮拜花30小時在學東西上，春假也完全待在實驗室，最後趕上學期末的專題發表。做專題有很大一部分是自學，不管是訊號與系統，數學和編程，讀懂Paper，總之還有很長一段路要走。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaFNw9swiK9EPR_skYwQig.jpeg" /><figcaption><strong>Visualization of a research project</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CiOdqFeH5Mt-unPB-mzT0g.jpeg" /><figcaption><strong>Dr. </strong><a href="http://www.math.jhu.edu/~jmurphy/"><strong>Murphy</strong></a><strong> — Math professor who surprisingly has similar research interest as I do.</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddbcab6dc33b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>