-

Brain Pics

-

This project measures how my brain secretly feels about random people.

-

First I downloaded 35 million Google Profiles
into an MYSQL database. This took me a month.

http://blog.cyberwar.nl/2011/05/google-profiles-exposes-millions-of.html

The database looks like this:

  ID profielid username gmaps linkphoto acode firstn lastn fulln nickname introtxt cooltxt selftxt alias1 alias2 prof location loc1 loc2 loc3 work1empl work1funct work1starttxt work1endtxt work1current work2empl work2funct work2starttxt work2endtxt work2current work3empl work3funct work3starttxt work3endtxt work3current edu1institute edu1study edu1starttxt edu1endtxt edu1current edu2institute edu2study edu2starttxt edu2endtxt edu2current edu3institute edu3study edu3starttxt edu3endtxt edu3current link1url link1title link2url link2title link3url link3title link4url link4title link5url link5title social
      2 117135902571938793602 RajPudota //maps-api-ssl.google.com/maps/api/staticmap?size=...   AMP3uWY-kFftmGAqObdzIZnI8aATGa20xWpV3g9RaWM0H1KEnA... Raj Pudota Raj Pudota Raj Pudota                                                                                 http://picasaweb.google.com/rajpudota Picasa Web Albums - rajpudota                  
      3 112006952710949332145 sianalouise //maps-api-ssl.google.com/maps/api/staticmap?size=...   AMP3uWbg_QR5nQE8NPAl3r2sLISJZLqtkkku6Zr8nIf12xaO-X... Siana Yancho Siana Yancho                                                                                   http://picasaweb.google.com/sianalouise Picasa Web Albums                  
      4 105382462492606983441 StojadinovicM74 //maps-api-ssl.google.com/maps/api/staticmap?size=... //lh5.googleusercontent.com/-Yt_BRT47JuE/AAAAAAAAA... AMP3uWbvFAAWH08mRxhrLbWTZKyAtkgTeL4fTJ7fx2OS_T42IH... Miroslav Stojadinovic Miroslav Stojadinovic Miroslav       mile   STUDIRAM I VOZAAC SAM ALEKSANDROVAC ALEKSANDROVAC     VASKE IMPORT STUDIRAM I VOZAAC SAM     1                     VISOKA POSLOVNA BEOGRAD       1                                          
      5 109299750146769054739   //maps-api-ssl.google.com/maps/api/staticmap?size=...   AMP3uWZT1rdVE2qumzTgzQ8sv5idYxyVa_Ri5jhJPIbqYF3wVz... coolwind cool coolwind cool Old mao                                                                                                      
      6 104555562341640123846   //maps-api-ssl.google.com/maps/api/staticmap?size=...   AMP3uWbWPk7MQQVFOE2s3miY4gxF5a-Klzh-SaotxcPWpu9t1P... yamada binbou yamada binbou                                                                                   http://picasaweb.google.com/104555562341640123846 Picasa ã?¦ã?§ã?? ã?¢ã?«ã??ã?                   
      7 112956845518767535694 rustam607 //maps-api-ssl.google.com/maps/api/staticmap?size=... //lh5.googleusercontent.com/-zRaBLytxSts/AAAAAAAAA... AMP3uWYqYMEGr4f8jaBOt6EraojuxeYv9zODVozozpdO5ndy-t... Roustam Zagidullin Roustam Zagidullin                                                                                   http://picasaweb.google.com/rustam607 Ð?еб-алÑ?бомÑ? Picasa                  

 

Then I hooked up a Teensy microcontroller to a
Mind Flex Toy EEG headset, mostly like in this project:


http://frontiernerds.com/brain-hack

The Teensy:

My Teensy microcontroller board fits nicely inside the case.
I had to Dremel out a little hole for the USB cable to plug into the headset.




The front 2 wires are power from the Teensy to replace the batteries, and the other is
connecting the serial out of the MindFlex to the serial in of the Teensy.

The Teensy is hot glued in place, and soldered to the MindFlex.
(That is, after making lots of crunchy crispy noises from being hot glued.)
A hole is also drilled in the casing allowing access to the USB port.


The Finished computer connected EEG mind reader.
(I wish I would have had the forthought to have the USB cable come out of the bottom
of the headband, instead of the top, but such is life.)


I had to modify the Arduino code for the Teensy:

#include <Brain.h>
HardwareSerial Uart = HardwareSerial();
   // Set up the brain parser, pass it the hardware serial object you want to listen on.
   Brain brain(Uart);

void setup() {
   // Start the hardware serial.
   Uart.begin(9600);
   Serial.begin(9600);
   pinMode(11, OUTPUT);
   digitalWrite(11, HIGH); 
   }
void loop() {
   // Expect packets about once per second.
   // The .readCSV() function returns a string (well, char*) listing the most recent brain data, in the following format:
   // "signal strength, attention, meditation, delta, theta, low alpha, high alpha, low beta, high beta, low gamma, high gamma" 
   if (brain.update()) {
   //Serial.println(brain.readErrors());
   Serial.println(brain.readCSV());
   }
}   
Here I'm making music with my MindFlex brain reader.

 

For the experiment, I display a random Google Profile picture for one second and measure the subjects brain waves.
The mind reader will output 11 channels of brainwave information,
I am only using two channels for this experiment, Attention and Meditation.

I put the Headset on and connect it to my computer.
Then I start the program and watch some random Google Profiles
flash by while the headset measures brain activity:

Then I do fun stuff in Excel with the data I've just collected:

I find out in the end of that session that dawgies make my brain the most relaxed and attentive.


Puppy!

Any questions?
paulklemstine@google.com
raver1975