Live data from Hacker News

AI generated music to improve focus, relaxation and sleep

brain.fm

271–280 of 307 posts

Re: AI generated music to improve focus, relaxation and sleep

#271

Earlier quoted context omitted.

I guess you can't talk much about the AI as it's proprietary? It sounds pretty interesting though. What harpsichord concertos did you feed it? Is every session that is created unique? So you are not listening to the same thing each time?

It is proprietary I guess, but I don't really mind talking about it :) I did a talk recently at Northwestern (The Garage) and they were interested, so I spilled the beans. I'd like to get that talk up actually. I used the Bach's harpsichord concertos - Allegro/Presto/etc, since we're doing focus in that case. It's actually the 2nd most popular theme on the site! I made that one for myself to be honest - I grew up wit…

That is pretty cool.

Some people here have questioned the science behind the claims of focus and relaxation etc, but even without that as a product feature what you're making is pretty awesome.

I can imagine a product where you can combine a bunch of composers and genres and it'll just write songs for you to listen to :)

I'm signing up just to listen to the music your thing makes!

P.S. I played a few Bach pieces while learning Piano, he's one of my favourite composers!

Re: AI generated music to improve focus, relaxation and sleep

#272
post #175

Adam from Brain.fm here! Happy to answer any questions. :) I've been doing this stuff for a while and I love talking about it. I've contacted Giovanni, our lead neuroscientist, so hopefully he'll be able to get on soon as well. I'm a regular of HN and it's wild to see something of mine up here.

Hi Could you explain, technically, how and by what you think the brain waves are being manipulated? Thanks

Hey, great question, though I'm not sure if you want the audio or neurological explanation, or both :)

I'm also not sure how technical you want or how much you know already, so apologies if I'm too technical, and apologies if I'm not technical enough. I'll just try to start from the beginning and lay everything out from there, as briefly as I can. Tragically, however, I was born without brevity.

1) Brain.fm: The Brain's Perspective

When a sound enters your ear, it's converted from a pressure wave to an electrical impulse, which you can measure in the brain as a kind of spike on an EEG, or a cortical response. If the sound plays again, another spike occurs (although typically smaller). If a sound keeps being repeated in a fast and precise enough way, the cortical responses start to resemble rhythms already in the brain.

For example, if you tap your finger rapidly on the table, you might be tapping at 10hz (10 taps a second). 10hz is also a very dominant in the brain. If you could tap your finger precisely enough, and for a long enough time, what you would see in the brain (if you know what you're doing) is new activity at 10hz. This is called the Frequency Following Response, and it's well established. Check it out on pubmed, etc, if you're interested.

Now if you keep tapping for even longer - and again, if you're super precise about it - your existing brainwave patterns near that same frequency will start to align themselves towards the phase and frequency of your tapping.

BTW sorry about the delay in responding to you. Believe it or not, in between some meetings I was searching for a good article this whole time to show you. Here it is: http://www.pnas.org/content/111/41/14935.full

This effect is called lots of things, including, confusingly, the frequency-following response by some in the private sector. It's most often known by the public as brainwave entrainment, but that's rarely in the literature. In the literature you see all kinds of words for it: neural entrainment, auditory driving, auditory entrainment, steady state responses of various types... The level of confusion over what to call this thing is only eclipsed by the number of names made up for methods to induce it - all referring to the same thing: rhythmic auditory stimuli. No, better not call it that, in this paper its gonna be sinusoidal amplitude modulation, click trains, acoustic iterance, isochronous auditory stimuli, temporal sound... So, it gets a bit crazy when you try to search for this stuff (so we'll be adding even more to our bibliography/research library soon. Let me know if you haven't seen that yet).

For the sake of this post let's just call it Entrainment.

Something that's also being figured out is how to define when exactly Frequency Following ends and Entrainment begins. Some say it doesn't matter, others say it's when the phase lines up, or if the new rhythm persists even when the external stimuli is removed, as in the article I linked you to. There's also ways to approximate the root source of a neural rhythm (external or internal), if you also feed the stimuli into the analysis at the same exact time.

Anyway, to sum it up, what we're doing is creating a rhythmic stimuli that resembles frequencies already in your brain. We play that stimuli long and consistently enough to actually register a pretty solid response on an EEG.

Of course, it gets more complicated than that. This is the brain we're talking about. The waveform of the audio modulations matters (brainwaves aren't perfect sine waves, after all), the way the frequency is changed over time matters. When do you take a break from the stimulation? When do you tone it down, or turn it up? And how do you adapt to people on an individual level? How do you measure it? Audio processing can change dramatically in the brain depending on the content of the audio!

