Live data from Hacker News

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

blog.francoismaillet.com

31–40 of 48 posts

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

#31
post #20

This is really awesome. I'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'm using a little web scraper to pull from nhl.com to get the data, however, sometimes it's quite out of sync with the actual game (streaming or live tv). Usually about 30 seconds to a minute delay. The best part is when I…

I'd love to get your code for that if you're willing to share. I have my hue lights set up and synced with the ESPN app in IFTTT but that triggers for every game event not just goals. Would love to get it set up with something that will work a bit better.

The model is really specific to the station and commentator. I've trained it on games from a local Montreal station. I tried the other local station with the same model and the it detected no goals at all. So to make it work on any other station, we'd need to rebuild a dataset from scratch.

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

#32

Earlier quoted context omitted.

It's really about the comentator's yell, not the goal horn. So as far as he's excited for Habs goals and not too excited for the other team's goals, it works fine.

You watch the French commentary, I presume.

Yup, the current model is trained on the TVA sports broadcast

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

#33

Very cool. Would a Closed Caption feed be superior?

Not a bad idea. However it would probably be hard to make the difference between goals for and against your team without analyzing a lot of what's said prior to a goal.

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

#34

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've taken to see this project through to the end.

lol well it does go off erroneously sometimes... statistically speaking once every 4 games. BUT... I do have the big USB button ready to cancel the light show and goal song. Something I did not mention in the blog post is that it stops the goal song by playing the Fail Trombone sound (https://www.youtube.com/watch?v=iMpXAknykeg) when you use the USB button to cancel light show. Yes really disheartening, but the one time it happened it made the whole thing pretty funny actually :)

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

#35

Was playing the goal song through home audio system triggered too? How (or is it Mac's audio piped through speakers)? Great idea btw

Mac Mini is hooked up to speakers and TV and it plays the goal song. I set the volume of the media player so that it's just right with the game broadcast so everything sounds good together.

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

#39

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've taken to see this project through to the end.

lol well it does go off erroneously sometimes... statistically speaking once every 4 games. BUT ... I do have the big USB button ready to cancel the light show and goal song. Something I did not mention in the blog post is that it stops the goal song by playing the Fail Trombone sound ( https://www.youtube.com/watch?v=iMpXAknykeg ) when you use the USB button to cancel light show. Yes really disheartening, but the on…

Nice work, and great mood lightening sound :)

Maybe it would be more accurate to detect when the siren light behind the goal goes off if it's always viewable on screen.

Post reply on HN