TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NHL goal celebration hack: real-time machine learning and hue light show

258 pointsby cotsogabout 10 years ago

17 comments

ddcarnageabout 10 years ago
I&#x27;m the guy who did this; really happy this is trending on HN!<p>Hope everyone enjoys the game tonight! :D
评论 #9424795 未加载
评论 #9423841 未加载
评论 #9424004 未加载
评论 #9423914 未加载
评论 #9425841 未加载
iwafflesabout 10 years ago
This is really awesome. I&#x27;ve managed to do something similar, but for the Washington Capitals. When the game starts the lights change to the color of the home team, and when they score the flash. I&#x27;m using a little web scraper to pull from nhl.com to get the data, however, sometimes it&#x27;s quite out of sync with the actual game (streaming or live tv). Usually about 30 seconds to a minute delay.<p>The best part is when I forget that they are playing and the lights start flashing randomly. Always scares guests :)
评论 #9423868 未加载
评论 #9424062 未加载
SG-about 10 years ago
I know this post isn&#x27;t really about the hockey part and more about the ML part, but I think it would be more practical to analyze and maybe use the Budweiser Redlight API if possible (I haven&#x27;t looked into it yet or have one) to get almost instant goal reporting for your team of choice.<p>I have seen it in action and it&#x27;s like ~2 seconds off from a live feed.<p><a href="http:&#x2F;&#x2F;www.budweiser.ca&#x2F;redlight&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.budweiser.ca&#x2F;redlight&#x2F;</a><p>Really nice post and I&#x27;ll be using it implement a few things around the house (like trying to monitor kids crying, etc).
评论 #9424601 未加载
评论 #9425313 未加载
simark1about 10 years ago
I am impressed that it&#x27;s able to work for both when the Habs are at home and on the road. The only similar thing would be the commentator&#x27;s reaction. The ambient sound is reversed (cheers and horns when the Sens score). I would think you would have to train the algorithm separately for both cases, and tell it whether the current game is at home or not.<p>Anyway, this is very good work, the light setup is very clean. I hope that the (your?) system will get a lot of &quot;true positives&quot; during tonight&#x27;s game :).
评论 #9424680 未加载
pragoneabout 10 years ago
You might also have good luck by analyzing the chat data from hockeystreams - just look for when a few dozen people write something along the lines of &quot;GOOOOOOOOAAAAAAAALLLLLLLLLL&quot;, and take it from there.<p>Granted, not as much fun as setting up the whole system you did, but another option.
评论 #9424182 未加载
评论 #9424564 未加载
hellskitchendevabout 10 years ago
This is great. I use a simple IFTTT recipe to blink my hue&#x27;s at the start of the Yankees games but the ESPN api hook is always off by 10 minutes or more.
comrhabout 10 years ago
Nerdy Habs fans: combining obsessive love of tech with obsessive love for hockey.<p>All the goal horns are on youtube, maybe you could create a training set with that?
评论 #9424324 未加载
dquailabout 10 years ago
This is awesome. Well done. Wondering if there was any real time speech to text that could be trained. Seems like these commentators all have their canned lines when the team scores. &quot;He scores&quot;, &quot;Goal&quot;, etc. etc. Seems like you might be able to fairly accurately capture that and add the sentence as an attribute? Well done. My Oilers need something like this for every time we win the Draft Lottery! McDavid!!!!!!
decisivenessabout 10 years ago
This is a cool idea, but the light show going off erroneously in my own home for the opposing team would be disheartening to any die hard fan. Any chance of this happening, let alone once every 4 games, would be unacceptable. And the pain of knowing I rigged it up myself would make it that much worse. I applaud OP for the wherewithal it must&#x27;ve taken to see this project through to the end.
评论 #9424754 未加载
chaosmachineabout 10 years ago
It seems like analyzing the video would be much easier, as you could basically just OCR the on-screen scoreboard.
评论 #9423418 未加载
dheeraabout 10 years ago
Nice!<p>I was playing with the Belleds lights (friend&#x27;s recent Kickstarter; similar to Hue but somewhat cheaper), wrote a Python API for it, which worked great, but then I hit a mental block in coming up with something actually cool to do with RGB lights.<p>I hooked it up to a text sentiment analyzer but this just wasn&#x27;t all that cool. <a href="https:&#x2F;&#x2F;github.com&#x2F;dheera&#x2F;python-belleds&#x2F;blob&#x2F;master&#x2F;sample-sentiment.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dheera&#x2F;python-belleds&#x2F;blob&#x2F;master&#x2F;sample-...</a><p>Hooking it up to a sports match though, that&#x27;s definitely cool and useful.
tantalorabout 10 years ago
What happens when a goal is scored by the other team?
评论 #9424682 未加载
评论 #9424937 未加载
ErikAugustabout 10 years ago
Very cool. Would a Closed Caption feed be superior?
评论 #9424746 未加载
jtkmeabout 10 years ago
As a fan of both ML and hockey, I love this! Can&#x27;t wait to beat you again this year (let&#x27;s go Rangers)<p>You can probably get some improved performance using hidden markov models to place of the voting scheme.
hyperbovineabout 10 years ago
&gt; Being able to see the patterns with the naked eye is very encouraging in terms of being able to train a model to detect it.<p>Would that that were true!
robinhowlettabout 10 years ago
Was playing the goal song through home audio system triggered too? How (or is it Mac&#x27;s audio piped through speakers)? Great idea btw
评论 #9424764 未加载
circaabout 10 years ago
Very cool. Lets go Islanders!!!!