Posts

Day 31: Presentation day

Today I presented everything I did over the summer. I felt that all of the presentations went great and I am very grateful to RIT as well as my mentors for this amazing experience. Here is my presentation .

Day 30: Final changes to my presentation.

After coming in late due to a soccer practice I spent the morning updating my presentation based on changes that were previously suggested. After that later in the day I did a test presentation in front of kLab. I had some minor changes to make after that but the presentation is feeling much more polished. More importantly I feel confident to do the final presentation tomorrow.

Day 29: Presentation test runs

I spent the morning going through my presentation and fixing any errors I saw. After I was satisfied with my presentation I practiced it in front of Tyler and Kushal. Later in the day all of the interns presented their projects. Hudson and Emerald presented on their document restoration shoeing some impressive results on some very old documents. Anoop and Emma presented on how their hockey analytics system worked. It showed some very promising results and their method of determine where a player was on the ice using only 4 reference points was very interesting. Tommorow I plan to add the finishing touches to my presentation.

Day 27-28

I missed both of these days due to soccer starting up but I worked on my presentation from home.

Day 26: Polishing my presentation

While I was waiting for my experiments to run on the server I spent the day presenting in front of various members of kLab. I got some very good advice from Dr. Kanan in the morning which I used to update my presentation. Later in the day with the help of  Tyler, Dr. Kemker and Kushal I was able to get a presentation that I was happy with. I plan to update the presentation with the results from the experiments I ran.

Day 25: Running my liflelong VQA tests

I spent this morning working on my presentation. I tried to make my presentation more polished and explain computer vision in a concise way. After that I began making my lifelong programs ready to run on the server. When I tried to run the programs on the imac I am using it crashed so I needed something with more memory. After working with Tyler to convert my numpy code to Pytorch it was ready to run on the server. Pytorch is a library that runs large array calculations much quicker than numpy. I hope to extract data from my trials in order to evaluate their effectiveness.

Day 24: Working on my final presentation

I spent the majority of my day today working on my final presentation. I addressed some problems with my outline mainly the way I was over complicating things. Some of the topics of my presentation are difficult to explain but not as difficult to use. One example of this is neural networks. I was trying to go to in depth on how a neural network functions but all I really had to describe was the general use of them. I also added lots of visuals to my presentation in order to make it more interesting. I also made some minor changes to my code in an attempt to optimize it but its overall function stayed the same.

Day 23: Testing the VQA dataset on the nearest neighbor classifier.

By arranging the data from the VQA data set in a way that its distance could be computed I was able to use the VQA data set on my nearest neighbor classifier.  In order to use the VQA data I had to change it from sentence and answers into vectors. I did this by assigning a specific index to each unique word and then placing the string of indexes into a vector. As a result I was able to calculate the distance between the vectors and then plot them on a nearest neighbor classifier. Tomorrow I plan to test the varying accuracy of the data on different lifelong learning algorithms.

Day 22: Implementing new lifelong learning models

Today I implemented a reservoir sampling algorithm as well as a queue nearest neighbor program. The reservoir algorithm functions similarly to the incremental nearest neighbor program i implemented on Friday. The only difference is that it only holds on to a certain amount of data points per class and when new data points are added it removes an existing point at random. This is an effective way to update your prediction function and it uses less memory than the standard nearest neighbor function. The other program I implemented was the queue nearest neighbor program. This is similar to the reservoir program. The thing queue does differently is that it removes the oldest data point for a specific class when new data points are added. This is also an effective way to reduce memory usage. Tomorrow I plan to combine the VQA data set and these classifiers in order to test the effectiveness of lifelong learning on VQA.

Day 21: Implementing a lifelong learning model

Today I began working on the other half of my project which is lifelong learning. Lifelong learning allows a network to improve itself continually without forgetting old data. This is useful because retraining an entire neural network takes lots of time and computational power. The lifelong model I implemented is called incremental nearest neighbor. Nearest neighbor stores all of your points in a coordinate grid and it classifies a new item by checking which known object is closest. Incremental nearest neighbor adds every new data point it classifies to the grid hopefully improving the accuracy of the model as it does. Next week I will continue to work on lifelong models as well as using VQA data on them.

Day 20: Evaluating the accuracy of a VQA model

Today I created an evaluation function for my VQA model. Every loop over the data set I would print the average loss and the overall accuracy. Loss measure the incorrectness of a functions guess. Lower loss is good higher is bad. My function trended toward lower loss as it continued to train on the dataset. I was getting an accuracy of around 30% which is fairly good considering I was training the model on questions that had no associated images. In the future I plan to combine the image data with the question data.

Day 19: VQA model success

In the morning I tried debugging my VQA model. The error code was somewhat cryptic and it was frustrating trying to figure out the cause of it. With the help of Kushal I was able to locate the source of my error and continue working. When I was passing in data to the GRU I was not checking the batch size correctly causing the program to crash. Despite this setback by lunchtime I was able to get my VQA model to make predictions on questions. I have not formatted the output or run the model on test data but I am glad that the model is finally working. After lunch I traced through all of the code and rewrote and commented any part that was confusing to me. Tomorrow I plan to make a testing function that is able to evaluate the accuracy of the model.