But at any rate, changing the brainwaves of a person like this can also change their mental state. I'm not saying it takes over the brain. It just.. nudges it a bit in the right direction.

So that's the basic outline from that perspective. Hope it makes sense, of course if you have any questions don't hesitate.

2) Brain.fm: The Music Perspective

From an audio's point of view, we're doing a number of things to subtly create that necessary rhythmic stimulus.

a) We're modulating every piece of audio. It's these modulations that create a rapid rhythmic stimulus. If you listen carefully to Brain.fm, you may hear a fluttering sound. It's more obvious in some parts over others. We're using filtering techniques to target some frequency bands over others (and by frequency here, I'm now talking about the frequencies of pitch, not brainwaves, where a cello would be low and a violin would be high in frequency). Doing this, we can single out instruments, modulate parts of a nature soundscape but not others, or disguise the modulations as vibrator, tremolo, or the natural vibrations of instruments, strings or the LFOs of electronic music..

b) We align everything else in the session to the brain-frequency we're trying to hit, so there is no interference from a stray drum beat or a snapping twig. Not only is there no interference, but the entire audio "scene" is being actively used to guide your brain toward the goal state.

The 3D audio also factors into this a lot, because the mind pays attention to motion, and that helps elliminate habituation. But that's another story.

Hope this helped explain it. Completely understand if you need clarification, or an entirely new answer hah!

:)

- Adam from Brain.fm

Re: AI generated music to improve focus, relaxation and sleep

#273

I believe taste/preference as the differentiator is missing. The "intense + focus" music on brain.fm puts me to sleep. My coding music is ASOT weekly series, it's usually couple of hours of house and trance music where I get immersed into coding zone and once finished i take a 10-15min break, repeat. When I concentrate I don't hear anything that's when I know I'm in the zone. It's my preference and it's surely differ…

This is actually great feedback. I can definitely create some trance, house, etc. There is techno/electronic music already in there, but only at around 120bpm, and probably won't be as bass-intensive or dramatic as you're used to.

Junaid my co-founder shares a lot of your taste, and so does my sister, so I have a few willing guinea pigs :)

- Adam from Brian.fm

Re: AI generated music to improve focus, relaxation and sleep

#274

Earlier quoted context omitted.

It's just a standard TOS, man. Here's the Terms Of Service for Yale: I AM RESPONSIBLE FOR REVIEWING ANY WRITTEN CONFIRMATION STATEMENTS PROVIDED TO ME (ON PAPER OR IN ELECTRONIC FORM) REGARDING ANY INSTRUCTIONS, CHOICES, OR REQUESTS THAT I MAKE THROUGH THIS WEB SITE. I AM RESPONSIBLE FOR REVIEWING FOR INACCURACIES ALL OF THE INFORMATION TRANSMITTED TO ME. IF THERE ARE INACCURACIES, I AM RESPONSIBLE FOR CORRECTING THE…

Nah I mean I just read it and it basically gives the impression that there's no merit to the claims and any and all results are subject to personal interpretation. Or, to put it in more simple terms pending peer reviewed, refereed scientific findings, Brain.Fm is the HeadOn of audio.

