<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Taylor Hanayik on Medium]]></title>
        <description><![CDATA[Stories by Taylor Hanayik on Medium]]></description>
        <link>https://medium.com/@hanayik?source=rss-c00b0e7f662------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*r0iIfQaX05z_jXNpnTKKlw.jpeg</url>
            <title>Stories by Taylor Hanayik on Medium</title>
            <link>https://medium.com/@hanayik?source=rss-c00b0e7f662------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:01:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hanayik/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Realizing your tacit knowledge]]></title>
            <link>https://medium.com/the-image/realizing-your-tacit-knowledge-360937ca50af?source=rss-c00b0e7f662------2</link>
            <guid isPermaLink="false">https://medium.com/p/360937ca50af</guid>
            <category><![CDATA[knowledge]]></category>
            <category><![CDATA[realizations]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[tacit]]></category>
            <category><![CDATA[self-awareness]]></category>
            <dc:creator><![CDATA[Taylor Hanayik]]></dc:creator>
            <pubDate>Fri, 14 Sep 2018 16:06:32 GMT</pubDate>
            <atom:updated>2018-09-14T16:17:49.079Z</atom:updated>
            <content:encoded><![CDATA[<p>How do you realize you know things that others around you don’t? I’ll explain what I mean.</p><p>First, I’m not writing this to say that I am extraordinary compared to others. We are all extraordinary in unique ways. I’m writing about realizing your tacit knowledge because sometimes we (as in all of us humans) are not aware of all the information we have stored in our brains. This is especially relevant to me now because I’m nearly done with my PhD. That means I have to transfer as much of this information to my labmates before moving onto my next position.</p><p>To be honest, I only recently realized that I possessed skills and knowledge that others think are special. I just figured everyone around me (current colleagues) would just keep on doing what they do, and that I didn’t play a role large enough to affect operations. This recent “wake up call” so to speak was delivered by my PhD supervisor. He’s the one that initiated my self reflection, and provided the motivation for me to really assess the skills, knowledge, and experiences that I probably take for granted.</p><p>For example, since I work in the field of neuropsychology (understanding the relationship between brain and behavior), I often end up wearing many hats, many in a single day. On a given day I may start off as an academic, reading research articles I find interesting. Then, a few hours later I will probably end up wearing my software developer hat in order to write software to solve my own problems, or to help others solve theirs. Later still, in the same day I may also work as a neuroimager or MRI tech if I’m at the hospital scanning research participants. On other days, I may even throw in some teaching or training when asked to do so.</p><p>All of those jobs mentioned above can easily be someone’s entire career. Admittedly, I am probably not as skilled at each of those jobs as someone who has chosen one of them as their sole career. They will obviously have more experience since they have been doing that one thing day in and day out. However, I’m not necessarily disadvantaged by wearing many hats, and bouncing around from task to task on a daily basis. In fact, some may even view the ability (or freedom) to task switch so often as a major benefit.</p><p>Keep in mind that I don’t work this way because I have to. I work this way because I want to, so that I can fulfill my need to feel successful. And in fact, I do feel successful on most days because wearing so many hats, and <em>knowing</em> how to do so many different jobs allows me to integrate all that information across skill domains.</p><p>What I mean by this is that I can often directly see how the actions in one task will affect another. For example, when collecting MRI data I can make conscious decisions about how the protocol is designed, and how the data is organized that directly affect how I will write software to analyze that data in a more efficient way. Along the same lines, while writing software to analyze MRI data I can discover inefficiencies and directly impact policy so that MRI collection can be modified. Furthermore, I can rapidly integrate the information I read (while wearing my academic hat) such that I can make useful software, and collect meaningful/novel MRI data.</p><p>Overall, I would say that perhaps I am just very experienced at doing many related, yet separate tasks, and being able to integrate information across many (seemingly separate) domains. I’m not unique in this experience. I just have my own special combination of knowledge and personal “try/fail” attempts. We all contain knowledge that is just simply “there”, and it may be difficult to precisely put in words how to perform a certain skill, since doing it the way you do it might rely on many other bits of information from other domains.</p><p>This entire blog is a way that I can attempt to put in words (and pictures) my unique combination of knowledge and experiences so that others may view the world as I do. Hopefully it will also help some people out there learn a new skill or two. Remember that we all have knowledge that we effortlessly tap into. Others can sometimes see this as extraordinary, but that’s just because they haven’t live what you’ve lived, and vice versa.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=360937ca50af" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-image/realizing-your-tacit-knowledge-360937ca50af">Realizing your tacit knowledge</a> was originally published in <a href="https://medium.com/the-image">The Image</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make artificial lesions (python + FSL)]]></title>
            <link>https://medium.com/the-image/how-to-insert-an-artificial-lesion-into-a-healthy-brain-image-f541436114ae?source=rss-c00b0e7f662------2</link>
            <guid isPermaLink="false">https://medium.com/p/f541436114ae</guid>
            <category><![CDATA[mri-scan]]></category>
            <category><![CDATA[neuroimaging-how-to]]></category>
            <category><![CDATA[lesion]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[brain]]></category>
            <dc:creator><![CDATA[Taylor Hanayik]]></dc:creator>
            <pubDate>Wed, 12 Sep 2018 19:34:26 GMT</pubDate>
            <atom:updated>2018-09-14T16:18:17.268Z</atom:updated>
            <content:encoded><![CDATA[<p>Working with neuroimaging data from stroke participants presents many challenges. Stroke related brain injury can present with varying levels of severity, and extent of damage. Sometimes creating datasets with artificially placed lesions can help assess, and develop image registration methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CjJ0K8TOyAxZGAut4H1zBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyN3dB7og7RdrfPFevYskw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIDcCODdJzPH7v7hReBh_g.png" /><figcaption>An example of an artificially lesioned brain image. A real lesion from a stroke survivor was “injected” into a neurologically healthy individual’s brain image.</figcaption></figure><h3>TL;DR</h3><p>You can use my Github code to make your own datasets with artificial lesions. This is used primarily to assess stroke image registration methods for robustness and quality.</p><h4>Data requirements</h4><p><strong>Stroke MRI data</strong>: T1w scan, T2w scan, Lesion image (assumed to be traced from T2w scan)</p><p><strong>Control data:</strong> T1w scan (ideally matched to age range of stroke lesion “donor”</p><h4>Python processing requirements (non standard packages)</h4><p>Python 3.6 or &gt;, nibabel, nilearn, numpy, scipy</p><h4>Other software needed</h4><p><a href="https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FslInstallation">FSL</a></p><h4>My processing code with example data</h4><p><a href="https://github.com/hanayik/MakeLesion">hanayik/MakeLesion</a></p><h3>Overview</h3><p>One of the key concerns in analyzing brain images with injury is how that injury affects the quality of output from image processing steps. For example, some nonlinear image registration methods will effectively shrink lesioned tissue in order to better match a template image (e.g. MNI152-T1w scan). Even if lesion shrinkage can be avoided, there is the remaining concern that voxels within the injured area will be abnormally displaced relative to the expected voxel displacement when registering a neurologically healthy brain image to a template.</p><p>Here, what I mean by displacement is how the registration algorithms have chosen to move particular voxels in order to best match their counterparts in a template image. For example, imagine two pictures taken with a camera phone. One picture is of your face, with both eyes open, and the other picture is identical in every way except that you closed one eye. Now, how would an image registration algorithm match your eyes between the two pictures? How is the location of the open eye computed when the other image has limited information to match to (one eye closed)?</p><p>We face this same problem in analyzing data from brain injured participants. Brain injuries such as stroke result in missing, or abnormal tissue compared to an age matched neurologically healthy individual. How is the tissue within the boundaries of the lesion displaced relative to a healthy version of the same image?</p><h3>Method</h3><p>A dataset of artificially lesioned images affords some advantages over a dataset of only naturally lesioned brain images. In particular, we can directly compare normalization performance with and without a lesion within the same individual. This is not possible in data from participants where the lesion has occurred naturally (we rarely have an MRI before injury). Furthermore, we can generate datasets that are orders of magnitude larger, since we can apply artificial lesions from every stroke participant’s image to every control participant’s image. If all combinations are exhausted, datasets that began with hundreds of images will combine to create thousands of images. This can enhance our estimations of normalization performance metrics, although many images will end up containing similar features (e.g. the same lesion placed in all healthy control images will now make them related). A small price to pay.</p><p>My method to artificially lesion brain images used similar procedures to previous studies (Brett et al., 2001; Nachev et al., 2008). However, some useful steps were also added. All processing (except for manual lesion tracing) was automated with custom developed Python functions that interact with multiple additional programs (namely FSL, which must be installed).</p><h3>Step 1</h3><p>Lesions masks need to be manually traced by experienced neuroimagers on each stroke participant’s T2w image. Injury is often more apparent in these images. Next, each lesioned image, as well as the control image was reoriented to the stereotaxic coordinate system defined by the MNI152 template using FSL’s “reorient2std” program. This reorientation does not perform any calculations or data interpolation, but merely ensures all images conform to a standardized data organization format and anatomical directions are consistent.</p><h3>Step 2</h3><p>The T1w lesion image and T1w control image are then cropped in the head-foot direction to remove extraneous non-brain tissues (e.g. neck) using FSL’s “robustfov” program. This also reduces file size (useful when you have thousands of images).</p><h3>Step 3</h3><p>Next, the lesioned T2w image is registered to the lesioned T1w image using rigid body registration (6 DOF) with FSL’s FLIRT program (Jenkinson &amp; Smith, 2001). The computed registration parameters are applied to the manually traced lesion mask generated from the T2w image and results in a mask that now conforms to the space defined by the T1w image. Due to interpolation effects, the lesion is then re-binarized using a threshold of 0.5.</p><h3>Step 4</h3><p>Next, the lesion mask is smoothed using a full-width half maximum (FWHM) of 3 mm. Smoothing generates a gradient from 1 to 0 only near the edges of the mask (feathering). The lesion mask is then mirrored to the undamaged hemisphere of the lesioned T1w image and the enantiomorphic lesion filling (Nachev et al., 2008) method is used to “heal” the lesioned T1w image. This step is crucial, and strays from previous methods used to create artificially lesioned brain images. The enantiomorphic healing is necessary to facilitate a decent brain extraction (e.g. skull stripping) of the lesioned T1w image.</p><h3>Step 5</h3><p>Brain extraction is carried out using FSL’s “bet” (Smith, 2002) with a fractional intensity value of 0.4 which is more conservative than the default value, thus preserving more true brain signal. The same brain extraction is also carried out on the control T1w image. Then, the lesioned T1w image (brain only) is linearly (full affine, 12 DOF) registered to the control T1w brain using trilinear interpolation with FSL’s FLIRT. By removing non-brain tissue prior to this registration step, we can ensure a more accurate fit since the cost function will be driven by brain tissue instead of non-brain tissue (e.g. skull). These registration parameters computed from FLIRT are then used to register the lesion mask to the control T1w image space as well. The brain-to-brain registration parameters are also used to then register the whole head lesioned T1w image to the space of the control T1w image.</p><h3>Step 6</h3><p>Next, both T1w images (control and lesioned) are matched for intensity using mean scaling so that when tissue from the lesioned imaged is placed into the control image the result will not be abnormally dark or bright.</p><h3>Step 7</h3><p>The lesion mask is then smoothed using a FWHM of 8 mm, which facilitates a gradual blending of tissues near the edges of the lesion when it is injected into the control image. This large smoothing value also allows us to include enlarged ventricles when they are present, further making the artificially lesioned brain more representative of the effects related to a natural lesion. Lastly, tissue from the lesioned T1w image within the mask is placed into the control T1w image, and blended via the gradient present near the edges of the mask.</p><p>Together, all of the artificial lesioning steps are performed using an exhaustive pairwise combination of control images and lesioned images to generate a dataset much larger than the naturally lesioned dataset alone. The resulting dataset contains whole head images (including skull) with real lesions “donated” into a cohort of age matched, healthy control participants. All images are processed identically, and with minimal interpolation. Therefore, there should be no systematic difference introduced in the artificial dataset prior to comparing image registration methods (e.g SPM new-seg, FLIRT, DARTEL, ANTs SyN).</p><p>Link to the Github project containing all the python code to do the steps described above</p><p><a href="https://github.com/hanayik/MakeLesion">hanayik/MakeLesion</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f541436114ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-image/how-to-insert-an-artificial-lesion-into-a-healthy-brain-image-f541436114ae">How to make artificial lesions (python + FSL)</a> was originally published in <a href="https://medium.com/the-image">The Image</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dissertation + Supercomputer + Brain Imaging]]></title>
            <link>https://medium.com/the-image/dissertation-supercomputer-brain-imaging-9326f4dfabc9?source=rss-c00b0e7f662------2</link>
            <guid isPermaLink="false">https://medium.com/p/9326f4dfabc9</guid>
            <category><![CDATA[brain-imaging]]></category>
            <category><![CDATA[stroke]]></category>
            <category><![CDATA[supercomputer]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Taylor Hanayik]]></dc:creator>
            <pubDate>Fri, 17 Aug 2018 19:39:53 GMT</pubDate>
            <atom:updated>2018-09-14T16:18:42.978Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m nearing the end of my days as a PhD student and that means I’ll be publishing my dissertation soon. I’d like to think that what I’m doing is unique. I’m sure every PhD says that about their dissertation.</p><p>I do think I have a unique set of brain imaging data to work with, and I am ultimately adding value to the field of stroke neuroimaging with my project. However, what I think is equally interesting is <strong><em>how</em></strong><em> </em>I’m processing all the data I have.</p><p><strong>The Data</strong>:</p><p>57 T1w brain images from neurologically healthy participants.</p><p>193 T1w brain images from stroke survivors.</p><p>All images are collected on 3T MRI systems, and have 1x1x1 mm resolution. So I’m working with both high quality and quantity data.</p><p><strong>The Processing Problem:</strong></p><p>I’m comparing many different methods for normalizing brain images (making an individual’s brain look like a template brain). This is especially important in clinical neuroimaging such as stroke research. I will be comparing the deformations required to normalize each healthy brain to that same brain with each of the 193 different injuries (lesions) injected into the image. Essentially, every stroke image “donates” its injury to every healthy image. The pairwise lesion injection will result in a dataset of 11,001 unique images.</p><p>11,001 MRI images results in a lot of data (nearly 1TB). This is then copied a few times over for each method to facilitate parallel processing on a cluster environment. So in all (copies included) I will be processing about 100,000 brain images through the different normalization techniques I’m testing.</p><p>This requires a lot of computing resources. More than I have needed for any previous project. Luckily, the University of South Carolina has pretty great <a href="https://www.sc.edu/about/offices_and_divisions/division_of_information_technology/rci/hpc_clusters/index.php">supercomputing resources</a>. I’m using the Hyperion cluster, which has 6,760 cpu cores in total. That’s a pretty substantial increase compared to my MacBook Pro (2 cores), and even our best linux machine in the lab (6 cores, 12 hyperthreaded). This means that I can create my own programs that process many datasets in parallel (hundreds or thousands at a time), rather than in serial order if I was processing the data on a typical desktop computer.</p><p>Just to illustrate the point further, if I processed the data on my laptop it would take *roughly* <strong>476 days </strong>(running continuously). I can’t wait that long, nor should I, for the answers to the questions I’m asking. The same data, processed on the cluster will take about <strong>1 week</strong> (running continuously).</p><p>That’s pretty impressive.</p><p>I have just started all of my jobs running, so I will write an update soon with a progress report. *Hopefully my programs don’t crash*.</p><p>I will also put some “how to” guides in the How to… section soon. These guides will cover some of the code, and techniques I’m using to process data using SLURM on the cluster.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9326f4dfabc9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-image/dissertation-supercomputer-brain-imaging-9326f4dfabc9">Dissertation + Supercomputer + Brain Imaging</a> was originally published in <a href="https://medium.com/the-image">The Image</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bio]]></title>
            <link>https://medium.com/selective-sapience/taylor-hanayik-bio-6c15cad63f8a?source=rss-c00b0e7f662------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c15cad63f8a</guid>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[personal]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[taylor-hanayik]]></category>
            <category><![CDATA[biography]]></category>
            <dc:creator><![CDATA[Taylor Hanayik]]></dc:creator>
            <pubDate>Sun, 11 Feb 2018 16:25:58 GMT</pubDate>
            <atom:updated>2018-05-28T18:56:49.555Z</atom:updated>
            <content:encoded><![CDATA[<p>I am a natural born problem solver, with an intense drive to search for the best solutions to tough questions. I often consider obstacles in both my personal life and work life puzzles to be solved with unrelenting ferocity.</p><p>I am a neuropsychologist, which is someone who specializes in studying and understanding the relationship between brain anatomy and behavior. My work is motivated by observing behavior impairments in clinical populations such as stroke survivors and those who have had a traumatic brain injury. I use many different MRI brain imaging techniques to explore how the brain is both functionally and structurally organized. Most of my research interests center around the core concept of perception, and more specifically, understanding the different brain networks that support different perceptual abilities. What we perceive is a large part of how we choose to behave and interact with the world, and difficulties arise when brain damage diminishes our perceptual abilities as evidenced by syndromes such as visual neglect, or receptive aphasia. By trying to understand the influence of brain damage (or disruption) on behavior, we can also start building a better understanding of how the brain is organized, and how it operates in generally healthy people as well.</p><p>Over the course of my scientific career I have gained a great respect for the complexity of studying this intricate relationship between brain and behavior. Through the years I have developed a diverse skill set to compliment my many interests. I routinely create new software for my work in neuroimaging and cognitive behavioral testing, and various hobby projects. A large portion of these skills are applicable to many fields, and I consider my diversified, technical, problem-solving abilities a strength in many settings.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fc006f4%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fc006f4%2F&amp;image=https%3A%2F%2Fe.enpose.co%2F%3Fkey%3DdRXnS9Gplk%26w%3D700%26h%3D425%26url%3Dhttps%253A%252F%252Fupscri.be%252Fc006f4%252F%253Fenpose&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3198cbc4946484848a0fafc00cd8ce7/href">https://medium.com/media/b3198cbc4946484848a0fafc00cd8ce7/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*VKmY51wpPrELOV4nMmVokQ.png" /><figcaption>A picture of me ;)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c15cad63f8a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/selective-sapience/taylor-hanayik-bio-6c15cad63f8a">Bio</a> was originally published in <a href="https://medium.com/selective-sapience">Selective Sapience</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use FSL brain extraction]]></title>
            <link>https://medium.com/selective-sapience/how-to-use-fsl-brain-extraction-9a83aa100796?source=rss-c00b0e7f662------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a83aa100796</guid>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[fsl]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[mri]]></category>
            <dc:creator><![CDATA[Taylor Hanayik]]></dc:creator>
            <pubDate>Sun, 11 Feb 2018 01:47:39 GMT</pubDate>
            <atom:updated>2018-02-11T01:50:18.473Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the most common tools in brain research is the MRI machine. An MRI enables researchers to collect images (usually in 3D) of our participant’s or patient’s brain. Once we have those images we then have to heavily process them to get usable data to answer our scientific questions.</p><p>One of the first processing steps in many brain imaging analysis workflows is to extract the brain tissue from inside the skull. This is necessary when we collect high resolution anatomical scans commonly referred to as “T1-weighted” images. These images do contain the brain, but also other tissues (bone, skin, fat, air) and anatomy (neck, upper spinal cord, eyes, mouth) that we don’t really need when studying the brain’s structure and function. Therefore it’s best to extract only the brain related tissue so that we can use it in all future analysis steps.</p><p>Below, you will see my original anatomical image (T1-weighted), along with my brain extracted image and the steps used to extract the brain.</p><h3>Original image</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pz1iMT2vmNlcDZ9JjtiIBg.png" /><figcaption>Original high resolution T1w image (no processing done yet)</figcaption></figure><h3>Brain extraction command explained</h3><p>To perform brain extraction using <a href="https://fsl.fmrib.ox.ac.uk/fsl/fslwiki">FSL</a> you can use either the graphical interface, or you can use the command line (Terminal app on MacOS or Ubuntu Linux). This how-to guide assumes you have FSL installed. If you don’t, then it’s best to stop reading here and go do that first. I’ll be using the command line to perform brain extraction in this guide.</p><pre>Usage: bet &lt;input_file_name&gt; &lt;output_file_name&gt; [options]</pre><pre>bet T1.nii T1_brain.nii -R -f 0.3 -o</pre><p>The above command bet takes an image containing brain+other tissue (skull, neck, etc.), and outputs the brain extracted image. The -R option instructs the program to use its robust method, which iterates the entire process multiple times. The -f 0.3 option sets what the developers call fractional intensity threshold. Basically, the number can range from 0 to 1, and smaller numbers result in larger brain outlines. So setting this number to something small, like 0.1 will result in a very conservatively extracted brain image, which might still include some unwanted non-brain tissue. Setting the fractional intensity to a larger value (e.g. 0.9) will result in an extremely strict brain extraction, which risks chopping of edges of cortex that are actually brain tissue. Usually midrange values work best. Lastly, the -o option tells the program to output an overlay image, which is great for QA (quality assurance). This overlay image allows you to see how well your extraction worked, and check if the process has accidentally stripped off brain tissue that you might actually have wanted.</p><p>Below, you can see the brain extracted image and the QA overlay image.</p><h3>Brain extracted image</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8eUDHiJs9lOLqQ6IQ8tYQ.png" /><figcaption>Brain extracted image using settings -R -f 0.3 -o</figcaption></figure><h3>QA overlay image</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_t7gAAZBlDpNDAxfjv2Y4w.png" /><figcaption>Original image with the brain outline overlayed in bright white</figcaption></figure><p>That’s it for for brain extraction with FSL! Generally, it’s a pretty straightforward process, and sets you up for success in later processing steps. Just keep in mind that it’s important to check the results, or the overlay file using the -o option since every brain is different. The same settings may not apply to every image you use the bet tool on.</p><p>Make sure to follow my writings and this publication for future how-to articles!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a83aa100796" width="1" height="1" alt=""><hr><p><a href="https://medium.com/selective-sapience/how-to-use-fsl-brain-extraction-9a83aa100796">How to use FSL brain extraction</a> was originally published in <a href="https://medium.com/selective-sapience">Selective Sapience</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PsychAdapt: A Method for Maintaining Performance During Perception Tasks]]></title>
            <link>https://medium.com/selective-sapience/psychadapt-a-method-for-maintaining-performance-during-perception-tasks-bab5e83168b8?source=rss-c00b0e7f662------2</link>
            <guid isPermaLink="false">https://medium.com/p/bab5e83168b8</guid>
            <category><![CDATA[psychadapt]]></category>
            <category><![CDATA[perception]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[methods]]></category>
            <dc:creator><![CDATA[Taylor Hanayik]]></dc:creator>
            <pubDate>Fri, 01 Dec 2017 19:03:14 GMT</pubDate>
            <atom:updated>2018-02-11T14:34:18.633Z</atom:updated>
            <content:encoded><![CDATA[<p>Often times in perception research we may wish to have participants respond to stimuli with a certain level of accuracy. Typically, most experimenters will use one of various methods (Weibull function, logistic function, etc.) to estimate a participant’s threshold at a given detection level, and stop the estimation after a certain criteria has been met (i.e number of reversals).</p><p>For example, one may choose to estimate a participant’s threshold of detection or discrimination performance at 75%, and then continuously present stimuli at that level in order to fit the needs of the experiment. However, the predicted stimulus threshold at 75% may not remain constant. This can be due to a variety of reasons such as participants becoming more familiar with a task, or fatigue effects that may arise over the course of a lengthy perception experiment.</p><p>Therefore, simply estimating a threshold for a given level of performance and testing at that level is not good enough. The task must be able to adapt to changes in participant performance for the duration of the experiment. Perceptual adaptation methods do exist, and are routinely used in sensation and perception research. However, many of these methods were developed to estimate a participant’s <em>threshold</em> for a given stimulus, but not necessarily <em>maintain</em> <em>a</em> <em>continuous level of difficulty</em>. These methods, such as PEST, staircase procedures, and QUEST are all reasonable, and proven methods at estimating stimulus thresholds for various tasks. They just weren’t designed to maintain task performance for the entirety of an experiment (as measured by % accurate answers).</p><p><a href="https://github.com/hanayik/PsychAdapt">PsychAdapt</a> was designed specifically to estimate stimulus thresholds at any level of accuracy using a logistic psychometric function, and crucially, to maintain that level of accuracy by continuously sampling at points around the predicted threshold level. Another key aspect of PsychAdapt is that it updates the logistic model after every trial therefore continuously adapting to changes in a participant’s performance while still maintaining a given level of accuracy, and therefore, average task difficulty.</p><p>If you’re interested in using PsychAdapt, or want to try it out, just download it from my Github page (linked below) and see what you can do with it. Keep in mind that PsychAdapt is currently under active development and the code may change rapidly or in unexpected ways. I’ll try to keep things from breaking as much as possible though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2cJg_IzYoIVGUyQyUtO5w.png" /><figcaption>Real data from a psychAdapt training session during a temporal perception experiment. The horizontal dotted line represents the 75% accurate point, and the vertical dotted line represents the participant’s estimated threshold at that level.</figcaption></figure><p><a href="https://github.com/hanayik/PsychAdapt">hanayik/PsychAdapt</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bab5e83168b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/selective-sapience/psychadapt-a-method-for-maintaining-performance-during-perception-tasks-bab5e83168b8">PsychAdapt: A Method for Maintaining Performance During Perception Tasks</a> was originally published in <a href="https://medium.com/selective-sapience">Selective Sapience</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Neuroscience needs a UX upgrade]]></title>
            <link>https://medium.com/the-image/neuroscience-needs-an-upgrade-b34044e2f4d7?source=rss-c00b0e7f662------2</link>
            <guid isPermaLink="false">https://medium.com/p/b34044e2f4d7</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cognitive-science]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[Taylor Hanayik]]></dc:creator>
            <pubDate>Mon, 27 Feb 2017 19:36:32 GMT</pubDate>
            <atom:updated>2019-07-14T17:14:28.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qd5FoQ2qPpCFgiZFrlxv9Q.png" /></figure><p>Neuroscience is in desperate need of an upgrade. Cutting edge work is often overly complicated by the obscure software we use, and surrounded by poor user experience. This increases the time from conception to completion of experiment ideas, and often causes significant headache.</p><p>Studying the brain is one of the greatest intellectual, and technical challenges of our time. The work requires a wide range of skills including software development, empirical design, statistical analysis, and academic prowess. We need software that <em>enables</em> the users, not software that intimidates them. Neuroscientists and Experimental Psychologists are solving hard problems — understanding the brain — but yet we routinely muddle through old code and decipher borrowed analysis pipelines in order to manage and analyze our data.</p><p>Research labs across the globe are in desperate need of software that makes neuroscience manageable no matter where they are, what operating system they’re using, or what they’re an expert in. Yes, there is software out there that allows you to collect, analyze, and publish scientific data, <strong>but the</strong> <strong>user interfaces are outdated and non-intuitive, which results in a poor experience.</strong></p><blockquote>We need software that makes neuroscience scalable, replicable, efficient, and enjoyable.</blockquote><p>I aim to please. I’m making it my mission to make software for science that others enjoy using.</p><p>My mission is just starting out, so there aren’t any miracle solutions yet, but I’m working on them!</p><p><em>Who am I?</em> I’m a neuroscientist, and software developer. I work at the University of Oxford as part of the Analysis Group. I work with the popular software package known as FSL. Writing software is my creative medium of choice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b34044e2f4d7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-image/neuroscience-needs-an-upgrade-b34044e2f4d7">Neuroscience needs a UX upgrade</a> was originally published in <a href="https://medium.com/the-image">The Image</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>