Dave Deriso, pre: Medical Scientist
FSL rotate_bvec

This script was bothering me.

Its designed to modify your b-values after your correct your DTI data for eddy currents. Really simple script, yet I couldn’t get it to work! It was sitting there between me and my data. Nothing survives that position for long.

So, I took it apart and found weird syntax errors and mismatched storing (ie. the files it created in one function were given an address, and the next function used a different address to find the files… non-existant file errors galore). The mismatched storing was the main problem. I also noticed that the if statements weren’t always properly terminated with “fi”, but were ended with “done.” I dont know if that makes a difference, but I found it odd and fixed that too.

So, I spent a few hours cleaning it up and now it works great! I also added a few touches:

-file type protection (checks file extensions, so you dont run the wrong file type)
-better naming system (labels the file you just modified -> data_rot.bvec instead of renaming the old file to data.bvec_old)
-cleaner temporary file creation and storage (the main issue)
-progress indicators so you know that its doing something
-tells you that its done, so your not left guessing “did it work?”

FSL is a great toolkit. Im glad I could contribute, and I will be sure to again!! I hope I didnt screw anything up :)

Sweeet

Wireless EEG Part 2

So, after my last (lengthy) post on why the older NeuroSky headset is no good, I contacted the VP of R&D and explained the problem. A newer version should be in the mail shortly. I’ll let you know how it goes. Looks like the company has good support :)

I also managed to convince the Ramachandran lab that the new 14 channel Emotiv Epoc is the way to go. We will be ordering the research edition. I’ll post my review of that as well.

Dr. Pineda and I spoke this morning, and it looks like a 3rd company with a 16 channel wireless EEG will enter the testing arena shortly. This one sounds promising as it is aimed at the medical sector. We’ll see if that makes a big difference or not.

I have a meeting with a well known researcher at the Swartz Institute tomorrow morning to discuss a new project that I just got funds for… a new better than the rest wireless EEG.

I guess this will be a fun summer :)

my software screenshot

my software screenshot

NeuroSky 'MindSet'

NeuroSky 'MindSet'

what it looks like to wear

what it looks like to wear

what a real eeg looks like to wear

what a real eeg looks like to wear

emotiv 'epoc' headset (intense!)

emotiv 'epoc' headset (intense!)

SO, this one is a little more fun than usual. Its a single-channel EEG headset called the NeuroSky ‘Mindset’ and its an interesting concept. The idea is to use the ‘mindset’ as a BCI (brain-computer-interface) for video games. Mattel has taken off with the idea, and according to some rating system, was given toy of the year for it. As a neuroscience student, i am happy to see people interested in this area, but i have to put out a warning, this thing has its limitations -and they are significant.

There are apparently several versions of the ‘mindset’ floating around and not all of them are compatable with the latest software. My headset was given to me by the Ramachandran Lab and the Pineda Lab to develop off of. I guess its an older version, so it doesnt work so well with the newer drivers. So, Im limited to 1Hz resolution of already fast-fourier transformed data (power levels for 8 different ranges: delta, theta, high alpha, low alpha, high beta, low beta, high gamma, low gamma). Not so useful for research that generally uses raw data at 100-120Hz. Although it is possible to get the raw data at a decent frequency, I am still not to keen on the fact that its a single electrode and theres no real way to measure impedence. The labs have their own ideas though, we’ll see how they turn out.

Theres apparently a few pre-processing steps that abstract the data coming from the device from anything natural. Its best explained below.

Taken from the NeuroSky website:

Typically, power spectrum band powers would be reported in units such as Volts-squared per Hz (V^2/Hz), but since our values have undergone a number of complicated transforms and rescale operations from the original voltage measurements, there is no longer a simple linear correlation to units of Volts. Hence, we do not try to label them with any conventional unit. You can think of them as ASIC_EEG_POWER units, if you must.

The reason we say they are only meaningful compared to each other and to themselves is primarily due to the fact they have their own units as described above. It would not necessarily be meaningful nor correct to directly compare them to, say, values output by another EEG system. In their currently output form, they are useful as an indication of whether each particular band is increasing or decreasing over time, and how strong each band is relative to the other bands.

