Montana is among the states that have recently required safeguarding brain data collected by devices outside of medical settings. That includes headphones, earbuds, and other wearable consumer products that aim to improve sleep, focus, and aging by measuring electrical activity and sending the data to an app on users’ phones.