OK fair enough, I'll see if we can get a better one then.

Honest to god we just used a standard one we got over a decade ago, and customized it with our name. We might have even gotten it off of legal zoom or something.

- The HRV/(stress/anxiety) study is peer-reviewed (and independent, we had no part in it).

- All our other papers are pending publication.

- Giovanni's work on acoustic stimulation is peer reviewed, and from Northwestern. Again, we had no part in that.

- The meta-analysis one of our previous neuroscientists made is also peer reviewed.

- Dr. Olmstead's paper is peer reviewed, so's the Fatigue one we have up there, and all the other ones in our bibliography: https://www.brain.fm/pdfs/ResearchLibrary.pdf

- Hell, we're even having our statistical user analysis peer reviewed, the one we have up (before we got popular) and the new one we're making now.

Tryin' our best here :)

- Adam

Re: AI generated music to improve focus, relaxation and sleep

#275
post #267

Earlier quoted context omitted.

Glad you enjoyed it! Not to add to your expenses, but definitely invest in some "sleep phones." I like the Took's brand, and it's the cheapest. You can lay completely on your side and the wafer-thin speakers don't bother you at all. Pretty decent sound quality too. Sleep-phones are unfortunately essential to get the most out of the session, especially as an insomniac. (to be clear, I have no affiliation with any head…

As I'm sure you're aware, restless leg is an odd "itch" that can only be "scratched" by movement (for lack of any good words to describe it). The movement isn't compulsory, but the discomfort becomes overwhelming without it. I suspect the sensation is there all the time and not just at night, but there are enough other stimuli during the day to drown it out. The brain.fm music seems to have been effective for the sam…

Great, so glad it's helping! Wait till you get the headphones... a whole new level. Keep me updated. I had Aaron get in touch with you but please feel free to send me any updates directly. Just my first name and brain.fm

Don't stop exercising though ;)

- Adam

Re: AI generated music to improve focus, relaxation and sleep

#276

I still can't find anything better to program to than Nujabes. I'm going to give this a genuine shot, but Jun Seba really left his mark on me for life. I find myself listening to his albums and songs at least twice a day. I think it's because of his repetitive beats, smooth strings and soft instrumentation. There's a reason there are 10 hour 'homework' edits on youtube for almost all of his songs. Counting Stars: htt…

So much inspiration in this thread. I mentioned this further down the page, but it's a hobby of mine to ask what music people work to.

This is a goldmine for me.

Thanks a lot for posting, and for trying it out. Would love to hear your feedback, or anyone else's from this thread. Email me any time. Just my first name and brain.fm.

Next week I go back to working on more music themes. We hired a new guy a month ago and he's ready to take over the app, so, this is perfect timing.

Let's see what me and the AI-guy can come up with. :)

- Adam from Brain.fm

Re: AI generated music to improve focus, relaxation and sleep

#277
post #270

Earlier quoted context omitted.

Thanks for the feedback, much appreciated! There is discussion about extending the trial, and I agree completely. And we're almost done with both the iPhone app and the Android app! Stay tuned :) Good point about Spotify. I could have sworn I pay $10 for it. Around $8 for Netflix, unless I'm mistaken. At any rate, I try to stay out of the business processes that go into making those decisions, for my own sanity, with…

I also want to discourage the use of "sessions." Lost one because I didn't change the time limit. Lost one because my computer/browser restarted. I'm wary of clicking things like 'skip' now, despite knowing that I could just incognito it. A thirty or even seven day trial would be much better!

Completely agree! We're on it. :)

Definitely don't want you to be wary of the skip button. That's an important feature. You should love the music you're playing.

So here's a pro-tip: as an anonymous user, play the session for just a little bit without moving the slider more than a minute or two. Click skip within that time period and you're golden.

The skip does have more leeway if you just register. It's free! Plus, as an anonymous user you're not going to get near as much variety. Every time you come back in incognito you'll get the same stuff. We have so many people doing this, but I don't know how they stand it! Truly though, I do not care if people go incognito.