The bottom line is that while the headset may be cool and fun, its not a research tool. There are other headsets, particularly the emotiv epoch system, that are closer to a potential research apparatus. I really like the emotiv system. It has more electrodes, gyroscopes, has algorithms for decoding facial emotion, and seems to be a more rigorously tested piece of hardware as all of the specs are available - and they seem to translate into real units. Also it boasts Allen Snyder, a famous neuroscientist, as a co-founder. In addition, the research edition is compatible with the standard EEGlab matlab toolkit. Total cost for the research edition is $750 (the consumer version is only $299, but doesn’t include the cool software that comes with the research ed). The neurosky mindset is consumer-priced at $199. Ill probably use some of the money that i earned developing for this project to either buy an emotiv or build my own ‘better than the rest’ version.

However. This marks the very first neuro-feedback application I have ever written. I plan to design and build my own wireless eeg headset with active dry electrodes and get the whole 10-20 system in. Once this is built, I can come back to my software and make it better.

My software currently does:

connects to the port where the bluetooth is forwareded from
does a handshake
checks for errors
if the data is good, parses the packets
outputs each received data point into a csv file
bar charts the power spectrum so you can see the values change
allows you to scale the various frequencies to the window
sweet

wow.
this would make a great logo for the us treasury department.
movetofit:

elvendorkette:

sunscorchx:

cheekychen:

(via veronicalikesyou)

This is one of the most awesome photos I have ever seen. Ever.

Oh. Woah.

wow.

this would make a great logo for the us treasury department.

movetofit:

elvendorkette:

sunscorchx:

cheekychen:

(via veronicalikesyou)

This is one of the most awesome photos I have ever seen. Ever.

Oh. Woah.

My schedule for Winter 2010. This will change when the quarter ends on March 20th.
Courses:
Advanced Research Methods 5FMRI Research Design and Analysis 4Intro to Counseling and Therapy 3Sensation and Perception (a certain NIH internship requires it) 3 Honors Thesis 4Natural Disasters (so I can graduate) Petitioned out!!!American Literature (so I can graduate) 3International Politics  (so I can graduate) 4History of Cinema  (so I can graduate) 3Post-Restoration American History  (so I can graduate) 3
Total: 32 units

My schedule for Winter 2010. This will change when the quarter ends on March 20th.

Courses:

Advanced Research Methods 5
FMRI Research Design and Analysis 4
Intro to Counseling and Therapy 3
Sensation and Perception (a certain NIH internship requires it) 3 
Honors Thesis 4
Natural Disasters (so I can graduate)
Petitioned out!!!
American Literature (so I can graduate) 3
International Politics (so I can graduate) 4
History of Cinema (so I can graduate) 3
Post-Restoration American History (so I can graduate) 3

Total: 32 units

About as useful as it gets. Basically an itunes for articles. Tell anyone you know who wears a lab coat. They will love you.
http://mekentosj.com/papers/
Thanks to Dr. Colm Connolly, a new postdoc in the Paulus lab who is amazingly knowledgeable about almost anything neuroscience!

About as useful as it gets. Basically an itunes for articles. Tell anyone you know who wears a lab coat. They will love you.

http://mekentosj.com/papers/

Thanks to Dr. Colm Connolly, a new postdoc in the Paulus lab who is amazingly knowledgeable about almost anything neuroscience!

home page

home page

content pages

content pages

This is pretty cool. Since CSS SUCKS at adjusting to screen size, I wrote a javascript app that basically forces certain divs to expand to the page size. Javascript is way more convenient for doing this because you can write functions to put specific constraints. As a result, the page is very flexible, and the home page behaves differently than the rest of the site. Check out the screenshots and look at the way the footer and body expand and contract. If the screen size is less than 730px, the body will contract a little. If the screen is bigger, as is the case these days, the footer fills the void. The home page drops the content down to the top of the footer, and again this relationship depends on the page size. The content pages, however, have a stable footer size, and the content is kept at the top of the page. Cool stuff, impossible though in CSS. Thank jeebus for java!