Day 18: Continuing on a VQA model

Today I continued to work on my VQA model. I improved my helper methods that kept track of indexing of my questions. I also successfully implemented a method that would pad the data. Padding the data is replacing unknown characters with <UNK> and making sure all the sentences have the same number of words. If a sentence is too long it gets truncated after the max number of words. If it is too short a <PAD> token is added in order to keep the length consistent. It is important to have consistent lengths in order to vectorize the data. Tomorrow I plan to have the model successful make predictions.

Day 17: Working on a VQA model

Today started with a meeting about everyones presentation outlines. All the interns ran though their plan for the presentation. I felt everyone did a great job but I realized I had a way to go after I struggled to concisely explain some of the things I planned to present.  After the meeting I continued to create my own VQA program. I struggled in the morning to implement most of the programs. After some help from Kushal I was able to implement a function that could successfully accept the data as input and then manipulate it into a vector. I plan to try and get a model to make predictions on the data tomorrow.

Day 16: Building my own sentiment analysis program

I spent this morning creating my own sentiment analysis program using some example code. By going through the program line by line I was able to for the most part determine what was going on. After that Kushal walked me through some VQA code. VQA stands for visual question answering and it combines natural language processing (NLP) and computer vision. Using VQA you can have a model answer questions about images.  I had to load in some .json files which was slightly difficult but I managed to figure it out . These files contained over 250,000 question answers to questions based on images also found in the dataset. Tomorrow I plan to try implementing VQA code on the questions without their images to see what kind of accuracy I can achieve.

Day 15: Continuing sentiment analysis

Today I continued to look into how a sentiment analyst algorithm works. I found that the algorithm utilized a Gated Recurrent Unit (GRU) in order to classify the data it was given. A GRU has an update gate and a reset gate. The reset gate chooses how much of the old data to forget and an update gate decides how to add in the new data. This is important in sentiment analysis because a sentence must be analyzed as a whole not piece by piece. It needs to be analyzed as a whole because it is hard to tell if a sentence is positive or negative if you forget the previous word you fed in. By the end of the day I had gained a decent understanding of  the VQA basics.

Day 14: Sentiment Analysis

Sentiment analysis is determining the emotion of the writer using only a string of characters. For humans this is very easy but this is a daunting task for a computer. One thing a computer does to deconstruct a sentence is turn it into a vector. Based on weights give to each specific word a sentence can be represented by a list of numbers. These numbers can more easily be analyzed by a computer. Surprisingly interpreting sentences as vectors is an effective tool for computers. Today i looked over code that implemented a VQA algorithm that performed sentiment analysis.The program looked at a dataset of tweets that were labeled as positive or negative. After training in the data the program was able to identify new sentences as positive or negative with surprisingly good accuracy. In the future I plan to implement my own VQA algorithm.

Day 13: Continuing VQA

Today I continued what I had started yesterday. I ran into some trouble with installing spacy a natural language processing library. Natural language processing is a term used to describe computer analysis of human languages. After finally figuring out how to install all of the packages I needed I was ready to start experimenting with some VQA code. Using some sample code from an online blog  I was able to explore how VQA uses recurrent neural networks(RNN) in order to analyze sentences. The rest of my day was spent going line by line through the code and googling anything I did not understand. I gained a very basic understanding of how a RNN is able to retain data it has already processed and why this is useful in VQA.

Day 12: Learning VQA basics

Image
I spent most of today learning about VQA and sentiment evaluation. VQA stands for Visual Question Answering, and it practice it can provide simple answers based on an image. A VQA algorithm utilizes a RNN to evaluate the data it is given. A RNN is a recurrent neural network which uses data it previously passed through a function as input for the next function. This allows a sentence to be represented as a one dimensional vector. Once the sentence is changed into a vector it can be analyzed using sentiment evaluation. Sentiment evaluation takes the most important parts of the sentence and tries to determine if the sentence has a negative or positive view. Source: http://visualqa.org

Day 11: Network success and an interesting lecture

Image
I started today debugging my code for my neural network. After a healthy amount of googling and some perseverance I was able to roughly train and evaluate my model. The performance was subpar but hopefully I will be able to improve that next week. When that was over I went to the free pizza lunch provided for all of the REU summer research students and I then attended a lecture on visual perception. Although this was not very related to my project I still found it to be a valuable use of my time. It was extremely mind-blowing to realize that our eyes can only see details in a very small field of vision. Our peripheral vision is a lot worse than I previously thought. One of the coolest visual demos was these two tables shown below. Believe it or not the tabletops are exactly the same size and shape. Human visual perception is fascinating and I plan to continue attending the lectures throughout the summer. Source:  http://www.optical-illusionist.com/illusions/table-size-ill...