Jonas Degrave Blog of Jonas Degrave. Read about my (side) projects. https://317070.github.io/ Thu, 10 Mar 2022 11:12:08 +0000 Thu, 10 Mar 2022 11:12:08 +0000 Jekyll v3.9.0 Journal: PLXtrum - realtime machine learning for predicting note onset <iframe width="560" height="315" src="https://www.youtube.com/embed/lIWzZeIgHIE" frameborder="0" allowfullscreen=""></iframe> <p>This system detects in real time when the note is coming by using a piezo and accelerometer on the plectrum. In this demonstration, we play noise between the prediction and the actual onset of the note to show you how far ahead we knew the next note was coming. The controller was optimized to predict 50ms ahead. The prediction is done with reservoir computing for the sensor fusion (also known as echo state networks).</p> <p>In order to have everything running in realtime on the Axoloti board, the weight matrices had to be kept sparse, posing additional constraints on the system. After all it had to predict an onset happening in 50ms on a microcontroller. The computations to come to that conclusion therefore need to be fast as well, otherwise you will need to predict even sooner as you lose time computing. Evenmore, everything had to be done on the 168MHz STM32F427 microcontroller.</p> <div class="image"> <img src="https://0110.be/files/photos/429/axoloti_wbg_banner.png" alt="The Axoloti board" /> <div class="text-center">The Axoloti board</div> </div> <p>Paper available here: http://dx.doi.org/10.1080/09298215.2017.1288747</p> <p>Patent pending</p> Sat, 28 Jan 2017 18:00:00 +0000 https://317070.github.io/plxtrum/ https://317070.github.io/plxtrum/ Competition: 489th on Facebook hackercup <p>Facebook’s <a href="https://www.facebook.com/hackercup/">hackercup</a> just ended. It is the first time I competed, and I made it to through the qualifications and round 1 into round 2. I unfortunately got stuck on the second question with an algorithm which was not fast enough. I still ended in the top 500, so I got a facebook hackercup T-shirt!</p> Sat, 21 Jan 2017 23:00:00 +0000 https://317070.github.io/hackercup/ https://317070.github.io/hackercup/ Research: Backpropagation through camera <p>I finally implemented the backpropagation through a camera.</p> <p>We have optimized a controller for the pendulum-cart system, by backpropagating through the physics, vision and controller. By treating the whole system as a differentiable function, we could update the controller parameters, and have it solve this problem. In only 2420 update steps (or trials in the simulator), it managed to completely learn the vision and the control task, and solve the pendulum-cart system. I hope <a href="https://openreview.net/forum?id=SyEiHNKxx">the paper for ICLR</a> will be accepted soon, such that I can publish the code and see what other people will do with it.</p> <p>Next step: evaluating this method on the real setup!</p> <blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">Control the pendulum-cart setup with only visual perception. Optimized deep controller with backpropagation through time, camera and physics <a href="https://t.co/6gu7GHpQBv">pic.twitter.com/6gu7GHpQBv</a></p>&mdash; 317070 (@317070) <a href="https://twitter.com/317070/status/821062814798331905">January 16, 2017</a></blockquote> <script async="" src="//platform.twitter.com/widgets.js" charset="utf-8"></script> Mon, 16 Jan 2017 00:00:00 +0000 https://317070.github.io/backpropagation/ https://317070.github.io/backpropagation/ Research: poster on Deep Reinforcement Learning Workshop at NIPS <div class="image"> <img src="/img/posters/nips-poster.pdf.png" alt="The poster presented at NIPS" /> <div class="text-center">The poster presented at NIPS</div> </div> Fri, 09 Dec 2016 00:00:00 +0000 https://317070.github.io/NIPS/ https://317070.github.io/NIPS/ Speaker: Critical Utopias - Cultural Discourse in the Digital Age <p>Artificial intelligence might replace taxi-drivers in the future, but how will the future of cultural journalists look like in light of future technological revolutions?</p> <p>The Finnish Cultural Institute for the Benelux invited me <a href="http://www.finncult.be/critical-utopias-designmuseum-helsinki/?lang=en">to give a talk</a> in the design musem in Helsinki on the topic of a future of art and art critics, in an age of rapid evolution of technology.</p> <p>Unfortunately, the video failed, so there is nothing to show on this blog.</p> Sat, 03 Dec 2016 00:00:00 +0000 https://317070.github.io/helsinki/ https://317070.github.io/helsinki/ Paper: A Differentiable Physics Engine for Deep Learning in Robotics <h2 id="abstract">Abstract:</h2> <p>One of the most important fields in robotics is the optimization of controllers. Currently, robots are often treated as a black box in this optimization process, which is the reason why derivative-free optimization methods such as evolutionary algorithms or reinforcement learning are omnipresent. When gradient-based methods are used, models are kept small or rely on finite difference approximations for the Jacobian. This method quickly grows expensive with increasing numbers of parameters, such as found in deep learning. We propose an implementation of a modern physics engine, which can differentiate control parameters. This engine is implemented for both CPU and GPU. Firstly, this paper shows how such an engine speeds up the optimization process, even for small problems. Furthermore, it explains why this is an alternative approach to deep Q-learning, for using deep learning in robotics. Finally, we argue that this is a big step for deep learning in robotics, as it opens up new possibilities to optimize robots, both in hardware and software.</p> <p>You may find <a href="https://openreview.net/forum?id=SyEiHNKxx">the paper here</a> where it has been submitted for ICLR 2017.</p> <blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">Gait found by gradient descent through physics. Only 500 model evaluations required, starting from standstill. <a href="https://t.co/oAuH0vOjCB">https://t.co/oAuH0vOjCB</a> <a href="https://t.co/ld9iovX31P">pic.twitter.com/ld9iovX31P</a></p>&mdash; 317070 (@317070) <a href="https://twitter.com/317070/status/794678121568014336">November 4, 2016</a></blockquote> <script async="" src="//platform.twitter.com/widgets.js" charset="utf-8"></script> Thu, 03 Nov 2016 00:00:00 +0000 https://317070.github.io/engine/ https://317070.github.io/engine/ Award: Best poster award at Benelearn conference <div class="image"> <img src="/img/posters/benelearn-poster.pdf.png" alt="The poster presented at Benelearn" /> <div class="text-center">The poster presented at Benelearn</div> </div> <div class="image"> <img src="/img/posters/benelearn-award.pdf.png" alt="The award" /> <div class="text-center">The award</div> </div> Tue, 13 Sep 2016 00:00:00 +0000 https://317070.github.io/benelearn/ https://317070.github.io/benelearn/ Activism: Pirate Party polls at 1.8% <div class="image"> <img src="/img/post-poll.jpg" alt="Polling results according to the RTBF" /> <div class="text-center">Polling results according to the RTBF</div> </div> <p>I have been the co-president of Pirate Party Belgium for a couple of years, and have been been on lists for elections twice. So I am following them closely and am glad that they are holding on. It is still a long way to go for the 5% required for a first seat.</p> Fri, 09 Sep 2016 00:00:00 +0000 https://317070.github.io/poll/ https://317070.github.io/poll/ Speaker: the 3rd Data Science Ghent Meetup - Jonas Degrave <p>I explained how to use deep learning effectively, what is needed in order to get your models to work. These are the steps, which I often find missing by a lot of people.</p> <p>A video of the presentation underneath:</p> <iframe width="560" height="315" src="https://www.youtube.com/embed/F2qbEMuN07E" frameborder="0" allowfullscreen=""></iframe> <p>Edit: I received this mail afterwards.</p> <blockquote> <p>Hoi Jonas,</p> <p>Ik wou je graag nog even bedanken voor de inspirerende presentatie van vandaag tijdens de data science meetup. Het was veruit de beste presentatie die ik me kan herinneren en ik heb enkele concrete ideeën opgedaan om toe te passen in de Kaggle competitie waar ik momenteel deel aan neem. Na 5 weken sta ik er trouwens eerste en mocht dat zo blijven is dat grotendeels te danken aan jouw schitterende vertoning, bedankt!</p> <p>Groeten,</p> <p>Tom</p> </blockquote> <p>Edit2: <a href="https://ttvand.github.io/about/">Apparently, Tom of the mail above came second in another Kaggle competition and is working at Google Deepmind now.</a> Congratulations!</p> Thu, 16 Jun 2016 00:00:00 +0000 https://317070.github.io/deep/ https://317070.github.io/deep/ Activism: Camping on roof of an arms factory <div class="image"> <img src="/img/roof/roof5.jpg" alt="" /> <div class="text-center"></div> </div> <div class="image"> <img src="/img/roof/roof3.jpg" alt="" /> <div class="text-center"></div> </div> <div class="image"> <img src="/img/roof/roof1.jpg" alt="" /> <div class="text-center"></div> </div> <div class="image"> <img src="/img/roof/roof2.jpg" alt="" /> <div class="text-center"></div> </div> <div class="image"> <img src="/img/roof/roof6.jpg" alt="" /> <div class="text-center"></div> </div> <div class="image"> <img src="/img/roof/roof7.jpg" alt="" /> <div class="text-center"></div> </div> <div class="image"> <img src="/img/roof/roof4.jpg" alt="" /> <div class="text-center"></div> </div> Fri, 20 May 2016 00:00:00 +0000 https://317070.github.io/roof/ https://317070.github.io/roof/