Here’s some example code of how flexible javascript can make CSS:

var myHeight = 0;

if( typeof( window.innerHeight ) == 'number' ) 
{
	//gets the height of the screen
	myHeight = window.innerHeight;	
}

if (document.title == "Paulus Lab: Home")
{
	
	if (myHeight > 730) 
	{
		//this is how you control CSS div properties with java 
		document.getElementById('footer').style.height = myHeight - 437 + 'px';
		document.getElementById('fLeft').style.height = myHeight - 437 + 'px';
		document.getElementById('fRight').style.height = myHeight - 437 + 'px';
		document.getElementById('footerBg').style.height = myHeight - 437 + 'px';
		
		myHeight = 730;
	}
}

Credits for the window sizing script: here.

6 hours

Woooo Finished the New Effort IRB!!!

3 days, 20 hours, and 8 pages, its a beauty. I must have rewrote each sentence close to 3 times. When you write this sort of document, you are forced to clean and linearize all of your ideas. Doing this was not easy, and I was forced to face some deep theoretical issues that have escaped me in the past months. However, tonight I was able to tackle them head on and draw new distinctions that I would have never considered. Because of this, I even added a new condition to the battery of tests in my effort paradigm. Now there are 6 task conditions. I decided to build in some flexibility that will allow me to mix and match these conditions for each project to answer some brand new psychological questions and make some pretty compelling models with the data. Now, within these 3 projects, there can be multiple experiments as the batteries of tests can be analyzed for different relationships. Needless to say, I am excited and enthusiastic about the coming year, and my honors thesis is no longer worrisome.

Last night I finished Dr. Marc Wittmann’s analysis (8 hours). Learned how an ANOVA works and what the heck those asterisks mean in R. *** means really significant, * means weakly significant. 2/4 of the factors were pretty signifigant and had ***, 1/4 of them was weakly signifigant and only had one *, and the last factor of the 4 was not signifigant. Sweet.
Tonight I worked on my IRB some more (5 hours). I added my 2 proposals and mixed it in with the 3rd. So there’s 3 projects in the study. The application looks really solid, but we’ll see what the chief says.
I really want to work on the new website some more, but I’m forcing myself to finish the IRB and analysis program first. SO MUCH TO DO, SO LITTLE TIME!!!

Last night I finished Dr. Marc Wittmann’s analysis (8 hours). Learned how an ANOVA works and what the heck those asterisks mean in R. *** means really significant, * means weakly significant. 2/4 of the factors were pretty signifigant and had ***, 1/4 of them was weakly signifigant and only had one *, and the last factor of the 4 was not signifigant. Sweet.

Tonight I worked on my IRB some more (5 hours). I added my 2 proposals and mixed it in with the 3rd. So there’s 3 projects in the study. The application looks really solid, but we’ll see what the chief says.

I really want to work on the new website some more, but I’m forcing myself to finish the IRB and analysis program first. SO MUCH TO DO, SO LITTLE TIME!!!

If history is any teacher, it teaches that when you get indifferent and you lose the will to fight, some other guy who has the will to fight will take you over.

Colonel Arthur D. “Bull” Simons

This is the guy who goes overseas and breaks people out of prison for rescue missions.

In 1970, Simons was hand-picked to be the ground commander of Operation Ivory Coast, a joint special operations effort to rescue American prisoners of war from the Son Tay prison in North Vietnam.

In late 1978, Simons was contacted by Texas businessman Ross Perot, who requested his direction and leadership to help free two employees of Electronic Data Systems that were arrested shortly before the Iranian Revolution. Simons organized a rescue mission and ultimately freed the two men from the Iranian prison. All involved returned safely to the United States.

Simons’ nickname “Bull” was taken from a physical training game called the “bull pit,” whereby one Soldier climbs down into a pit in the ground, and other Soldiers engage in trying to pull the first Soldier from the pit. Simon’s large physical stature and great strength (even in his fifties, he did 250 push-ups every day) made him a formidable challenge to remove from the pit, and the name “Bull” stuck.