Hacking Darts, part two
SAS data scientists Joran, Véronique, Rik, Rens, Jaimy, and Peter during the hackathon

Hacking Darts, part two

The first part of this post concluded with “recognizing the exact position of the darts in the board is rather problematic”. What I didn’t write (for obvious reasons ;-)) is that the approach we took ended up in having a misclassification rate of about 93%. Not something to brag about or show at events…. Fortunately we had the luxury of additional time, plus support from SAS Marketing and Facilities to set up a more permanent development environment. Another fortunate event was the availability of Rik de Ruiter who, together with Jaimy van Dijk, was able to develop an improved version of the solution that led to the reverse outcome. In this case that means a correct classification of about 95% of darts thrown. Wait…. From a 93% misclassification rate (just a little better than a random guess) to only 5%? That’s quite an achievement, so how did they do this?

The first step was to sit down with the team and evaluate the project results of the hackathon. We quickly decided to abandon the ‘classic’ approach of taking pictures, label them and train a neural network to correctly classify new events. Then we started to think about what we were actually trying to achieve, which is determining the correct score based on camera input. We also realized that a dartboard has fixed dimensions (a 34 centimeters diameter divided into 63 sections). This means that it should be possible to calibrate the camera in such a way that there’s always a correct identification of which section is being hit. Or, better stated, which pixel belongs to which section on the board.

In the pictures above you can see how the red and black segments are being identified by the program; the same is done for the white and green segments. This leads to a board description in mathematical terms where every pixel is now part of an identified section. The rest is easy then, right? Well, not so fast… There’s still the challenge of figuring out where the dart hits the board, and of course you want to be able to throw three darts in a row, and have the correct score for each of them. The first step to solve this puzzle is image substraction. With each turn, an empty dart board is stored as a baseline. Then, when a dart is thrown, the image changes (which is detected automatically). By substracting the empty board image from the new one, you end up with just the dart. The second step is process that image using SAS Viya to clean it up and figure out where the tip of the dart is. Finally, when the location of that pixel is found, it can be mapped to the correct section and a score can be shown. Well, not just shown: the computer will tell you the score, and after three darts also reads out the total of the turn. In the animation below you can see the entire flow:

Although the results right now are good enough for fun and demo’s, it’s not perfect yet. And to be frank, I don’t think 100% accuracy is even possible with this setup. Things like lighting conditions, shades, dart angles, overlapping darts on the image or slight vibrations all have a negative effect on determining the correct score. Even for humans it’s often hard to see from a distance where the dart has landed. But unlike camera’s, we can walk up to the board and take a closer look. One thing we could do for instance to improve our solution is adding more cameras. Or, of course, make the dartboard smart enough to catch the darts at the right position regardless of where they’re aimed at :-) But, until then, I don’t think dart referees will be out of a job anytime soon.

To be continued!


Erik Zwierenberg

Gepassioneerde veranderaar, maker en inspirator. Robotbouwer en kustzeiler in mijn vrije uurtjes.

6 年

https://youtu.be/MHTizZ_XcUM problem solved;)

Marcel van Overveld

Account Director at Gielissen Interiors, Crafting Memorable Experiences

6 年

Got to love #datascience and even better, I get to throw darts during work #SAS #innovation #viya

要查看或添加评论,请登录

Jos van Dongen的更多文章

  • Hacking Darts, part three

    Hacking Darts, part three

    Four years ago the very first SAS Benelux summer hackathon took place in Huizen where we worked on the initial…

    2 条评论
  • Calling all (aspiring) Data Scientists!

    Calling all (aspiring) Data Scientists!

    One of the coolest things in my role at SAS is introducing the power of data, visualization and analytics to the next…

    2 条评论
  • The ‘Easy’ button for Machine Learning Systems

    The ‘Easy’ button for Machine Learning Systems

    One of my colleagues pointed out a blog series to me that promises to describe a machine learning (ML) project from…

  • Verkiezingen: wat kunnen we op AI gebied verwachten van de nieuwe Tweede Kamer?

    Verkiezingen: wat kunnen we op AI gebied verwachten van de nieuwe Tweede Kamer?

    Het zal weinigen ontgaan zijn: vandaag zijn er weer verkiezingen. Een mooi moment om eens te kijken wat we kunnen…

    7 条评论
  • 30 Years in Tech

    30 Years in Tech

    This year marks three decades as a professional in the field of data & analytics, which seems a valid reason to reflect…

    13 条评论
  • Geeks in the Wild

    Geeks in the Wild

    When we look at the description of ‘geek’ on Wikipedia, it says “The word geek is a slang term originally used to…

    1 条评论
  • Legal doping for your AI model training

    Legal doping for your AI model training

    Deep Learning, computer games and bitcoin mining have one thing in common: they all benefit from a beefy GPU in your…

    1 条评论
  • Dutch Data Science, part 9: Zilveren Kruis

    Dutch Data Science, part 9: Zilveren Kruis

    The Dutch healthcare system is a special one: insurance for citizens is not optional but mandatory. You'll even get a…

    2 条评论
  • Dutch Data Science, part 8: Dutch Tax Authority Benefits

    Dutch Data Science, part 8: Dutch Tax Authority Benefits

    A famous quote says "Nothing is certain, except death and taxes". Well, taxes may be certain, but there's definitely…

  • The Current State and Future of Artificial Intelligence, 2018 edition

    The Current State and Future of Artificial Intelligence, 2018 edition

    Last week the AI brains took over the “Westergasfabriek” event centre in Amsterdam for the second installment of the…

社区洞察

其他会员也浏览了