<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Temple University Neural Instrumentation Lab &#187; Multi-Tuned Neuron Project</title>
	<atom:link href="http://www.obeidlab.com/category/multi-tuned-neuron-project/feed" rel="self" type="application/rss+xml" />
	<link>http://www.obeidlab.com</link>
	<description>“Integrating hardware, software, and algorithm research in pursuit of brain-machine interface instrumentation”</description>
	<lastBuildDate>Thu, 22 Oct 2009 02:37:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pneumatic Arm</title>
		<link>http://www.obeidlab.com/pneumatic-arm</link>
		<comments>http://www.obeidlab.com/pneumatic-arm#comments</comments>
		<pubDate>Wed, 29 Oct 2008 15:57:00 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Multi-Tuned Neuron Project]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.obeidlab.com/?p=516</guid>
		<description><![CDATA[This article provides complete documentation for purchasing, constructing, programming, and operating a Pneumatic Arm Truss. The PAT supports a two-degree FOM pneumatic arm for inclusion in the BMI Workbench.
System Operation
Startup

Inspect T-35HD Air Compressor Filter. Rinse with soap &#38; water as necessary.
Inspect T-35HD air tank for water (valve on bottom of tank). Tilt tank and drain [...]]]></description>
			<content:encoded><![CDATA[<p>This article provides complete documentation for purchasing, constructing, programming, and operating a Pneumatic Arm Truss. The PAT supports a two-degree FOM pneumatic arm for inclusion in the BMI Workbench.</p>
<h1 id="toc-system-operation">System Operation</h1>
<h2 id="toc-startup">Startup</h2>
<ol>
<li>Inspect T-35HD Air Compressor Filter. Rinse with soap &amp; water as necessary.</li>
<li>Inspect T-35HD air tank for water (valve on bottom of tank). Tilt tank and drain if necessary. Ensure valve is closed prior to use. (Stem will be at its longest when closed.)</li>
<li>Inspect LFR-D-MIDI &amp; LF-D-5M-MIDI regulators for condensate. Release condensate if it is within 10mm below filter element by opening the lower blue plugs during system operation.</li>
<li>Adjust the LFR-D-MIDI regulator. Pull blue pressure setting button upwards to unlock it (away from housing). Turn pressure setting button in the &#8216;-&#8217; direction as far as possible.</li>
<li>Place T-35HD power switch in auto position. The pump will automatically maintain between 100 &#8211; 140 PSIG.</li>
<li>Turn the LFR-D-MIDI pressure setting button in the &#8216;+&#8217; direction until the desired pressure is shown on its manometer. (Note: The input pressure must be at least 1 bar greater than the output pressure.)</li>
<li>Press the the LFR-D-MIDI pressure setting button down to secure it against unintentional turning.</li>
</ol>
<h2 id="toc-operation">Operation</h2>
<ol>
<li>To Be Completed.</li>
</ol>
<h2 id="toc-shutdown">Shutdown</h2>
<ol>
<li>Remove supply pressure. Adjust the LFR-D-MIDI regulator. Pull blue pressure setting button upwards to unlock it (away from housing). Turn pressure setting button in the &#8216;-&#8217; direction as far as possible.</li>
<li>Power OFF compressor</li>
<li>Release compressor tank pressure and excess condensate via drain valve.</li>
<li>Power OFF setpoint voltage</li>
<li>Power OFF supply voltage</li>
</ol>
<h1 id="toc-schematics">Schematics</h1>
<p><a href="http://www.obeidlab.com/wp-content/uploads/base_schematic_v1.jpg" rel="lightbox[516]"><img class="size-medium wp-image-589 alignnone" title="Base Schematic" src="http://www.obeidlab.com/wp-content/uploads/base_schematic_v1-231x300.jpg" alt="" width="231" height="300" /></a></p>
<h1 id="toc-software">Software</h1>
<h2 id="toc-videoinput">videoInput</h2>
<ul>
<li><a href="http://www.muonics.net/school/spring05/videoInput/" target="_blank">http://www.muonics.net/school/spring05/videoInput/</a></li>
<li>a free windows video capture library</li>
</ul>
<h2 id="toc-autocad">AutoCAD</h2>
<ul>
<li> <a href="http://www.3dcontentcentral.com/parts/supplier/80%2020-Inc.aspx">8020 Parts</a></li>
</ul>
<h2 id="toc-ni">NI</h2>
<ul>
<li><a href="http://www.kxcad.com/ni-daqmx-c-functions-2" target="_blank">daqmx C functions</a></li>
<li><a href="http://www.obeidlab.com/wp-content/uploads/ad-interface-card-driver-functions-appendixd.pdf" target="_blank">NI DAQ A/D Interface Card Functions &#8211; Appendix D</a></li>
</ul>
<h1 id="toc-hardware">Hardware</h1>
<h2 id="toc-festo">Festo</h2>
<ul>
<li><a title="Festo Home Site" href="http://www.festo.com/cms/en-us_us/index.htm" target="_blank"> http://www.festo.com/cms/en-us_us</a></li>
<li>1.847.759.2600</li>
<li>Account #20344983</li>
<li>Customer Service: 1.800.993.3786</li>
<li>Our Representative: Pat Sabharwal 1.847.759.2629 (Cell: 630.487.0479)</li>
<li>Tech Support: 1.866.463.3786</li>
</ul>
<table border="1">
<tbody>
<tr>
<th width="100">Component Name</th>
<th width="100">Part #</th>
<th width="100">Pubs</th>
<th>Notes</th>
</tr>
<tr>
<td>LFR-1/4-D-MIDI Filter/Regulator</td>
<td>186481</td>
<td><a href="http://www.obeidlab.com/wp-content/uploads/lfr-d-midi.pdf" target="_blank">Specifications</a></td>
<td>
<ul>
<li>Regulates the compressed air supplied to the set working pressure and compensates for fluctuations in pressure.</li>
<li>Cleans the compressed air of dirt particles and condensed water.</li>
<li>Filters to 40µm particles</li>
</ul>
</td>
</tr>
<tr>
<td>LF-D-5M-MIDI Filter</td>
<td>186460</td>
<td><a href="http://www.obeidlab.com/wp-content/uploads/lfr-d-midi.pdf" target="_blank">Specifications</a></td>
<td>
<ul>
<li>Filters to 5µm particles</li>
<li>Max 230 PSI (16 bar)</li>
</ul>
</td>
</tr>
<tr>
<td>VPPM-6F-L-1-F-0L10H-V1N-S1 Proportional Pressure Regulator</td>
<td>543432</td>
<td><a href="/wp-content/uploads/vppm-6f-l-1-f-0l10h-v1n-s1.pdf" target="_blank">Specifications</a></td>
<td>
<ul>
<li>24 VDC</li>
</ul>
</td>
</tr>
<tr>
<td>VABM-P1-SF-G18-4-P3 Sub-base</td>
<td>542254</td>
<td>See VPPM-6F-L-1-F-0L10H-V1N-S1 Proportional Pressure Regulator</td>
<td> </td>
</tr>
<tr>
<td>Sub-base Blanking Plug</td>
<td>3570</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>D-3/8I-1/2A Reducing Nipple</td>
<td>3585</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>DMSP-10-360N(or 240N) RM-RM Fluidic Muscles</td>
<td>541403</td>
<td><a href="/wp-content/uploads/dmsp-mas_enus.pdf" target="_blank">Manual</a></td>
<td>
<ul>
<li>Max Pressure: 116 PSI (8 bar)</li>
<li>Normal Operating Range: 0 -15% contraction</li>
<li>Max Operating Range: 0 &#8211; 25% contraction</li>
<li>Max Diameter (@ contraction): 22mm</li>
<li>Connecting Thread: M8</li>
<li>541403 W908 Connectors</li>
<li>Should be inspected every 500,000 strokes for cracks and blistering</li>
<li>Service life can be increased if pressure is exhausted on opposing end from input</li>
</ul>
</td>
</tr>
<tr>
<td>QSL-H-1/8-1/4-U-M Push-in/threaded L-fitting</td>
<td>533235</td>
<td><a href="http://www.obeidlab.com/wp-content/uploads/festo-533235.pdf" target="_blank">Specifications</a></td>
<td>
<ul>
<li>Size 	Standard</li>
<li>Nominal size 	4.5 mm</li>
<li>Type of seal on screw-in stud 	coating</li>
<li>Working pressure 	-0.95 &#8211; 10 bar</li>
<li>Ambient temperature 	0 &#8211; 60 °C</li>
<li>Max. tightening torque 	7 Nm</li>
<li>Product weight 	14.7 g</li>
</ul>
</td>
</tr>
<tr>
<td>QS-H-3/8-1/4-U-M Push-in fitting</td>
<td>533222</td>
<td><a href="http://www.obeidlab.com/wp-content/uploads/festo-533222.pdf" target="_blank">Specifications</a></td>
<td>
<ul>
<li>Size Standard</li>
<li>Nominal size 4.2 mm</li>
<li>Type of seal on screw-in stud coating</li>
<li>Working pressure -0.95 &#8211; 10 bar</li>
<li>Ambient temperature 0 &#8211; 60 °C</li>
<li>Max. tightening torque 22 Nm</li>
<li>Product weight 26.5 g</li>
</ul>
</td>
</tr>
<tr>
<td>QS-H-1/4-1/4-U-M Push-in fitting</td>
<td>533219</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>DMSP Blanking Plug</td>
<td>3568</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>ESK-1/4-1/4 Double Nipple</td>
<td>151521</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>PUN-1/4X3/64-U-BL Polyurethane Tubing</td>
<td>546584</td>
<td> </td>
<td>
<ul>
<li>150 PSI (10 bar)</li>
</ul>
</td>
</tr>
<tr>
<td>SIM-M12-8GD-5-PU Plug Socket with Cable</td>
<td>525618</td>
<td> </td>
<td>
<ul>
<li>VPPM 5m Control Cable</li>
<li>$30.11 each</li>
</ul>
</td>
</tr>
</tbody>
</table>
<h2 id="toc-8020">8020</h2>
<ul>
<li><a href="http://www.8020.net/" target="_blank">http://www.8020.net/</a></li>
<li>Distributer: TECO, <a href="http://www.tecoinc.com/" target="_blank">tecoinc.com</a>, 800.521.3285</li>
<li>Salesman: Jim Gordon, jgordon@tecoinc.com</li>
</ul>
<table border="1">
<tbody>
<tr>
<th width="100">Component Name</th>
<th width="100">Part #</th>
<th width="150">Pubs (Page #)  <br />
<a title="8020 Interactive Catalog" href="http://www.8020.net/interactive-catalog.html" target="_blank">8020 Interactive Catalog</a></th>
<th>Notes</th>
</tr>
<tr>
<td>3060 T-Slotted Aluminum</td>
<td> 1515</td>
<td>46</p>
<p><a href="http://www.obeidlab.com/wp-content/uploads/3060-t-slotted-profile.jpg" target="_blank" rel="lightbox[516]">Specifications</a></td>
<td>
<ul>
<li>Used for arm&#8217;s base</li>
<li>15 Series Profile Material (Based on fractional distance between grooves.)</li>
<li>3.0&#8243; x 6.0&#8243;</li>
</ul>
</td>
</tr>
<tr>
<td>3320 5/16-18 x 11/16 Flanged BHSCS &amp; Economy T-Nut</td>
<td>3320 </td>
<td> 120</td>
<td> </td>
</tr>
<tr>
<td>15-Series Base Plate</td>
<td> 2130</td>
<td> 303</td>
<td> </td>
</tr>
<tr>
<td>Economy Anti-Vibration Mounts</td>
<td> 2207</td>
<td> 308</td>
<td> </td>
</tr>
<tr>
<td>8 Hole Inside Corner Bracket</td>
<td>4304 </td>
<td> 127</td>
<td> </td>
</tr>
<tr>
<td>6 Hole Inside Corner Bracket</td>
<td> 4311</td>
<td> 125</td>
<td> </td>
</tr>
<tr>
<td>6 Hole Inside Corner Bracket</td>
<td> 4301</td>
<td> 123</td>
<td> </td>
</tr>
<tr>
<td>4 Hole Tee Joining Plate</td>
<td> 4341</td>
<td> 143</td>
<td> </td>
</tr>
<tr>
<td>1515 End Cap with Fasteners</td>
<td> 2030</td>
<td> 266</td>
<td> </td>
</tr>
<tr>
<td>1530 End  Cap with Fasteners</td>
<td> 2045</td>
<td> 266</td>
<td> </td>
</tr>
<tr>
<td>Pivot Joint</td>
<td> 14017</td>
<td> 998</td>
<td> </td>
</tr>
<tr>
<td>5/16-18 x 1&#8243; Socket Head Cap Screws</td>
<td> 3122</td>
<td> 101</td>
<td> </td>
</tr>
<tr>
<td>2 Hole Inside Corner Bracket</td>
<td> 4302</td>
<td> 121</td>
<td> </td>
</tr>
<tr>
<td>Top Mount Bearing Pads</td>
<td> 6898</td>
<td>337 </td>
<td> </td>
</tr>
<tr>
<td>#10 x 5/6 Pad Screw</td>
<td> 40-3628</td>
<td> 976</td>
<td> </td>
</tr>
<tr>
<td>1/4&#8243; Black Haircell ABS Panel</td>
<td> 2313</td>
<td> 251</td>
<td> </td>
</tr>
<tr>
<td>3&#8243; Single Panel Retainer</td>
<td> 7150</td>
<td> 397</td>
<td> </td>
</tr>
<tr>
<td>1.5&#8243; Single Panel Retainer</td>
<td> 2434</td>
<td> 242</td>
<td> </td>
</tr>
<tr>
<td>Velcro Fastener</td>
<td> 3273</td>
<td> 281</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="toc-national-instruments">National Instruments</h2>
<ul>
<li>See <a href="/data-sheets">here</a>.</li>
</ul>
<h2 id="toc-thomas">Thomas</h2>
<h3 id="toc-ultra-air-pac-t-35hd-electric-air-compressor">Ultra Air-Pac T-35HD Electric Air Compressor</h3>
<ul>
<li>3 gallon air storage</li>
<li>Pressure switch maintains 100 PSIG (689.5 KPa) -140 PSIG (861.9 KPa)</li>
<li>Air Displacement: 4.5 CFM (127 LPM) @ 0 PSI</li>
<li>Air Delivery: 2.9 CFM @ 50 PSI (83.5 LPM @ 345 KPa)</li>
<li>2.55 CFM @ 100 PSI (72.22 LPM @ 689.5 KPa)</li>
<li>115V, 60Hz, 10A (@ working pressure), 15A fuse</li>
<li>Weight: 48 lbs</li>
<li>Requires no lubrication (do not apply oil or damage may result)</li>
<li>Motor is equipped with thermal overload protector. If protector trips, the user should manually turn the pump motor off and let the system cool for 5 minutes.</li>
</ul>
<h1 id="toc-relevant-papers">Relevant Papers</h1>
<ul>
<li><a href="http://www.obeidlab.com/wp-content/uploads/boblan-et-al-2007-a-human-like-robot-torso-zar5-with-fluidic-muscles-toward-a-common-platform-for-embodied-ai.pdf">(Boblan et al 2007) A Human-Like Robot Torso ZAR5 with Fluidic Muscles: Toward a Common Platform for Embodied AI</a></li>
<li><a href="http://www.obeidlab.com/wp-content/uploads/boblan-et-al-2004-a-human-like-robot-hand-and-arm-with-fluidic-muscles-biologically-inspired-construction-and-functionality.pdf"></a><a href="http://www.obeidlab.com/wp-content/uploads/boblan-et-al-2006-a-human-like-robot-torso-with-fluidic-muscles-biologically-inspired-engineering.pdf">(Boblan et al 2006) A human-like robot torso with fluidic muscles Biologically inspired engineering</a></li>
<li><a href="http://www.obeidlab.com/wp-content/uploads/dmsp-mas_enus.pdf"></a><a href="http://www.obeidlab.com/wp-content/uploads/boblan-et-al-2004-a-human-like-robot-hand-and-arm-with-fluidic-muscles-biologically-inspired-construction-and-functionality.pdf">(Boblan et al 2004) A Human-Like Robot Hand and Arm with Fluidic Muscles: Biologically Inspired Construction and Functionality</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.obeidlab.com/pneumatic-arm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiply Tuned Neurons</title>
		<link>http://www.obeidlab.com/multiply-tuned-neurons-development</link>
		<comments>http://www.obeidlab.com/multiply-tuned-neurons-development#comments</comments>
		<pubDate>Tue, 14 Aug 2007 18:32:03 +0000</pubDate>
		<dc:creator>O'Doherty</dc:creator>
				<category><![CDATA[Multi-Tuned Neuron Project]]></category>

		<guid isPermaLink="false">http://obeidlab.com/multiply-tuned-neurons</guid>
		<description><![CDATA[Introduction
The goal of this project is to determine what tuning curves look like for neurons that are simultaneously tuned to multiple stimuli. We are using pre-existing data in which monkeys had to focus on two different visual cues at the same time. The neurons recorded in this study are in the pre-frontal cortex and were [...]]]></description>
			<content:encoded><![CDATA[<h1 id="toc-introduction">Introduction</h1>
<p>The goal of this project is to determine what tuning curves look like for neurons that are simultaneously tuned to multiple stimuli. We are using pre-existing data in which monkeys had to focus on two different visual cues at the same time. The neurons recorded in this study are in the pre-frontal cortex and were taken from two different monkeys. The data was acquired by Misha Lebedev at NIH; the paper summarizing that work can be read <a href="http://obeidlab.com/wp-content/uploads/lebedev-et-al-2004-15510225.pdf" title="Lebedev 2004">here</a>. The notes Iyad took during his summer 2007 visit to see Joey and Misha can be read <a href="http://obeidlab.com/wp-content/uploads/joey-notes.pdf" target="_blank" title="Notes from Meeting with Joey and Misha">here</a>.<a href="http://obeidlab.com/wp-content/uploads/joey-notes.pdf" title="Notes from Meeting with Joey and Misha"></a><a href="http://obeidlab.com/wp-content/uploads/lebedev-et-al-2004-15510225.pdf" title="Lebedev 2004"> </a></p>
<h1 id="toc-details-of-mishas-experiment">Details of Misha&#8217;s Experiment</h1>
<p>A single trial of Misha&#8217;s experiment proceeds as follows:</p>
<ol>
<li>Subject presses a button to start the trial</li>
<li>Fixation point appears at center of the screen</li>
<li>Subject fixates for 1-1.5s</li>
<li>Target appears in one of four locations (0°, 90°, 180°, 270°)</li>
<li>After another 1-1.5s, the target revolves around to one of the four locations (could be the same one it started at)</li>
<li>After the target stops, there is a 1-2.5s delay</li>
<li>The target gets either brighter or dimmer for 150ms and then extinguishes. This serves as both the trigger for the subject to saccade, as well as the instruction for which target to saccade to.</li>
<li>Subject saccades to appropriate target; correct responses are rewarded with juice.</li>
</ol>
<h1 id="toc-data-file-structure">Data File Structure</h1>
<p>The data come from two monkeys, each of which has had multiple neurons tested. Each neuron has been tested with multiple trials. The list of neurons are stored in the files PF_all_zach.lst and PF_all_hamp_noPMd.lst. A sample line from Zach&#8217;s file reads:</p>
<p>za2_1 8 a</p>
<p>The &#8220;za2_1&#8243; identifies the trial day number and the electrode number; these are irrelevant details for the purpose of this experiment. The &#8220;8&#8243; refers to the unit number and &#8220;a&#8221; refers to the subunit. There are many other units and subunits for each electrode, but only those listed in these files have been identified by Misha et al as being valid for study. The data for the corresponding electrode would be stored in za2_1_code.mat. That file would contain the results of all the different trials for that electrode, only some of which involve unit 8 and subunit a.</p>
<p>The data file za2_1_code.mat contains data for each of a large number of trials of the experiment. For example, the variable &#8220;spike_time&#8221; is a cell array of length 1043, meaning that each entry in the cell array is an array with the firing times of all the neurons during one trial. We can determine which channel yielded each spike time by cross-referencing with &#8220;spike_channel&#8221;. The active channels and subchannels of the &#8220;nth&#8221; trial are saved in channels{n} and subchannels{n}.</p>
<p>All times must be centered relative to the target blink time by executing the following line: cntr = target_blink;</p>
<p>The code can then march through the trials and determine how many times the target subunit fired during a given time period under different conditions (such as specific combinations of attended and remembered locations).</p>
<h1 id="toc-determining-qualifying-neurons">Determining Qualifying Neurons</h1>
<p>According to Misha&#8217;s paper, only certain neurons qualify for study &#8211; those which are concurrently tuned to both attended and remembered target locations. This is determined by computing two custom statistics: I<sub>Rem</sub> and I<sub>Att</sub>; if both of these are significantly greater than one, the neuron is said to be concurrently tuned to both stimuli. The formulas for these statistics are given in equations (1) and (2) of Misha&#8217;s paper (page 1932). For example, if I<sub>Rem</sub> equals unity for a given neuron, then there is little difference between the variance of firing rates within rows (denominator) versus between rows (numerators); such a neuron is not tuned to the remembered target location. If the within-row variance is much smaller than the between-row variance, I<sub>Rem</sub> will be greater than one and the neuron will be said to be tuned. In order to test statistical significance of I<sub>Rem</sub> for a particular neuron, we repeat the following procedure 1000 times: Reassign the firing rates randomly between trials of with the same Attended location and recompute I<sub>Rem</sub>; in theory, this should result in an I<sub>Rem</sub> of unity. If the original value of I<sub>Rem</sub> is greater than 99% of the randomized I<sub>Rem</sub> values, we can be fairly sure that it is significantly greater than one, and that neuron is said to be tuned for remembered target location. The same procedure can be applied for measuring and testing the significance of I<sub>Att</sub>. If done correctly, it should be possible to re-create Figure 3D of Misha&#8217;s paper (page 1923); the randomization aspect may limit how precisely that figure can be reproduced.</p>
<p>The following table summarizes Iyad&#8217;s attempt to recreate Misha&#8217;s statistics. Misha&#8217;s numbers are taken from page 1923 and Table 2. The differences between the two columns are likely due to the fact that the determination of statistical significance requires randomization, which will have been different between Misha&#8217;s and Iyad&#8217;s programs. However it is a little surprising that there are as many differences as are observed &#8211; it would seem that 1000 repetitions would be enough to virtually eliminate the effects of randomization.</p>
<p><center></p>
<table style="height: 200px" align="center" border="1" width="400">
<tr>
<td style="border: 1px solid #ffffff" align="left">&nbsp;</td>
<td style="border: 1px solid #ffffff; width: 200px; height: 50px" align="center"><strong>Misha </strong></td>
<td style="border: 1px solid #ffffff" align="left"><strong>Iyad<br />
</strong></td>
</tr>
<tr>
<td style="border: 1px solid #ffffff" align="left"><strong>IAtt</strong></td>
<td style="border: 1px solid #ffffff" align="left">1.84 ± 0.08</td>
<td style="border: 1px solid #ffffff" align="left">1.84 ± 0.08</td>
</tr>
<tr>
<td style="border: 1px solid #ffffff" align="left"><strong>IRem</strong></td>
<td style="border: 1px solid #ffffff" align="left">1.21 ± 0.02</td>
<td style="border: 1px solid #ffffff" align="left">1.22 ± 0.02</td>
</tr>
<tr>
<td style="border: 1px solid #ffffff" align="left">&nbsp;</td>
<td style="border: 1px solid #ffffff" align="center">&nbsp;</td>
<td style="border: 1px solid #ffffff" align="left">&nbsp;</td>
</tr>
<tr>
<td style="border: 1px solid #ffffff" align="left"><strong>n Att Tuned<br />
</strong></td>
<td style="border: 1px solid #ffffff" align="left">186</td>
<td style="border: 1px solid #ffffff" align="left">179</td>
</tr>
<tr>
<td style="border: 1px solid #ffffff" align="left"><strong>n Rem Tuned<br />
</strong></td>
<td style="border: 1px solid #ffffff" align="left">47</td>
<td style="border: 1px solid #ffffff" align="left">53</td>
</tr>
<tr>
<td style="border: 1px solid #ffffff" align="left"><strong>n Both Tuned<br />
</strong></td>
<td style="border: 1px solid #ffffff" align="left">70</td>
<td style="border: 1px solid #ffffff" align="left">77</td>
</tr>
<tr>
<td style="border: 1px solid #ffffff" align="left"><strong>Total</strong></td>
<td style="border: 1px solid #ffffff" align="left">303</td>
<td style="border: 1px solid #ffffff" align="left">309</td>
</tr>
</table>
<p></center></p>
<h1 id="toc-comparing-the-fits">Comparing the Fits</h1>
<div>The 77 dual-tuned neurons were fitted to three different firing rate models:</div>
<p>1. The SUM of two independent preferred-direction cosine tuned curves</p>
<div>2. The PRODUCT of two independent preferred-direction cosine tuned curves</div>
<div>3. A linear fit of the difference between the two angles</div>
<div></div>
<div>The following procedure was repeated 100 times for each neuron: Use 75% of the trials to fit the model parameters. Then test the fit by using the remaining 25% of the trials to compare predicted versus actual firing rate. The results show very clearly that, for any given neuron, all three models fit the data equally well:</div>
<div>
<div style="text-align: center"><img src="/wp-content/uploads/errFig.png" height="288" width="815" /></div>
</div>
<div>The code producing these traces was backed up on <a href="/wp-content/uploads/multituneneuron071207.zip" target="_blank">12/07/2007</a>.</div>
<div></div>
<div>Upon further review, it appears that these results are predicted by theory. This was determined by the following experiment. I created a neuron whose firing rate was the sum of the firing rates predicted cosine tuning curves for two independent inputs plus some zero-mean Gaussian random noise. A series of randomized trials were generated for this neuron. The resulting firing rates were reverse fitted to a different model, one where the firing rate is the product of the cosine tuning curves. Finally, the percent error between the &#8220;actual&#8221; firing rate (from the additive model) and the &#8220;predicted&#8221; firing rate from the fitted multiplicative model was computed. It was found that the mean percent error was roughly zero, with neither mean nor standard deviation changing dramatically as the amount of Gaussian noise summed into the additive neuron model was increased. This verifies that both the additive and multiplicative neuron models are flexible enough to fit the data reasonably well. The code generating this trial is found <a href="/wp-content/uploads/testPredictedFits.zip" target="_blank">here</a>.</div>
<div align="center"><img src="/wp-content/uploads/testPredictedFits.png" height="360" width="821" /></div>
<div>A more interesting question is whether the competing models predict different preferred directions for <em>attention </em>and <em>memory</em>. This was tested as follows: for each of the 77 dual-tuned neurons, the two preferred directions were computed twice, once according to the &#8220;summation&#8221; model and once according to the &#8220;multiplication&#8221; model. For each neuron, the preferred directions were recalculated 100 different times and these were averaged respectively; each iteration used different trials for training versus testing the model coefficients. The results are shown below. Each plot has &#8220;preferred direction according to summation model&#8221; on the x-axis and &#8220;preferred direction according to multiplication model&#8221; on the y-axis. The left plot is predicted preferred directions for &#8220;attention&#8221; whereas the right plot is for &#8220;memory&#8221;. As is evident, they are linearly related with slope of 0.6 in both cases. The code used to produce this plot is backed up on <a href="/wp-content/uploads/multituneneuron071210.zip" target="_blank">12/10/2007</a>.</div>
<div align="center"><img src="/wp-content/uploads/sumVsMltModel.png" height="375" width="733" /></div>
<h1 id="toc-background-on-tuning-functions">Background on Tuning Functions</h1>
<p>Cosine tuning describes how the firing rate of a given neuron varies as a function of the direction of a particular motor task. It was first described by Georgopoulos in 1982 for <a href="http://obeidlab.com/wp-content/uploads/georgopoulos1982.pdf" target="_blank">2-D</a> movement and again in 1986 for <a href="http://obeidlab.com/wp-content/uploads/georgopoulos1986.pdf" target="_blank">3-D</a> movement.</p>
<h2 id="toc-single-variable-tuning">Single Variable Tuning</h2>
<p>The basic equation is given as follows:</p>
<p align="center"><img src="http://www.obeidlab.com/wp-content/cache/tex_cf21f5c1f3c7b30f1958cc149bb4f20c.png" align="absmiddle" class="tex" alt="FR = a + b*cos(\theta - \theta_p)" /></p>
<p align="left">where a represents the mean firing rate and b represents the maximum deviation from a. The maximum firing rate is therefore a + b and the minimum firing rate is a-b. The cosine tuning equation can equivalently be represented as a function of the sine and cosine of the direction of movement:</p>
<p align="center"><img src="http://www.obeidlab.com/wp-content/cache/tex_a7953a19500e3b83bd45ace41ec1ee54.png" align="absmiddle" class="tex" alt="FR = a + \beta_1sin(\theta) + \beta_2cos(\theta)" /></p>
<p align="left">where</p>
<p align="left"><img src="http://www.obeidlab.com/wp-content/cache/tex_91b83e68538fc58ba8ac6c188204bb19.png" align="absmiddle" class="tex" alt="b = \sqrt{\beta_1^2 + \beta_2^2}" /></p>
<p align="left">and</p>
<p align="left"><img src="http://www.obeidlab.com/wp-content/cache/tex_7539e051131ad47fa7dc8164506657eb.png" align="absmiddle" class="tex" alt="\theta_p=tan^{-1}\left(\frac{\beta_1}{\beta_2}\right)" /></p>
<p align="left">The concept of a cosine tuned neuron with a preferred direction is therefore equivalent to a linear regression of firing rate against the sine and cosine of the movement direction.</p>
<h2 id="toc-multiply-tuned-curves" align="left">Multiply Tuned Curves</h2>
<p align="left">Based on this original concept, there are a number of models to consider for multiply tuned neurons. In the following lines, I will assume that there are two tuning variables, <img src="http://www.obeidlab.com/wp-content/cache/tex_b172fd30334768b31e54b689639fa8c5.png" align="absmiddle" class="tex" alt="\theta_{att}" /> and <img src="http://www.obeidlab.com/wp-content/cache/tex_1f1979e3b9d47f353c7c923cd33d7eb5.png" align="absmiddle" class="tex" alt="\theta_{mem}" />:</p>
<h3 id="toc-additive" align="left">Additive</h3>
<p align="left"><img src="http://www.obeidlab.com/wp-content/cache/tex_b04af3b024c1013555ca5ca6f68c2ad3.png" align="absmiddle" class="tex" alt="FR = \left(a_{att}+\beta_{1,att}sin(\theta_{att})+\beta_{2,att}cos(\theta_{att})\right)+\left(a_{mem}+\beta_{1,mem}sin(\theta_{mem})+\beta_{2,mem}cos(\theta_{mem})\right)" /></p>
<p align="left">which is equivalent to:</p>
<p align="left"><img src="http://www.obeidlab.com/wp-content/cache/tex_5220d0bb485a0ddcdd36d10b52b8d5e5.png" align="absmiddle" class="tex" alt="FR=c_1 + c_2sin(\theta_{att}) + c_3cos(\theta_{att}) + c_4sin(\theta_{mem}) + c_5cos(\theta_{mem})" /></p>
<p align="left">The Matlab code developed for this project computes the coefficients <img src="http://www.obeidlab.com/wp-content/cache/tex_07e0bc708f604a89a892ebbf43f0615c.png" align="absmiddle" class="tex" alt="c_1 - c_5" />  using a least squares approximation. From those coefficients, we can work backwards to compute the estimated preferred direction for the two tuning variables as follows:</p>
<p align="center"><img src="http://www.obeidlab.com/wp-content/cache/tex_b77485a8c8b296d7bf66631228101501.png" align="absmiddle" class="tex" alt="\hat{\theta}_{att,preferred}=tan^{-1}\left(\frac{c2}{c3}\right)" /></p>
<p align="center"><img src="http://www.obeidlab.com/wp-content/cache/tex_523d1c83dcae6fc352abb1bfdb1871fb.png" align="absmiddle" class="tex" alt="\hat{\theta}_{mem,preferred}=tan^{-1}\left(\frac{c5}{c6}\right)" /></p>
<h3 id="toc-multiplicative"> Multiplicative</h3>
<p align="left"><img src="http://www.obeidlab.com/wp-content/cache/tex_2e47b246a5d3ffde7d8e37326d7d8a2d.png" align="absmiddle" class="tex" alt="FR = \left(a_{att}+\beta_{1,att}sin(\theta_{att})+\beta_{2,att}cos(\theta_{att})\right)\times\left(a_{mem}+\beta_{1,mem}sin(\theta_{mem})+\beta_{2,mem}cos(\theta_{mem})\right)" /></p>
<p align="left">which is equivalent to:</p>
<p align="left"><img src="http://www.obeidlab.com/wp-content/cache/tex_a735a7b0a033c45561aa521689537502.png" align="absmiddle" class="tex" alt="FR=c_1 + c_2sin(\theta_{att}) + c_3cos(\theta_{att}) + c_4sin(\theta_{mem}) + c_5cos(\theta{mem})" /></p>
<p align="left"><img src="http://www.obeidlab.com/wp-content/cache/tex_0e82372f7a66dd1c65197231fd3302ba.png" align="absmiddle" class="tex" alt="+ c_6sin(\theta_{att})sin(\theta_{mem}) + c_7sin(\theta{att})cos(\theta_{mem}) + c_8cos(\theta_{att})sin(\theta_{mem}) + c_9cos(\theta_{att})cos(\theta_{mem})" /></p>
<p align="left">The Matlab code developed for this project computes the coefficients <img src="http://www.obeidlab.com/wp-content/cache/tex_a19b23b81403757566e3e9684d2e35ec.png" align="absmiddle" class="tex" alt="c_1 - c_9" />  using a least squares approximation. Working backwards from those coefficients to compute the estimated preferred directions requires solving a system of non-linear equations. There is no closed-form expression for this. Rather, a Levenberg-Marquardt approximation can be executed in Matlab to estimate the beta values. From there, we can work backwards to compute the estimated preferred directions:</p>
<p align="center"><img src="http://www.obeidlab.com/wp-content/cache/tex_8bdd55a29e7fa740a74911865611c164.png" align="absmiddle" class="tex" alt="\hat{\theta}_{att,preferred}=tan^{-1}\left(\frac{\hat{\beta}_{1,att}}{\hat{\beta}_{2,att}}\right)" /></p>
<p align="center"><img src="http://www.obeidlab.com/wp-content/cache/tex_66ad0b8a8dd7793a56fa0e34ccccf559.png" align="absmiddle" class="tex" alt="\hat{\theta}_{mem,preferred}=tan^{-1}\left(\frac{\hat{\beta}_{1,mem}}{\hat{\beta}_{1,mem}}\right)" /></p>
<p align="left">I attempted to evaluate how reliable this inverse method is for estimating the preferred directions from the estimated beta values. I created a neuron that was tuned according to the product of two cosine tuned parameters. I added noise with standard deviation σ<sub>n</sub> to both of the cosine tunes before multiplying them to get the estimated final firing rate. This represented one trial. The beta values were computed from a set of 100 trials and the preferred directions were computed as stated above. This procedure was again repeated 100 times. The histograms of the preferred direction prediction errors are shown below: left column is attenuation, right column is memory, top row is σ<sub>n</sub> = 0.1, bottom row is σ<sub>n</sub> = 0.3. As is evident from the plots, the predicted preferred direction is occasionally 180 degrees off, which biases the error measures. The code used to generate the figure below can be found <a href="/wp-content/uploads/testCurveFit.zip" target="_blank">here</a>.</p>
<p align="left">&nbsp;</p>
<div style="text-align: center"><img src="/wp-content/uploads/multiCurveFitError.png" height="337" width="900" /></div>
<p align="left">&nbsp;</p>
<h3 id="toc-ideal-tuning-curve-graphs" align="left">Ideal Tuning Curve Graphs</h3>
<p align="left">The above ideal tuning curves have been graphed and are shown here for reference:</p>
<div style="text-align: center"><img src="/wp-content/uploads/sampleCurveFit.png" alt="Sample Curves" style="width: 821px; height: 334px" title="Sample Curves" height="334" width="821" /></div>
<div style="text-align: center"></div>
<h1 id="toc-backup-code">Backup Code</h1>
<p><a href="/wp-content/uploads/multituneneuron071210.zip" target="_blank">Multiply Tuned Neurons Backup Code &#8211; 12/10/2007</a></p>
<p><a href="http://obeidlab.com/wp-content/uploads/multituneneuron071207.zip" title="Multiply Tuned Neurons Backup Code - 12/07/2007">Multiply Tuned Neurons Backup Code &#8211; 12/07/2007</a></p>
<p><a href="http://obeidlab.com/wp-content/uploads/multituneneuron071026.zip" title="Multiply Tuned Neurons Backup Code - 10/26/2007">Multiply Tuned Neurons Backup Code &#8211; 10/26/2007</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.obeidlab.com/multiply-tuned-neurons-development/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