But we just kinda need to know a bit about you to make sure you get the right sessions, instead of generic one-size-fits-all sessions. Yeah, I know how that sounds, as if I'm just dying to get your email or something, right? Use a fake one, who cares. I only need the survey information for one reason: Everyone's truly is - to quote Tyler Durden - a beautiful and unique snowflake ;)

It gets better and better afterwards and the more you use it.

Enjoy :)

- Adam from Brain.fm

Re: AI generated music to improve focus, relaxation and sleep

#278

Earlier quoted context omitted.

Thanks for the feedback, much appreciated! There is discussion about extending the trial, and I agree completely. And we're almost done with both the iPhone app and the Android app! Stay tuned :) Good point about Spotify. I could have sworn I pay $10 for it. Around $8 for Netflix, unless I'm mistaken. At any rate, I try to stay out of the business processes that go into making those decisions, for my own sanity, with…

Spotify and Netflix pricing varies by region. If you're in the US, you likely to pay $10 for it but the person you're responding to is in Poland and pays 19,99 PLN which is $5 USD.

Ah, thanks for clarifying. Was wondering if I was going crazy.

Re: AI generated music to improve focus, relaxation and sleep

#279

Earlier quoted context omitted.

Sure! Happy to explain it. Although I have to say I'm not sure what textbooks are saying these days. When I talk to programmers right out of college sometimes there's a bit of confusion as they talk about patterns I know, but using different names. I grew up programming on an 8088. :) In a podcast called College Info Geek and recently in I did a talk at Northwestern (The Garage) and I called what I'm doing "Emergent"…

That's fine and makes sense. I wouldn't call it AI though. The marketing is just too overhyped and in-your-face for my taste. It reminds me of the startup called "The Grid", which claimed they will build a website-creating AI. It's an often misused term in marketing. Another cool mystery term is precisely "emergent". Okay I'm not trying to be harsh on you, and I know that marketing is all about exaggeration and wooin…

I didn't make up the term "emergent." AFAIK it's an established type of AI.

http://chetansurpur.com/blog/2013/08/emergent-intelligence.h...

https://en.wikipedia.org/wiki/Emergence#Computer_AI

We're not using that term anywhere in the marketing either.

This is just me talking here man. I'm not a marketer, or even really a good businessman. I did this for 13 years and we're just now taking off. I do music and programming, that's it. :)

But I do think Junaid did a great job on the site. Yeah there's more work to do, always is.

Tough crowd here at HN.

- Adam

Re: AI generated music to improve focus, relaxation and sleep

#280

Earlier quoted context omitted.

It is proprietary I guess, but I don't really mind talking about it :) I did a talk recently at Northwestern (The Garage) and they were interested, so I spilled the beans. I'd like to get that talk up actually. I used the Bach's harpsichord concertos - Allegro/Presto/etc, since we're doing focus in that case. It's actually the 2nd most popular theme on the site! I made that one for myself to be honest - I grew up wit…

That is pretty cool. Some people here have questioned the science behind the claims of focus and relaxation etc, but even without that as a product feature what you're making is pretty awesome. I can imagine a product where you can combine a bunch of composers and genres and it'll just write songs for you to listen to :) I'm signing up just to listen to the music your thing makes! P.S. I played a few Bach pieces whil…

Hey, thanks! I appreciate that. I played classical guitar as a kid - still do. And Bach is definitely a favorite, though one of the most difficult. You just know he composed those lute pieces on his damned organ, where he could use 2 hands and 2 feet ;)

Yeah, I have to say it has not been a great experience here at HN. But, maybe I'll win them over yet. After 13 years, we're finally taking off, and the first thing I did was pour everything in the science, so we'll be there soon.

Well, enjoy Brain.fm! And feel free to drop me a line with an update any time.

- Adam

Post reply on HN