<?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[QMENTA Tech Blog - Medium]]></title>
        <description><![CDATA[Tech blog of QMENTA - Medium]]></description>
        <link>https://medium.com/qmenta-tech-blog?source=rss----cdbe97d8ddf0---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>QMENTA Tech Blog - Medium</title>
            <link>https://medium.com/qmenta-tech-blog?source=rss----cdbe97d8ddf0---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:12:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/qmenta-tech-blog" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to support people with multiple sclerosis during the coronavirus pandemic]]></title>
            <link>https://medium.com/qmenta-tech-blog/how-to-support-people-with-multiple-sclerosis-during-the-coronavirus-pandemic-be75cf15cc9a?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/be75cf15cc9a</guid>
            <category><![CDATA[multiple-sclerosis]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[healthtech]]></category>
            <category><![CDATA[neuroscience]]></category>
            <dc:creator><![CDATA[Carlota Balcells]]></dc:creator>
            <pubDate>Wed, 08 Apr 2020 15:19:47 GMT</pubDate>
            <atom:updated>2020-04-09T12:35:25.846Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/319/0*cAcg853Fcv0EhXfC" /></figure><p>People who have chronic diseases and receive drugs that affect the immune system as part of their treatment may be more at risk of exposure during coronavirus epidemics. This may be the case for people with Multiple Sclerosis (MS) and is something that is generating significant concern and anxiety between patients and their relatives. People with MS used to be young, in their 20s to 50s, which would imply by default, a good prognosis regarding the severity of coronavirus complications such as pneumonia. However, for most patients, this is not the case. First, patients with progressive MS who have a moderate to severe disability (e.g., being restricted to a wheelchair), are more likely to contract common bacterial and viral infections due to their limited mobility or sphincter and swallowing impairments. The increased frequency of infections implies they may have to take many courses of antibiotics. This may alter their microbiome and, as a result, suffer higher levels of immune senescence. For this reason, they may be predisposed to a less efficacious immune response against infection such as the coronavirus. Indeed, due to their mobility limitations, their lungs are more prone to develop secondary infections or pneumonia because of the impairment of self-cleaning. Therefore, patients with progressive MS and significant disabilities are at higher risk of developing coronavirus complications than others within their age group. For this reason, people with MS with a high disability should be considered a high-risk population and follow the most strict confinement rules for their safety.</p><p>The other group at risk, are relapsing MS cases receiving powerful immunomodulatory drugs for controlling the disease. MS drugs can impair the immune response in the cases of coronavirus. Recommendations from the National MS Society1, the MS International Federation2, or MS experts3 have provided guidelines for the use of MS drugs. Therapies such as interferon-beta, glatiramer acetate, teriflunomide, fingolimod, siponimod, dimethyl-fumarate, and natalizumab do not present a higher risk of complications for the coronavirus infection. For this reason, such therapies should be continued. However, high-efficacy therapies that deplete immune cell subpopulations such as alemtuzumab, rituximab, ocrelizumab, cladribine, or bone marrow transplantation, may significantly prevent the development of an effective immune response. For this reason, people undergoing these therapies may be at risk of serious complications. The guidelines recommend delaying the infusions of such drugs for three months, to avoid exposing such patients during the peak of the epidemics. Indeed, bone marrow transplants are currently banned due to the high levels of risk.</p><p>A theoretical risk is that people with MS may be predisposed to suffer other autoimmune diseases. Many autoimmune diseases are related to abnormal responses to common viral infections, this may suggest that some people may develop autoimmune diseases affecting the nervous system, such as Guillain-Barre syndrome or encephalitis. This risk is theoretical and probably very rare, but epidemiologic surveillance should be in place for detecting such cases.</p><p>Challenges will also occur when a vaccine for the virus becomes available. Patients receiving high-efficacy therapies and with significant immune cell depletion would be unable to develop an appropriate immune response to the vaccine. For this reason, the efficacy of the vaccine can be compromised. To develop an effective vaccination program for patients receiving such drugs, drug administration should be delayed and immune cell repopulation should be monitored, to achieve the minimum count that would make the vaccine effective. After vaccination, patients should be monitored for at least two weeks and assessed with serological tests, to see whether they have developed the appropriate IgG response to the virus. Only then should they resume their therapy for controlling MS.</p><p>In summary, people with MS should be reassured that their health is going to be protected by the health system, that will continue to advise the best strategies for protecting them against coronavirus, based on the recommendations described above. We are all fighting to solve this crisis as soon as possible to allow us to return to focusing on defeating MS and improve patients’ quality of life.</p><p>(1) <a href="http://www.nationalmssociety.org/What-you-need-to-know-about-Coronavirus-(COVID-19)/DMT-Guidelines-for-Coronavirus-(COVID-19)-and">www.nationalmssociety.org/What-you-need-to-know-about-Coronavirus-(COVID-19)/DMT-Guidelines-for-Coronavirus-(COVID-19)-and</a></p><p>(2) <a href="http://msif.org/news/2020/02/10/the-coronavirus-and-ms-what-you-need-to-know/">msif.org/news/2020/02/10/the-coronavirus-and-ms-what-you-need-to-know/. Updated March 24, 2020. Accessed March 24, 2020.</a></p><p>(3) <a href="https://www.ncbi.nlm.nih.gov/pubmed/32241953">Brownlee W, Bourdette D, Broadley S, Killestein J, Ciccarelli O. Treating multiple sclerosis and neuromyelitis optica spectrum disorder during the COVID-19 pandemic. Neurology. 2020 Apr 2. PMID: 32241953.</a></p><p><em>By Pablo Villoslada, MD, PhD</em></p><p><em>Pablo is a neurologist with more than 20 years of experience in Translational Medicine on biomarkers and new therapeutics for neurological diseases.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be75cf15cc9a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/how-to-support-people-with-multiple-sclerosis-during-the-coronavirus-pandemic-be75cf15cc9a">How to support people with multiple sclerosis during the coronavirus pandemic</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Imaging Trends From ECTRIMS Meeting in Stockholm]]></title>
            <link>https://medium.com/qmenta-tech-blog/top-5-imaging-trends-from-ectrims-meeting-in-stockholm-9c79b8020578?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/9c79b8020578</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[image]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[radiology]]></category>
            <category><![CDATA[multiple-sclerosis]]></category>
            <dc:creator><![CDATA[Carlota Balcells]]></dc:creator>
            <pubDate>Thu, 26 Sep 2019 13:13:44 GMT</pubDate>
            <atom:updated>2019-09-27T08:13:31.455Z</atom:updated>
            <content:encoded><![CDATA[<h3>Top 5 Imaging Trends From ECTRIMS 2019 Meeting in Stockholm</h3><p>The world largest meeting on Multiple Sclerosis, <a href="https://www.ectrims-congress.eu/2019.html">ECTRIMS 2019</a>, took place in Stockholm, Sweden. This article reviews the major trends in Imaging of this years&#39; congress.</p><ol><li><strong><em>The central vein sign</em></strong></li></ol><p>The central vein sign has been proposed as a novel imaging biomarker to improve the accuracy and speed of MS diagnosis. However, lack of standardization and validation has prevented its full implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*YtvitfRt1OOQTtuvfQZxVg.png" /></figure><p>At ETCRIMS 2019 the team from the Université de Lausanne (<a href="https://www.unil.ch/">unil.ch</a>) presented a new automatic method for detecting the central vein sign, which would improve the reproducibility of the technique. In addition, the team from Università Degli Studi Firenze (<a href="https://www.unifi.it/p-doc2-2019-200009-M-3f2a3d2b3b2a29-0.html">unifi.it</a>) and ULB Neuroscience Institute in Brussels (<a href="https://uni.ulb.ac.be)%0d">uni.ulb.ac.be)</a> showed that the central vein sign may distinguish patients based on their severity. Indeed, the team from Fleni in Buenos Aires (<a href="https://www.fleni.org.ar/">fleni.org.ar</a>) presented the SWAN-venule, a new susceptibility-based MRI technic for improving the sensitivity for detecting this sign. Finally, the team from the University of Toronto (<a href="https://www.utoronto.ca/">utoronto.ca</a>) presented the association between the central vein sign and the risk of cognitive impairment in patients with radiologically isolated syndromes. In summary, new evidence is being summed up to standardize and support the use of the central vein sign for improving the accuracy and accelerating the speed of MS diagnosis, which has implications in order to start disease-modifying therapies at earlier stages and change the disease prognosis consequently.</p><p><strong><em>2. T2 lesion evolution as a biomarker of progressive disease</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*FYPPbS3cLWGpmkC4rEh9_g.png" /></figure><p>T2 lesions are dynamic, showing changes along time. Expansion of T2 lesions has been associated with disease activity or disability worsening and was related to the pathological concept of chronic active lesions or smoldering plaques. The team from Universitat de Girona (<a href="http://www.udg.edu/en">udg.edu</a>) presented a convolutional neural network for identifying changes in chronic T2 lesions associated with longitudinal disability worsening. In addition, the team from Valencia provided evidence that T1/T2 ratios are associated with future clinical outcomes. The team from Ospedale San Raffaele in Milan (<a href="https://www.hsr.it/">hsr.it</a>) showed that changes in T2 lesions as slow expanding lesions are modulated by disease-modifying drugs such as fingolimod and natalizumab, which may be associated with lower disability worsening. Although we still lack validation regarding the pathological basis of the changes of T2 lesions, the association with disease course suggests they should be related to some of the key pathogenic mechanisms involves in disease progression.</p><p><strong><em>3. Connectomics in MS</em></strong></p><p>Advances in the Human Connectome Project has provided new tools for interrogating the microstructural damage in the MS brain as well as the preferential damage of specific white matter tracts by the disease. QMENTA (<a href="https://www.qmenta.com)%0d">qmenta.com)</a> presented at ECTRIMS his work in collaboration with the team from Barcelona showing that connectomics analysis allows discriminating between healthy and MS brain as well as identifying that long-tracts and commissural tracts are preferentially damaged by the disease. Indeed, statistical models for three relevant brain domains such as walking, vision or cognition were able to explain a significant portion of disability based on tract specific damage. These results were also confirmed in another dataset from the Hospital Clinic of Barcelona (<a href="https://www.clinicbarcelona.org/en">clinicbarcelona.org</a>). Indeed, the team from Boston showed the specific damage of the Medial Longitudinal Fasciculus measured by tractography and the presence of internuclear-ophthalmoplegia, a very robust model of tract-based damage in MS. High-resolution analysis of brain connective and track damage is starting to provide the ability to detect minute damage of the brain and solve the clinical-radiological paradox in MS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*9EvWnJEy0pzGYRsO3CEnwQ.png" /></figure><p><strong><em>4. Lesion (iron) rim</em></strong></p><p>The presence of iron rims around T2 lesions suggests the presence of activated macrophages phagocyting myelin and for this reason, are considered markers of chronic active plaques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*nWpV_dkk81jJzgh41IFZFg.png" /></figure><p>The team from Universität Wien (<a href="https://www.univie.ac.at/en/">univie.ac.at</a>)analyzed the presence of iron rims using a 7T magnet in a 7 years longitudinal study, finding an association of iron rim presence with disability accumulation and cognitive impairment. The team from Università di Verona (<a href="https://www.univr.it/en/">univr.it</a>) compared two different susceptibility-weighted images protocols for identifying iron rims for improving its identification, whereas the team from Univerzita Karlova in Prague (<a href="https://cuni.cz/uken-1.html">cuni.cz/uken-1.html</a>) analyze the iron content in deep grey matter as a marker of disease severity. The triad of central vein sign, the T2 slow expanding lesions and iron rims are becoming specific biomarkers for MS diagnosis and prognosis.</p><p><strong><em>5. Imaging demyelination</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*0E7OneTmGK--b2b5PvH2ww.png" /></figure><p>With the advent of remyelinating drugs, it is critical having imaging markers of demyelination and remyelination. The team from Vrije Universiteit Amsterdam (<a href="https://www.vu.nl/en">vu.nl/en</a>) and Cleveland Clinic (<a href="https://my.clevelandclinic.org/">my.clevelandclinic.org</a>) analyzed the correspondence between myelin sequences by MRI and the post-mortem pathology in order to validate the substrates of the proposed MRI markers of demyelination. Indeed, the team from Cleveland proposed a multi-modal approach for identifying active demyelination in order to achieve higher accuracy. The team from Boston Massachusetts General Hospital (<a href="https://www.massgeneral.org/">massgeneral.org</a>) analyzed the presence of cortical demyelination at 7T. Although at present the accuracy of these techniques are still not good enough for monitoring de- and remyelination, new advances are bringing us closer to this aim.</p><p><em>By Pablo Villoslada, MD, PhD</em></p><p><em>Pablo is a neurologist with more than 20 years of experience in Translational Medicine on biomarkers and new therapeutics for neurological diseases.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c79b8020578" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/top-5-imaging-trends-from-ectrims-meeting-in-stockholm-9c79b8020578">Top 5 Imaging Trends From ECTRIMS Meeting in Stockholm</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From image to information — 10 questions for QMENTA]]></title>
            <link>https://medium.com/qmenta-tech-blog/from-image-to-information-10-questions-for-qmenta-81d0c693b012?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/81d0c693b012</guid>
            <category><![CDATA[mri]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[image-analysis]]></category>
            <dc:creator><![CDATA[Jasmin Wachter]]></dc:creator>
            <pubDate>Fri, 16 Nov 2018 09:43:26 GMT</pubDate>
            <atom:updated>2018-12-03T14:40:14.570Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krXfd-baZnSCwUFiLjcqbQ.jpeg" /></figure><h3><strong>From image to information — 10 questions for QMENTA*</strong></h3><p>QMENTA is a start-up which supports customers in neuroscience and neuroradiology in analyzing image datasets with the support of their platform. In this interview, Christoph Barmet, the CEO of <a href="https://www.skope.swiss/">Skope</a>, wanted to know the challenges of aggregating and analyzing data from the perspective of a young company which is building its business in the MRI ecosystem. David Moreno, who leads the Neuroimaging Team at QMENTA, answered Christoph’s questions.</p><p>*This post was originally published on <a href="https://www.skope.swiss/">Skope’s blog</a></p><blockquote><strong>Christoph Barmet: What is QMENTA providing?</strong></blockquote><p><strong>David Moreno</strong>: In a nutshell, <a href="http://www.qmenta.com/">QMENTA </a>offers an AI-powered cloud-based platform to streamline the imaging workflow for clinical trials and clinical research in order to accelerate the discovery and development of new treatments for neurological diseases. The QMENTA platform was designed as an integrated environment for users to easily collaborate on projects in neurological diseases. We help investigators and doctors to aggregate data from different sources, whether it be 1 site in 1 country, or 20 sites in 10 countries, and to analyze imaging records with our scalable cloud infrastructure. Our processing algorithms enable investigators to quantify changes in and damages to the brain, to follow a longitudinal study, and to analyze trends in cohorts, thus supporting the decision-making on the disease diagnostics and prognosis in clinical research or during a clinical trial.</p><blockquote><strong>CB: What are the challenges in your image analysis work?</strong></blockquote><p><strong>DM</strong>: One of the main challenges we face is adapting these different standards and tools to be able to offer an easy-to-use platform, so that our users only need to worry about uploading the data, starting their desired analysis and studying the results. On our platform, images are automatically classified, which allows for an easy and seamless execution of biomarker analysis. In our automated pipelines, the outputs of a tool serve as input for the next tool. However, it is challenging to fit all inputs and outputs of the different tools, such as open access tools, proprietary QMENTA tools, or 3rd party tools to an internal standard so that they may be used as inputs or outputs of other tools and enable complete workflows.</p><blockquote><strong>CB: Image datasets are typically not standardized. What issues does this cause?</strong></blockquote><p><strong>DM</strong>: A standardized project with well-organized and homogeneous data is always desired. However, it is not always possible. Particularly, in retrospective projects, where data has been acquired at different centers, with different scanners and imaging protocols. Traditionally, this would mean a project quality nightmare given not all of the subjects will have the same number of files, the same modalities and definitely not the same filenames. This makes automation and scripting difficult and typically requires a lot of manual curation work. The quality control of the platform allows identifying outliers and non-compliant subjects with very little effort, so that they may be reacquired or excluded from a project. Internally, our algorithms are prepared to work with a reasonable range of image resolutions and quality levels — although of course, the better the quality of the input data, the better the quality and reliability of the results. So, it is always important to work with carefully acquired, high-quality data whenever possible.</p><blockquote><strong>CB: MR images have a contrast that is not quantitative, i.e., the grey scale value of an individual voxel has no direct physical correlate. Would an improved homogeneity of the datasets make analysis work easier and more powerful?</strong></blockquote><p><strong>DM</strong>: Yes, homogeneity of MR images is actually a hot topic. As you have mentioned, the intensity values which you get out of standard MRI sequences are not absolute. Therefore you cannot compare intensity values directly. However, there are some advanced sequences that give interpretable voxel values with a direct physical correlate. We are mostly using the MR images to derive information that is not based on absolute values such as volumetry, which relies on relative contrast change. Additionally, by applying preprocessing techniques such as denoising and intensity-correction, we compensate for this lack of homogenization. But it has also been proven that the differences between the MR scanners introduce variation. Hence, when using data from multiple scanners, the differences in volume you need to detect must be bigger in order to be able to see a significant effect. If the homogenization is improved, it will indeed reduce that kind of variation/noise-level and will make all of the measurements more accurate, and we would be able to measure more minute changes.</p><blockquote><strong>CB: You have mentioned the two aspects volume and contrast. Is it correct that volume measurements are more important to you than the interpretation of contrast?</strong></blockquote><p><strong>DM</strong>: Yes, this is generally the case for many of the applications we are involved in. There are two types of properties of the brain which are commonly measured using MRI. For example, we measure macroscopic geometric properties such as volume. Extracting volumetric quantification depends entirely on a good tissue to tissue contrast to delineate boundaries. Hence, sequences which offer the best contrast are used, but the absolute voxel values are irrelevant and arbitrary. Other types of images, referred to as ‘quantitative images’ actually do measure absolute values of physical parameters relating to microscopic tissue properties, such as iron concentration or cell density. In these cases, the voxel value has a physical meaning, includig diffusion-weighted imaging, T1 mapping or R2* mapping. Both types of quantification are important for different applications, but volumetry is one of the most commonly used tools in many CNS trials.</p><blockquote><strong>CB: Another aspect of imaging is accuracy. MR images can be inaccurate for many reasons. Which are the artifacts you struggle with the most?</strong></blockquote><p><strong>DM</strong>: The most common artifacts are a cut field of view, wrap-around, intensity gradients from B0 field inhomogeneity and Gibbs ringing artifacts or ghosting. In general, artifacts should always be avoided. For a reliable result, it is crucial to set up a good sequence protocol and have the right procedure to take the image, e.g., to avoid motion. Yet I would argue that not all of them pose a real problem. Minor artifacts can usually be dealt with through our preprocessing techniques.</p><blockquote><strong>CB: You say that a minor image artifact is acceptable. Do you have favorites within different artifact?</strong></blockquote><p><strong>DM</strong>: When measuring the geometry of the brain, artifacts that are mistaken by the algorithm for an actual brain structure are very difficult to correct: a Gibbs ringing line could be taken for the interface between the brain and the cranium that is actually not there or an overlap caused by aliasing where the nose is coming into the occipital lobe. Other types of artifacts can be dealt with more easily: inhomogeneity of the magnetic field strength, magnetic susceptibility distortions, or the ground level of noise in the image are examples for this.</p><blockquote><strong>CB: How much do you benefit from high resolution? Are there applications where you are missing structures due to the fact that the resolution was not better?</strong></blockquote><p><strong>DM</strong>: It depends on what you would like to achieve in terms of the trade-off between accuracy and time invested in the analysis. E.g., when taking anatomical images, usually a resolution of 1 mm isotropic is good if using a 3T scanner. If you would like to go higher, the measures will be more accurate. This is definitely possible on research scanners, but the acquisition time and the computation cost will increase. In cases where the resolution is higher than 2–3 mm, the measurements will be less reliable and you need a higher reference value for comparison. In other images, e.g., in diffusion imaging using a 3T scanner, a resolution between 1 mm and 2 mm is good for typical whole-brain connectivity measurements.</p><p>However, it is true that a higher resolution helps you to detect and quantify structures such as small grey-matter nuclei. As computing power keeps increasing, we will also be able to handle higher resolution imaging data in less time. In the end, it truly depends on the application and objective. If you want to do a whole-brain analysis, going too high in the resolution might not give you the advantage in terms of the time you have to invest. If you want to focus on a specific region or study the connection between two different regions, higher resolution can be a clear advantage.</p><blockquote><strong>CB: How would you define the ideal MR image?</strong></blockquote><p><strong>DM</strong>: There is no one ideal image to acquire, as the optimal imaging parameters depend on the type of scanner available, on the type of subjects, the purpose of the study, disease, and biomarker to be analyzed. However, there are two important desired qualities to all imaging acquisitions: the absence of imaging artifacts and high isotropic resolution. While traditionally clinical images were only meant for 2D visual inspection by a clinician or radiologist and typically have high resolution in the viewing plane, biomarker algorithms work at their best with 3D images. For example, 1 mm is ideal for anatomical images taken on a 3T scanner and 2 mm for diffusion images, although we can handle lower resolution data as well.</p><blockquote><strong>CB: Is it a typical case for you to analyze data from one subject where you look at data that was acquired over several sessions over a period of a few months or even years?</strong></blockquote><p><strong>DM</strong>: It is a frequent case for us. We deal with the longitudinal change of MS lesions or longitudinal change of the volume, e.g., see if there is atrophy occurring. In these cases, the more consistent the image datasets are, the better and more reliable the results can be. This means optimally having the same machine with the same parameters making the images. We can work with images from different machines with different parameters as we can adjust for that, but the reliability will always be higher for homogeneous datasets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81d0c693b012" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/from-image-to-information-10-questions-for-qmenta-81d0c693b012">From image to information — 10 questions for QMENTA</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dealing with Asynchrony when Writing End-To-End Tests with Puppeteer + Jest]]></title>
            <link>https://medium.com/qmenta-tech-blog/dealing-with-asynchrony-when-writing-end-to-end-tests-with-puppeteer-jest-701b5540613e?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/701b5540613e</guid>
            <category><![CDATA[puppeteer]]></category>
            <category><![CDATA[jest]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[automation-testing]]></category>
            <dc:creator><![CDATA[Albert Alises]]></dc:creator>
            <pubDate>Mon, 15 Oct 2018 09:06:28 GMT</pubDate>
            <atom:updated>2018-10-17T08:39:46.304Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In this article we present an overview on how to deal with asynchrony when performing end-to-end tests, using <a href="https://github.com/GoogleChrome/puppeteer">Puppeteer</a> as a web scraper and <a href="https://jestjs.io/">Jest</a> as an assertion library.</blockquote><blockquote>We will learn how to automate user action on the browser, wait for the server to return data and for our application to process and render it, to actually retrieving information from the website and comparing it to the data to see if our application actually works as expected for a given user action.</blockquote><p>This article appeared originally on <a href="https://dev.to/aalises/dealing-with-asynchrony-when-writing-end-to-end-tests-with-puppeteer--jest-n37">Dev.to</a> 🤖</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YePdEGEbyBEqQbB3RD255g.png" /></figure><p>You finally got your wonderful web application up and running, and the time for testing has come…. There are many types of test, from <a href="https://en.wikipedia.org/wiki/Unit_testing">Unit tests</a> where you test the individual components that compound your application, to <a href="https://en.wikipedia.org/wiki/Integration_testing">Integration tests</a> where you test how these components interact with eachother. In this article we are gonna talk about yet another type of tests, the <a href="https://www.techopedia.com/definition/7035/end-to-end-test">End-To-End (e2e) tests</a>.</p><p>End-to-end tests are great in order to test the whole application from a user perspective. That means testing that the outcome, behavior or data presented from the application is as expected for a given user interaction with it. They test from the front-end to the back-end, treating the application as a whole and simulating real case scenarios. Here it is <a href="https://medium.freecodecamp.org/why-end-to-end-testing-is-important-for-your-team-cb7eb0ec1504">a nice article talking about what e2e tests are and their importance</a>.</p><p><a href="https://medium.freecodecamp.org/why-end-to-end-testing-is-important-for-your-team-cb7eb0ec1504">Why End-to-End Testing is Important for Your Team</a></p><p>To test javascript code, one of the most common frameworks for assertions is <strong>Jest</strong>, which allows you to perform all kinds of comparisons for your functions and code,<strong> </strong><a href="https://jestjs.io/docs/en/tutorial-react">and even testing React components</a>. In particular, to perform e2e tests, a fairly recent tool, <strong>Puppeteer</strong>, comes to the rescue. Basically it is a <a href="https://en.wikipedia.org/wiki/Web_scraping"><strong>web scraper</strong></a> based on Chromium. According to the repo:</p><blockquote><em>“Puppeter is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol”</em></blockquote><p>It provides some methods so you can simulate the user interaction on a browser via code, such as clicking elements, navigating through pages or typing on a keyboard.<strong> It is like having a highly trained monkey perform real case tasks on your application 🐒</strong></p><p>You can find the github repos of both testing libraries here:</p><ul><li><a href="https://github.com/facebook/jest">GitHub - facebook/jest: Delightful JavaScript Testing.</a></li><li><a href="https://github.com/GoogleChrome/puppeteer">GoogleChrome/puppeteer</a></li></ul><p>Given so, the <strong>Puppeteer + Jest</strong> become has become a nice, open source way of testing web applications, by opening the application on the headless browser provided by puppeteer and simulating user input and/or interaction, and then checking that the data presented and the way our application reacts to the different actions is as expected with Jest.</p><p>In this article we will not cover the whole workflow of testing with puppeteer + jest (such as installing, or setting the main structure of your tests, or <a href="https://www.valentinog.com/blog/ui-testing-jest-puppetteer/">testing forms</a>), but focus on one of the biggest things that we have to take into account when doing so: <strong>Asynchrony</strong>.</p><p>🤘 <a href="https://blog.logrocket.com/end-to-end-testing-react-apps-with-puppeteer-and-jest-ce2f414b4fd7">But hey, here you have a great tutorial on how to test with Puppeteer + Jest, to get you started.</a></p><p>Almost all of the web applications contain indeed some sort of <strong>asynchrony</strong>. A request is sent to the back-end. Then we wait for the result of that request and retrieve the data from the back-end response, and that data is then rendered on screen. However, Puppeteer performs all the operations sequentially, <strong>so… how can we tell him to wait until asynchronous events have happened?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*fJnHqkrkJKdH9-datgfKHQ.gif" /><figcaption><em>Figure 1: I feel you, but sometimes you have to wait just a little bit for everything to be rendered and ready, so your e2e tests do not crash and burn</em></figcaption></figure><p>Puppeteer offers you a way to <strong>wait for certain things to happen</strong>, using the waitFor functions available for the <a href="https://pptr.dev/#?product=Puppeteer&amp;version=v1.8.0&amp;show=api-class-page">Page</a> class. The changes you can track are visual changes that the user can observe. For instance you can see when something in your page has appeared, or has changed color, or has disappeared, as a result of some asynchronous call. Then one would compare these changes to be what you would expect from the interaction, and there you have it. How does it work?</p><h3>Waiting, Waiting, Waiting…⏰</h3><p>The waitFor function set in Puppeteer helps us deal with asynchrony. As these functions return Promises, usually the tests are performed making use of the <a href="https://javascript.info/async-await">async/await</a> ES2017 feature. These functions are:</p><h4>1) waitForNavigation</h4><pre>await page.waitForNavigation({waitUntil: &quot;networkidle2&quot;});</pre><p>Whenever a user action causes the page to navigate to another route, we sometimes have to wait a little bit before all the content is loaded. For that we have the waitForNavigation function. It accepts an options object in which you can set a timeout (in ms), or waitUntil some condition is met. The possible values of waitUntil are (according to the <a href="https://pptr.dev/">wonderful puppeteer documentation</a>):</p><ul><li><strong>load</strong> (<em>default</em>): consider navigation to be finished when the load event is fired.</li><li><strong>domcontentloaded</strong>: consider navigation to be finished when the DOMContentLoaded event is fired.</li><li><strong>networkidle0:</strong> consider navigation to be finished when there are no more than 0 network connections for at least 500 ms.</li><li><strong>networkidle2:</strong> consider navigation to be finished when there are no more than 2 network connections for at least 500 ms.</li></ul><p>Typically, you will want to wait until the whole page is loaded ({waitUntil: load}), but that does not guarantee that everything is operative. What you can do is wait for a specific DOM element to appear that assures you that the whole page is loaded. You can do that with the following function:</p><h4>2) waitForSelector</h4><p>This function waits for a specific <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors">CSS selector</a> to appear, indicating that the element it matches to is on the DOM.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98bcd86573aaa4fa1703c05f15bdbc8a/href">https://medium.com/media/98bcd86573aaa4fa1703c05f15bdbc8a/href</a></iframe><h4>3) waitForFunction</h4><p>The last one waits for some function to return true in order to proceed. It is commonly used to monitor some property of a selector. It is used when the selector is not appearing on the DOM but some property of it changes (so you cannot wait for the selector because it is already there in the first place). It accepts a string or a closure as arguments.</p><p>For example, you want to wait until a certain message changes. The testing would be performed by first getting the message using the evaluate() Puppeteer function. Its first parameter<strong> is a function which is evaluated in the browser context</strong> (as if you were typing into the Chrome console).We then perform the asynchronous operations that change the message (clicking a button or whatever 🖱🔨), and then waiting for the message to change.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0fa64030f3d11c2226bc7e8b18c30cdb/href">https://medium.com/media/0fa64030f3d11c2226bc7e8b18c30cdb/href</a></iframe><p>Using these waitFor functions we can detect when something in our page changes after an async operation, now we just need to retrieve the data we want to test.</p><h3>Retrieving data from selectors after an Async operation</h3><p>Once we have detected the changes caused by our asynchronous code, we typically want to extract some data from our application that we can later compare to the <strong>expected visual result</strong> from a user interaction. We do that using evaluate(). The most common cases that you face when retrieving data are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*b_C9XaM24b_AS0jJO5QJqA.png" /><figcaption>Figure 2: Most of the times, when testing the result of your asynchronous call</figcaption></figure><h4>- Checking that a DOM element has appeared</h4><p>A pretty common case is checking that a given element has been rendered on the page, hence appearing on the DOM. For instance, after saving a post, you should find it in the saved posts section. Navigating there and querying if indeed the DOM element is there is the basic type of data that we can assert (as a <strong>boolean assertion</strong>).</p><p>Find below an example of checking if a given post with an id post-id, where the id is a number we know, is present on the DOM. First we save the post, we wait for the post to be saved, go to the saved posts list/route and see that the post is there.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ab89d51a92a1692ec3d3806dfd96d61/href">https://medium.com/media/1ab89d51a92a1692ec3d3806dfd96d61/href</a></iframe><p>In there, we can observe a couple of things.</p><ol><li>The aforementioned need to have <em>unique ids</em> for the tested elements. Given so, querying the selector is way easier and we do not need to do nested queries that get the element based on its position on the DOM (<em>Hey, get me the first tr element from the first row of that table</em> 🙋🏼).</li><li>We see how we can pass arguments to the evaluate function and use it to interpolate variables into our selectors. As the function is being evaluated in another scope, you need to bind the variables from node to that new scope, and you can do that via that second parameter.</li></ol><h4>- Checking for matching property values (e.g innerHTML, option…)</h4><p>Now imagine that instead of checking that an element is on the DOM, you actually <strong>want to check if the list of saved posts rendered on the page actually are the posts you have saved</strong>. That is, you want to compare an <strong>array of strings</strong> with the post names, e.g [&quot;post1,&quot;post2&quot;], with the saved posts of a user (which you can know beforehand for a test user, or retrieve from the server response).</p><p>For doing that, you need to query all the title elements of the posts and obtain a given property from them (as it could be their innerHTML, value, id…). After that, you have to convert that information to a <a href="https://www.oreilly.com/library/view/javascript-the-definitive/9781449393854/ch06s09.html"><strong>serializable value</strong></a> (the evaluate function can only return serializable values or it will return <strong>null</strong>, that is, always return arrays, strings or booleans, for instance, not HTMLElements…).</p><p>An example performing that testing would be:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5ea1ed54f584ae8cae2f5b78b364e4d/href">https://medium.com/media/f5ea1ed54f584ae8cae2f5b78b364e4d/href</a></iframe><p>Those are the most basic cases (and the ones you will be using most of the time) for testing the data of your application.</p><h4>-Asserting that the waitFor is succesful</h4><p>Another thing you can do instead of evaluate() is, in case you just want to assert a boolean selector or a particular DOM change, is just assign the waitFor() call to a variable and check if it is true. The downside of that method is that you will have to set an estimated <strong>timeout</strong> to the function <strong>that is less than the Jest timeout set at the start</strong>. ⏳</p><p>If that timeout is exceeded the test will fail. It requires you to put an estimate timeout that you think is enough for the element to be rendered on your page after the request is made (<em>Hmm yeah, I think that around 3 seconds should be enough…</em>🤔).</p><p>For example, we want to check <strong>if a new tag has been added to a post</strong> querying the number of tag elements present before and after adding tags, that is, comparing their length and see if it has increased, denoting that the tag has indeed been added.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5b5f5cd1b459ab41cd10879ef66e9fe/href">https://medium.com/media/a5b5f5cd1b459ab41cd10879ef66e9fe/href</a></iframe><blockquote>Note that you also have to bind the variables to the waitForFunction() as the third element if you specify the waitForFunction parameter as a closure.</blockquote><p>In order to get the data to compare with the information we have retrieved from the page, i.e. our <strong>ground truth</strong>, an approach is to have a controlled test user in which we know what to expect for each one of the tests (number of liked posts, written posts). In this approach we can then <strong>hardcode</strong> 😱 the data to expect, such as the post titles, number of likes, etc… like we did on the examples of the previous section</p><p>You can also <strong>fake the response data from the server</strong>. That way you can test that the data obtained from the back-end is consistent with what is rendered into the application by responding predictably, inmutable data which you know beforehand. This serves for testing if the application responds predictably (parses correctly) to the data returned from the server for a given call.</p><p>On the next section we will see how to hijack the requests and provide custom data which you know. Puppeteer provides a method to achieve that, but if you want to dwelve more into faking XMLHttpRequest and pretty much all the data your test manages, you should take a look into <a href="https://sinonjs.org/">Sinon.js</a> 💖</p><p><a href="https://github.com/sinonjs/sinon">GitHub - sinonjs/sinon: Test spies, stubs and mocks for JavaScript.</a></p><h3>Intercepting Requests and faking Requests with Puppeteer</h3><p>Imagine that you want to check if the list of saved posts rendered on the page is indeed correct given a list of saved posts for a certain user that we can obtain from an endpoint called /get_saved_posts. To enable requestInterception on puppeteer we just have to set when launching puppeteer</p><pre>await page.setRequestInterceptionEnabled(true);</pre><p>With that, we can set all the request to intercept and mock the response data. Of course, that requires <strong>knowing the structure of the data returned by the back-end</strong>. Typically, one would store all the fake data response objects into a separate class and then, on request interception, query the endpoint called and return the corresponding data. This can be done like that, using the page.on() function:</p><blockquote>Disclaimer: For the API we assume the somewhat typical format https://api.com/v1/endpoint_name, so the parsing to retrieve the endpoint is specific to that format for exemplification purposes, you can detect the Request made based on other parameters of course, your choice 💪</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1807cd821b85f9ea23ef67f724451788/href">https://medium.com/media/1807cd821b85f9ea23ef67f724451788/href</a></iframe><blockquote><em>You can see the </em><a href="https://pptr.dev/#?product=Puppeteer&amp;version=v1.8.0&amp;show=api-class-request"><em>full documentation for the Request class here</em></a></blockquote><p>One can easily see that, depending on the size of your API, this can be quite complex, and also one of the charms of the e2e testing is to also test if the back-end is giving the correct information and data 😵.</p><p><strong>All these methods require for you to enter known data, hardcoded as a response or as a variable to compare</strong>. Another way to get the data to compare is to intercept the response and store the data into the variable.</p><h3>Getting the data to assert from the <a href="https://pptr.dev/#?product=Puppeteer&amp;version=v1.8.0&amp;show=api-class-response">Response</a></h3><p>You can also intercept responses and get the data from there. For instance, we can intercept the get_saved_posts response and store all the posts into a variable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/824f88425fe8fd57ab8230dc465046e6/href">https://medium.com/media/824f88425fe8fd57ab8230dc465046e6/href</a></iframe><blockquote>✍🏼 Note: The page.on() methods for request and response are typically placed on the beforeAll() method of your tests, after declaring the page variable, as they define a global behavior of your test.</blockquote><p>So after your application has rendered everything you can query the DOM elements and then compare with the posts variable to see that your app effectively renders everything as expected.</p><h3>Summary</h3><p>In this article we provided a comprehensive overview on how to test applications that present asynchronous data fetched from a server, by using Puppeteer + Jest.</p><p>We have learned how to implement waiting for certain events to happen (e.g. DOM mutations), that trigger visual changes caused by our asynchronous data. We have gone through the pipeline of detecting, querying and comparing those changes with known data so we can assess that the application works as expected from a user perspective.</p><blockquote>Got any questions?! Go out here, start implementing tests like a madman and pray for them to pass, happy coding! 🙇🏻</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=701b5540613e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/dealing-with-asynchrony-when-writing-end-to-end-tests-with-puppeteer-jest-701b5540613e">Dealing with Asynchrony when Writing End-To-End Tests with Puppeteer + Jest</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Researchers are shifting their focus: why Research Data Management matters]]></title>
            <link>https://medium.com/qmenta-tech-blog/researchers-are-shifting-their-focus-why-research-data-management-matters-6068dd7e3b5b?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/6068dd7e3b5b</guid>
            <category><![CDATA[neuroimaging]]></category>
            <category><![CDATA[healthcare-technology]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[neuroscience]]></category>
            <dc:creator><![CDATA[Marc Ramos]]></dc:creator>
            <pubDate>Thu, 27 Sep 2018 14:00:08 GMT</pubDate>
            <atom:updated>2018-09-28T09:18:14.631Z</atom:updated>
            <content:encoded><![CDATA[<h4>In the last two decades, there has been a huge amount of effort and investments in the field of neuroimaging to accelerate and improve the techniques, methods, and tools. But all these efforts don’t make sense without well defined, standard best-practices and guidelines to amplify research power.</h4><p><em>This article was inspired by the study “</em><a href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0200562"><em>Data management and sharing in neuroimaging: Practices and perceptions of MRI researchers</em></a><em>”, by </em><a href="http://twitter.com/JohnBorghi">@JohnBorghi</a> <em>and Ana E. Van Gulick.</em></p><h4>Is RDM a new thing?</h4><p>This question can have different answers. All the research project steps involve <strong>Research Data Management</strong> (RDM), from the data collection to the publication of the results. It is designed to make the process efficient and to meet the expectations of universities, research funders and legislation.</p><p>Since humanity stopped forgetting and started documenting, the first librarians collected, organized and stored in tall shelves and deep rooms the information and data of their era, and because of researching, RDM appeared naturally, in one way or another. RDM-related practices have been used for many years as long as research required it. It includes activities such as data back up, secure sensitive data, organize the data in an understandable folder structure and keep a consistent file naming, documentation about the procedures followed to get to the result, curation and sharing of the results. Science and research have evolved and matured over the years to answer more difficult questions. RDM has become very complex: collected data is very heterogeneous among the different research fields, and new concerns have appeared when thinking about releasing the data used to extract the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/0*iRWxvk6P6_-WB6OK.jpg" /><figcaption><a href="https://www.thedataschool.co.uk/laura-peterson/documenting-tableau-workbook/">source</a></figcaption></figure><p>RDM as it is understood today started with the <strong>Digital Curation Centre</strong> (DCC), where all the steps of the research process (Data collection, data analysis, and data sharing) are performed in the digital reality. But digital records can be at risk of obsolescence because if there is a lack of data curation and documentation for future usage. Data that is not curated and documented is fragile and volatile, and eventually useless and unpractical.</p><p>The original function of DCC is described as</p><blockquote><em>“…to provide a national focus for research into curation issues and expertise in the processes of digital archiving, preservation and management. Particular emphasis will be placed on the needs of users of the Centre’s outputs.”</em></blockquote><h4>How RDM accelerates research</h4><p>The emerging perceptions of open science and scholarly communication practices aim to allow researchers a much better and faster access to publications and data. It also wants to improve the way lab groups work, trying to establish good practices and standards so the full research workflow is consistent, homogeneous and re-usable within the research group and (why not) universities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9f3jo-HJ0h4nBWem.png" /><figcaption><a href="https://e-bc.in/data-research.php">source</a></figcaption></figure><p>Thanks to coordinated efforts and institutions’ support on writing research data policies and services, they are already measuring improvements in research capabilities. It’s possible to <strong>do more with less</strong> if you take good care of the RDM of your project.</p><blockquote><strong>Measuring the Benefits</strong></blockquote><blockquote><strong>37%</strong> Projected saving in staff time from moving Oxford University Classics Dept database to centralized virtual service</blockquote><blockquote><strong>69%</strong> Increase in citations for clinical trial publications associated with making their microarray datasets publicly available</blockquote><blockquote><strong>500%</strong> Growth in datasets downloaded from Economic and Social Data Service 2003–2008</blockquote><blockquote><strong>One-day delay cut to 5 minutes</strong> Estimated time-saving for crystallography researchers to access results from Diamond synchrotron, by deploying digital processing pipeline &amp; metadata capture system</blockquote><p>Way to go, research!</p><h4>The neuroimaging scenario</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*0zFE1PriBgsNh6B8.jpg" /><figcaption><a href="https://pixshark.com/mri-brain-abnormal.htm">source</a></figcaption></figure><p><strong>Magnetic Resonance Imaging</strong> (MRI) is one of the most common techniques in neuroimaging. It is a very powerful tool to analyze the composition and function of the brain. But when it comes to allowing <strong>reproducibility</strong> over experiments and granting access to some data, the community faces a lot of challenges. One way of proving reproducibility and reliability would be to perform a <strong>test-retest</strong>: if you scan a person twice with one scanner using the same protocol in 7 days span, you should have identical acquisitions. The same thing happens with data analysis: if two researchers perform an analysis using a similar tool over the same data, the results should come out the same (this is known as “<strong>computational reproducibility</strong>”).</p><p>Data is very complex and heterogeneous. Most of the neuroimaging software is developed to sort out data stored in a specific format and some have narrowed-down requirements in order to achieve great performance. Brain scans can have very different properties, the number of options and settings available in an MRI scan are way more than the ones you would find in your favorite photo sharing app, so developers and researchers have written a large quantity of software to cover all these options and to extract the valuable information from the brain scan. Imagine mastering all of them, it would take years and years, even if its documentation is neat and grandma-proof.</p><p>Data management procedures are still immature. Researchers and paper reviewers have arisen awareness on this topic. The focus is now on proper data management and stewardess to support data sharing. When you ask someone in the neuroimaging field about how they are managing the data, how they plan for data management, storage, and documentation or if they share data or code publicly, you will get assorted answers. This is shown in a <a href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0200562">study</a> where <strong>144 people</strong> working in different institutions and centers of the field took a survey answering questions regarding RDM (research data management). Ratings of the maturity of the RDM (from ad-hoc to mature) showed significantly low results during the data sharing phase. The main limitations for researchers to implement RDM in their process are time and lack of best practices. The main motivations are preventing loss of data, ensuring access to collaborators and to enable openness and reproducibility in science. Emerging practices including publishing in open access journals, preregistering the study, data and code sharing, were largely positive although very few demonstrate to be actively putting it in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzLfqt0kS0qKFx19N9C6pw.png" /><figcaption>Ratings of research practice maturity. Average ratings of research practice maturity on a scale from 1 (ad-hoc)<br>to 5 (refined) between three phases of an MRI research project (data collection, data analysis, and data sharing)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*yL6oL998dzcHfBT-bihIAw.png" /></figure><h4>FAIR data for open science.</h4><p>One of many initiatives towards this goal is called <strong>FAIR </strong>(Findable, Accessible, Interoperable and Re-usable). The <a href="https://www.nature.com/articles/sdata201618">principle</a> was defined by many experts in the field: researchers, librarians, funders, publishers. It states that data needs to be effectively documented, organized and saved before it can be evaluated, shared, and re-used. Something as obvious as that becomes a nightmare in a field where so many stakeholders have their own internal processes to handle the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*PJXlNTHFbwtQlp9U.png" /><figcaption><a href="https://slgo.ca/en/fair-principles">source</a></figcaption></figure><p>Efforts are being put to arrange MRI data in a reproducible way. New file structure standards (like <a href="http://bids.neuroimaging.io/">BIDS</a>) are being designed and neuroimaging metadata and brain scan platforms are breaking through the neuroscience research jungle to boost sharing capabilities. Of course, there are many <strong>barriers</strong> and concerns that can put the process on hold: privacy, private interests, lack of experience, regional data regulations, and so on. More work outside laboratories and scientific facilities has to be done to clear the path for the open data reality.</p><h4>Are we ready to open research in neuroimaging?</h4><p>The big question does not have a positive answer at the moment. There are too many fears, concerns, difficulties and interests to publish and release the precious data to the world. Fear of criticism; concerns of people taking unethical advantage of the findings; lack of training on how to share data in a way that can be understood and re-used by other researchers; selfish interests of not wanting to publish something that could be worth lots of money.</p><p>Against all odds, new standards for data structure and data analysis are coming up, awareness in reproducibility and re-usability is rising and more and more scientists are embracing open science principles and data sharing. Open data initiatives with freely available data are spreading, mostly on resting-state and task fMRI community but also in structural and diffusion fields. User-friendly software is gaining traction and new technologies enable ways of making the code more stable and reliable. All we need is the coordinated efforts of individual researchers, institutions, journals, professional organizations and grating agencies to accelerate this process towards open science in neuroimaging which will enable the development of transparent, reliable, reproducible and groundbreaking neuroimaging tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6068dd7e3b5b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/researchers-are-shifting-their-focus-why-research-data-management-matters-6068dd7e3b5b">Researchers are shifting their focus: why Research Data Management matters</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preact + Typescript + Parcel + Redux Zero: Rebuilding the QMENTA Front-End focusing on Performance…]]></title>
            <link>https://medium.com/qmenta-tech-blog/preact-typescript-parcel-redux-zero-rebuilding-the-qmenta-front-end-focusing-on-performance-a7c879c5b288?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/a7c879c5b288</guid>
            <category><![CDATA[health-technology]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Albert Alises]]></dc:creator>
            <pubDate>Thu, 13 Sep 2018 11:14:32 GMT</pubDate>
            <atom:updated>2018-09-17T12:07:40.734Z</atom:updated>
            <content:encoded><![CDATA[<h3>Preact + Typescript + Parcel + Redux Zero: Rebuilding the QMENTA Front-End focusing on Performance and Minimalism.</h3><blockquote>At<a href="https://www.qmenta.com/"> QMENTA </a>we have been rebuilding the front-end from scratch, seeking simplicity and performance not only in design, but also in the technology stack used for it . This article provides a comprehensive overview of the different parts that compound the new platform, such as how decorators are extensively used or the choice of technology stack.</blockquote><p>The<a href="http://platform.qmenta.com/"> QMENTA platform</a> has been going on for quite some time now. The old platform front-end was built using well established technologies like <em>JQuery, Dojo or D3</em>. While being feature rich, one of the problems was the scalability and maintainability of such a big codebase and it being quite complex in terms of UX/UI. In medical imaging storing platforms, data and operations are complex enough for the user to manage, so making it more difficult in terms of user experience or visual design is a no-go zone. 🙅🏻</p><p>One of the main challenges coming into this year was to rebuild the front-end from scratch to accommodate the new necessities of a growing neuroimaging processing hub, to make it clean and in a way that can be easily maintainable, scalable and up to date with the latest technologies on front-end development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTHoMZCTxQqAlk_y6Qt8IA.png" /><figcaption>Figure 1: Register Page for the new front-end</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qu5OpIJgdL0Ul6UGTHBA0Q.png" /><figcaption>Figure 2: Project List view for all our projects on the new front-end</figcaption></figure><p>Having speed, performance and minimalism as a flagship, the aim was to build a single page web application using the <em>FrameworkOfChoice, </em>which can be VueJS, AngularJS, React, or other frameworks such as <a href="https://hyperapp.js.org/">Hyperapp</a>. Up until there, pretty standard and mainstream definition for a web application project. After pondering the different frameworks and technologies, we chose<a href="https://preactjs.com/"> Preact</a> coupled with <a href="https://www.typescriptlang.org/">Typescript</a> as the core libraries of choice for the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*iA9k8LKb3qwG4LLpD-U42Q.jpeg" /><figcaption>Figure 3: Preact and Typescript logos.</figcaption></figure><h3>But… why Preact + Typescript?</h3><p>Preact, according to <a href="https://preactjs.com/">its official documentation</a>, is a “<em>fast 3kB alternative to React with the same modern API”</em>. It offers everything we like and love about React such as the <a href="https://reactjs.org/docs/faq-internals.html">Virtual DOM</a>, <a href="https://reactjs.org/docs/react-component.html">Component-Based</a> development, lifecycle hooks and <a href="https://reactjs.org/docs/introducing-jsx.html">jsx syntax</a> for generating dynamically, data-driven interfaces.</p><p>Preact does all this while keeping the API leaner (<a href="https://gist.github.com/Restuta/cda69e50a853aa64912d">React 16.2.0 + React DOM is 31.8Kb while Preact is only 4Kb, both gzipped</a>), making it faster, more lightweight, and reducing a lot of the noise added by React. The principal differences with React can be seen <a href="https://preactjs.com/guide/differences-to-react">here</a> . Some of them are:</p><ul><li>this.props and this.state are passed to render() for you.</li><li>You can just use class for CSS classes.</li><li>Getting rid of a lot of React / React DOM specific functions like React.CreateElement or ReactDOM.render , being separate exports thus avoiding the aliasing, making your code cleaner and more readable.</li></ul><p>Regarding performance, testing it on a simple <a href="http://todomvc.com/">TODO application</a>, the results are astounding, with Preact being among the fastest of them approached by <a href="https://vuejs.org/">Vue.js</a> and circa 170ms faster than React. Amazing, isn’t it? 🌠</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*MELZG_Cdp2xzxGMjXX-Wag.png" /><figcaption>Figure 4: TodoMVC Performance comparison between different frameworks. Seen at: <a href="https://developit.github.io/preact-perf/">https://developit.github.io/preact-perf/</a></figcaption></figure><blockquote>You can perform the performance test on your device by going <a href="https://developit.github.io/preact-perf/">here</a> .</blockquote><p>Not everything is great of course, one can find that the community is not as big or responsive as the React one (it is not that widely used after all). Some sweet functionalities are still not there, such as support for <a href="https://reactjs.org/docs/fragments.html">fragments</a> (So you still have to create some good old <em>div </em>wrappers). Furthermore, some libraries are still not supported, but worry not, <a href="https://github.com/developit/preact-compat">preact-compat </a>creates a layer on top of Preact to make it fully compatible with React. Magic!⚡️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwvw3Y-pbzJOVCno6qKn-Q.png" /><figcaption>Figure 5: Analysis List View</figcaption></figure><p>We ❤️ <a href="https://www.typescriptlang.org/"><strong>Typescript</strong></a><strong>. </strong>A lot. For an application that is rich in data and manages a lot of different metadata and results from APIs,<strong> </strong><em>Typescript</em> offers us static type checking that comes very handy when defining the different data structures that our application handles, as well as the structure of the props and state of the different components, so we know what to expect, have it documented and have all the data to be consistent at all different stages.</p><blockquote>You can create interfaces with Typescript that characterize the input/output data your application manages. In our case, it helps modeling the data necessary to characterize a subject, or an analysis so everything is consistant and we know what to expect when dealing with those structures</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/045eb9b54a80b58a98b24076f1004ffb/href">https://medium.com/media/045eb9b54a80b58a98b24076f1004ffb/href</a></iframe><p>With Typescript, you can also create <strong>Custom Components </strong>like the one below. This enforces the classes extending <strong>ComponentForm</strong> to implement methods for handling the form change and also setting the form model (i.e the object with all the fields required for the form such as the user, password, etc…), this model is then required as the state of the component, also a method submitForm()has to be implemented. With that, we have a skeleton or structure that all forms follow with a generic form component that can have any given number of fields.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/716ef397c555a9a5edd6c65dde393701/href">https://medium.com/media/716ef397c555a9a5edd6c65dde393701/href</a></iframe><p>An example of a simplified generic Preact Component our application uses that enforce Typescript. We can see the different lifecycle hooks and how the <strong>props and state </strong>of the component are set as Typescript interfaces.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a3e41c662a39a214f91d52696fcf99b/href">https://medium.com/media/4a3e41c662a39a214f91d52696fcf99b/href</a></iframe><h3>Decorators, Decorators… 💎</h3><p>Ah, <a href="https://www.sitepoint.com/javascript-decorators-what-they-are/">Javascript decorators</a>. As a concept, they simply act as wrappers to another function, extending its functionality, like <a href="https://reactjs.org/docs/higher-order-components.html"><strong>higher-order functions</strong></a>. We extensively use decorators to keep our code cleaner and separate the back-end, state or application management concerns and provide a more structured way to define common functions across components like connecting to the Redux store, connecting to the API or defining some asynchronous behavior to happen before or after the responses are sent (sort of like method proxies), so we do not have to repeat code and provide an elegant, minimal way to define these behaviors. We use them for:</p><ul><li><strong>Asynchronous Method Interceptors</strong></li></ul><p>For managing asynchronous behavior we use <a href="https://github.com/k1r0s/kaop-ts">kaop-TS</a> , which is a decorator library that provides some method interceptors written in Typescript. With them, we can plug in behavior at a join point on the asynchronous method, like perform some operations before the method starts, or after the method has finished, or plugging in a method that intercepts an error and performs some logic. We can see the beforeMethod decorator being used in the APIDecorators.ts snippet.</p><ul><li><strong>Connecting with and Managing API calls</strong></li></ul><p>For managing the calls to the QMENTA API, we implemented a @platformRequest(url,method) decorator that you can wrap in any function of with signature function(params,error?,result?) and convert it into an asyncronous call to the API with certain parameters to send in the request and receive the result JSON object from the call or the error thrown by the request. The implementation of the decorator can be seen below as well as an example method calling it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a312d85654aee0fcd966df285805d24/href">https://medium.com/media/2a312d85654aee0fcd966df285805d24/href</a></iframe><blockquote>The decorator uses <a href="https://github.com/axios/axios">axios</a> under the hood to perform the request <em>🕵</em></blockquote><p>Also, the state management and routing of our application use decorators to extend functionality to the components to, for example, connect it to the store or listen to be rendered at a specific route. On the next section we will talk a little bit more about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKZgTtbYVOQ7w321HY7eKQ.png" /><figcaption>Figure 6: Specific Subject files viewing with the edit file metadata modal.</figcaption></figure><h3>State Management and Routing 🚀</h3><p><strong>State management</strong> is one of the main concerns of any growing React application. When the number of entities and components keep growing, the need for global state management arises. <a href="https://redux.js.org/">Redux</a> is one of the mainstream solutions that aims to solve that. This post assumes some previous knowledge of how Redux operates; if not, <a href="https://medium.freecodecamp.org/understanding-redux-the-worlds-easiest-guide-to-beginning-redux-c695f45546f6">here you can find a guide on how it works</a> .</p><p>In our application, we did not want to have a big store and we tried to keep it as small as possible, reducing the use of the shared state, enforcing encapsulation and separation of concerns. Given so, we decided to use a lightweight (less than 1Kb) version called <a href="https://github.com/concretesolutions/redux-zero">Redux-Zero</a> . While having some differences, it also reduces a lot of the unnecessary overhead (for the purpose of our application) that Redux has. It still has a <strong>store </strong>(albeit just one), which provides all the global state that we want to manage; in our case, session and project information, current pages, notifications of the current project id, among others. It also has <strong>no reducers</strong>, which ironically <em>does reduce </em>the complexity of the library quite a lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SA7dOCYhVhzEoC7d-k8s8A.png" /><figcaption>Figure 7: Brain Tractography Fiber visualization on the front-end using WebGL</figcaption></figure><p>To get it up and working, just wrap your root component with the &lt;Provider store={store}/&gt;component and set the store on it, an object created by the createStore(state) method, where the state is the object that contains our shared state. To change that state, you create <em>actions </em>which are just pure functions that update this global state , e.g setSession = (state,val) =&gt; ({sessions: val});</p><p>To call those actions from a component, we have to <strong>connect </strong>that component to the store. Connecting a given component to the store allows the component to gain access to some actions and the global state via props. We created a decorator to simplify the process of connecting a component to the store.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/332eb88fa99baa2dad5a188254910714/href">https://medium.com/media/332eb88fa99baa2dad5a188254910714/href</a></iframe><p>With this decorator, we can plug it in on top of any component specifying the actions the component will get as props. e.g by putting @connectStore({removeSession, setCurrentPages}); right on top of the declaration of the component, you have access to these actions inside the component which update the global state on the store, while also having access to the global state itself via props ( this.props.removeSession(); ). With this method, we provide a cleaner, more elegant and compact way to connect a component to the store.</p><p>Another integral part of any modern application is the option to <a href="https://scotch.io/tutorials/routing-react-apps-the-complete-guide"><strong>route</strong></a><strong> </strong>between the different views of the project depending on the URL or other parameters, being able to pass parameters to the routes, etc. <a href="https://github.com/ReactTraining/react-router">A common solution is to use the amazing router that comes with React</a> . As much as we like it, it comes with a lot of functionality that we would not really be using, so we made our own <a href="https://github.com/k1r0s/preact-routlet">preact-routlet</a> , a simple router for Preact/React based in decorators.</p><p>The intricacies of it are simple, just wrap your application with the router component &lt;RouterOutlet /&gt; and you are ready to go. You can also wrap some components with &lt;PathLookup shouldRender={condition}/&gt; specifying a condition to render some path, or use the &lt;RouterOutlet redirect=&quot;/route&quot; shouldRedirect={condition} /&gt; to specify a condition which, in case it is met, the router automatically redirects to the specified route (for example, we use it to redirect to the login if the session is invalid or has expired).</p><p>To navigate to a route you just have to call navigate(&quot;/route&quot;) and to specify a Component to be rendered at a specific route, you just have to plug the decorator on top of the component e.g@renderOnRoute(&quot;forgot-password&quot;) making it clear and visual in which route the component is rendered.</p><p>With that, we have a compact way of representing routing and state management with the signatures on top of the component that makes it very readable. A dummy component that connects to the store and is rendered on a given route can be seen below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79903e2647726fcb75306ff50f4fda71/href">https://medium.com/media/79903e2647726fcb75306ff50f4fda71/href</a></iframe><h3>Bundling with Parcel 📦</h3><p><a href="https://parceljs.org/">Parcel</a>, not to be confused with the australian band <a href="https://www.youtube.com/watch?v=PTFK96KNfIE">Parcels</a>, defines itself as a <em>“blazing fast, zero configuration web application bundler”. </em>At the start of the project, we used the fairly standard Webpack for bundling our application. It required quite a lot of plugins and configuration. (webpack.config.ts). Switching to Parcel, we don’t need configuration for typescript or html files anymore, just adding npm install --save-dev parcel-bundler parcel-plugin-typescript does the trick.</p><p>The only remaining thing is to specify an entry point and output directory and voilà, it just works. The difference in speed and performance compared to webpack is not very acute in our case (it’s essentially the same in terms of speed), but it’s the zero configuration and minimality of Parcel what makes it our bundler of choice for the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*33PAPx5lUcCMpB8_6xOGJA.png" /><figcaption>Figure 8: Screenshot of the build of the whole application. Parcel’s magic💥</figcaption></figure><p>The only downside is that, in order to get the <a href="https://parceljs.org/hmr.html">hot reloading </a>working for the dev server in Preact + Typescript, you have to add the module.hot.accept() flag to your root component and specify some types in the render function (the third argument as foo.lastChild as Elementfor Typescript not to complain. The fix can be seen on the following snippet.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f444f98f5b9cef6a2b1cbad3eab57a8/href">https://medium.com/media/3f444f98f5b9cef6a2b1cbad3eab57a8/href</a></iframe><h3>Unit and e2e acceptance testing with Jest + Puppeteer</h3><p>Testing is an integral part of any project. In our project, we use the fairly standard <a href="https://jestjs.io/">Jest</a> for <a href="https://jestjs.io/docs/en/tutorial-react">testing our components</a> coupled with <a href="https://github.com/GoogleChrome/puppeteer">Puppeteer</a> , wich is a web scraper, or having your own highly trained monkey perform the operations you tell him/her on the browser, like clicking a certain button or dragging the mouse over an element. Using those, we can perform some operations on the front-end via a headless Chrome API and then check for expected results with Jest, like checking an element of confirmation appears or the warning message displayed is correct👌. If you want to learn more on how to use Jest+Puppeteer for testing in React, t<a href="https://blog.bitsrc.io/testing-your-react-app-with-puppeteer-and-jest-c72b3dfcde59">here is a nice article talking about it</a>.</p><blockquote>Just an example of testing the pagination component using Jest</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48cc8d7568bd120d7e407502bf4ba468/href">https://medium.com/media/48cc8d7568bd120d7e407502bf4ba468/href</a></iframe><p>The building, testing and deploying process is automated using <a href="https://jenkins.io/">Jenkins</a> , with the tests running in a docker container in order to perform the tests in an environment with all the graphical libraries puppeteer requires. The <em>*fairly simple*</em> pipeline can be seen in Figure 9:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*htmLcnyPJwXMruqIlDfz9g.png" /><figcaption>Figure 9: Jenkins pipeline for deploying the front-end</figcaption></figure><blockquote>We build the binaries, perform the unit tests and then deploy to a testing dominion which varies based on the git branch we are on. Then we perform the e2e tests on that dominion.</blockquote><p>The docker image used for the container in which Jenkins runs the pipeline is a custom version of the <a href="https://github.com/alekzonder/docker-puppeteer">Puppeteer Docker Image</a> , based on the ubuntu 16.04 image with node 8. The dockerfile can be seen below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38671810c1d741c0eb756d4d28476a9d/href">https://medium.com/media/38671810c1d741c0eb756d4d28476a9d/href</a></iframe><blockquote>We add the “deployuser” to the container because Jenkins mounts its workspace directory (owned by deployuser) and it requires the user inside the container and outside to be the same in order to perform all the operations required for the deployment to be succesful.</blockquote><p>This way, we avoid the whole application to suddenly crash and burn or <a href="http://www.adamhammond.com/90s/radiohead/">turn into one of those amazing 90’s websites</a>.</p><h3>Summary</h3><p>I n this article we have presented an overview of the technology stack we used for rebuilding the QMENTA front-end and how it focuses on being small, efficient and simple. We have also seen how we use decorators in our project and the different parts that compound it such as API calls, routing, state management etc.</p><p>By setting the foundations and patterns of the project, the next steps are continuously improving the new front-end in a scalable and maintainable way and adding meaningful features to match the functionality of the old platform, while keeping it minimal. <a href="https://preview.qmenta.com/#/login">You can see how it goes here</a>. 👋</p><blockquote>Special kudos to <a href="https://medium.com/u/35dfdea57de1">Ciro Ivan</a> for setting the foundations of the project, carrying the heavyweight through most of it and teaching me the ways of the H̶a̶c̶k̶e̶r̶m̶a̶n̶ Javascript ninja. 🤖 🏋🏻</blockquote><p><em>Want to experiment with these technologies in your next projects? Yay! Here you have some boilerplates we created in github to get you up and running as soon as possible.</em>🤘🏼</p><ul><li><a href="https://github.com/aalises/preact-typescript-parcel-starter"><em>Preact + Typescript + Parcel</em></a></li><li><a href="https://github.com/k1r0s/preact-poi-starter"><em>Preact + Poi</em></a></li><li><a href="https://github.com/k1r0s/bleeding-preact-starter"><em>Preact + Typescript + Webpack</em></a></li></ul><h3>Who are we?</h3><p><a href="https://www.qmenta.com/"><strong><em>QMENTA</em></strong></a><strong><em> </em></strong><em>is a brain imaging and data analytics platform in the cloud aiming to accelerate the discovery and development of cures for neurological diseases.</em></p><p><em>Want to contribute unraveling the brain mysteries and join our growing team? </em><a href="https://www.qmenta.com/jobs/"><em>Check out all our engineering jobs and apply here! </em></a><em>😃</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F0fdd61%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F0fdd61%2F&amp;image=https%3A%2F%2Fucarecdn.com%2Feeb58784-3055-4f3f-848e-27c6fde576e3%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/75b2553294db787f9d84516e41f1417a/href">https://medium.com/media/75b2553294db787f9d84516e41f1417a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7c879c5b288" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/preact-typescript-parcel-redux-zero-rebuilding-the-qmenta-front-end-focusing-on-performance-a7c879c5b288">Preact + Typescript + Parcel + Redux Zero: Rebuilding the QMENTA Front-End focusing on Performance…</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Early Signs of Brain Ischemia on CT and MR; Can AI Lend a Helping Hand?]]></title>
            <link>https://medium.com/qmenta-tech-blog/early-signs-of-brain-ischemia-on-ct-and-mr-can-ai-lend-a-helping-hand-a6a08647e18e?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/a6a08647e18e</guid>
            <category><![CDATA[stroke]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mri]]></category>
            <category><![CDATA[brain]]></category>
            <dc:creator><![CDATA[Quantib]]></dc:creator>
            <pubDate>Tue, 21 Aug 2018 07:57:38 GMT</pubDate>
            <atom:updated>2018-08-21T09:23:25.504Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Fz2k6Or6cecMI8rcSbjQw.png" /></figure><p>A poor functional outcome of stroke patients may be predicted by early signs on CT and MRI. Radiology exams carried out within 6 hours after stroke onset can contain important insights supporting the prediction of post-thrombolysis hemorrhage of the infarct after thrombolysis.(1) It is, therefore, of utmost importance to establish these signs as early and precisely as possible.</p><p>However, the early signs of a stroke on non-contrast CT (NCCT), and to a lesser extent MRI, are not straightforward to interpret using the naked eye. The most turned-to technique is NCCT, as it is the faster and more economical option. Hence, early stroke detection on NCCT could be an interesting area for artificial intelligence (AI) algorithms to offer their support and add value to the radiological part of the diagnosis. Although it is significantly easier to recognize early signs of brain ischemia on MRI, and MRI facilitates detection at an earlier stage of the disease process, AI could still play an important role by quantifying observations and removing inter-observer variance.</p><p>Below, we will discuss the most important early signs of a stroke on both NCCT and MRI. Additionally, we demonstrate the potential of AI by discussing a number of AI-based methods addressing the difficulties with an early image-based diagnosis of stroke and supporting image interpretation.</p><p><strong>Early Signs of Stroke on NCCT</strong></p><p>On NCCT, a stroke typically presents itself in the territory of the middle cerebral artery. For simplicity’s sake, we will discuss them in two groups: (semi)<em> quantitative</em> signs (e.g. as thirds of the middle cerebral artery) or <em>qualitative</em> signs (more of describing nature, e.g. obscuration of the lentiform nucleus).(1–5)</p><p><strong>(Semi-) Quantitative Signs on NCCT</strong></p><p>Ischemic cytotoxic edema can be observed on CT due to the failure of ion pumps, leading to edematous changes. A decreased attenuation of water in the brain will locally result in lower Hounsfield Units, characterizing the location of the infarct and allowing for (semi) quantitative measurements as described below.(6)</p><ol><li><em>Hypoattenuation in the basal ganglia<br></em>Hypoattenuation specifically in the basal ganglia indicates an early ischemic stroke. This sign can be observed within six hours after onset. In case of a middle cerebral artery (MCA) infarction, the basal ganglia are frequently involved.(1,4,6)</li><li><em>Hypoattenuation of the vascular territory of the middle cerebral artery<br></em>Next to hypoattenuation of the basal ganglia, a decreased attenuation in the area of the MCA may be indicative of an infarct. A semi-quantitative scoring system is applied by determining whether less or more than one-third of the MCA flow territory is involved.(1,2,4)</li><li><em>The ASPECT score<br></em>Technically speaking, the ASPECT (Alberta Stroke Program Early CT) score is not a sign, but a tool to analyze hypoattenuation in different brain regions. The ASPECT score is a number between 1 and 10 based on the number of affected brain regions. Each affected region gets appointed a score based on the level of hypoattenuation, giving an estimation of the functional outcome expected at 3 months. The lower the score, the worse the expected outcome is estimated to be.(7) As the measurements of this score require manual assessment by the radiologist, it should be considered a semi-quantitative variable.(1)</li></ol><p><strong>Qualitative signs</strong></p><p>Most early signs of a stroke are of a qualitative nature as there are no dedicated scoring systems involved. Below, we discuss the six most prominent qualitative signs of stroke on NCCT.</p><ol><li><em>Obscuration of the lentiform nucleus<br></em>The area of the lentiform nucleus may show decreased attenuation, leading to a less clear delineation between white and grey matter. This indicates cytotoxic edema and can be observed within 2 hours after stroke onset. Obscuration of the lentiform nucleus can also be referred to as “blurred basal ganglia”.(2,6,8)</li><li><em>Loss of gray- and white-matter differentiation in the basal ganglia<br></em>This sign presents itself similarly to the “obscuration of the lentiform nucleus” and care should be taken not to confuse the two. It is characterized by decreased contrast and loss of precise delineation of the gray-white matter interface of all basal ganglia.(2,9)</li><li><em>Cortical sulcal effacement<br></em>This expression of early ischemia on NCCT becomes apparent in the margins of the cortical sulci by expressing a decreased image contrast. The delineation between gray and white matter becomes less precise, caused by a localized mass effect.(1,2,4)</li><li><em>General focal hypoattenuation<br></em>In addition to previously discussed hypoattenuated-related signs, discrete focal hypoattenuation can be detected by comparing brain structures to their contralateral counterparts. Additionally, assessing different locations within the same structure in search for abnormalities can support establishing increased local radiolucency.(2,4)</li><li><em>The loss of insular ribbon, obscuration of Sylvian fissure sign<br></em>Fading discrete delineation of the gray-white matter interface at the lateral margin of the insula is often referred to as “the loss of the insular ribbon”.(8,9) This manifestation is caused by hypodensity and swelling of the insular cortex.(6)</li><li><em>The “dense artery sign”<br></em>Hyperattenuation of a brain vessel is called the “dense artery sign” and mostly occurs in the middle cerebral artery. This causes brightness on the CT images compared to any other (contralateral) artery or vein due to intravascular clot formation in the artery.(2,3,9)</li></ol><p>Since quantitative signs can be extracted directly from the images, it is straightforward to use them to develop algorithms. Rule-based algorithms, which basically tell the computer stepwise what to do, are ideal to digitize the determination of quantitative scores related to stroke detection. An example is the aforementioned ASPECT score. Exploiting qualitative signs, on the other hand, requires the development of more complex methods. Qualitative parameters are great candidates for deep learning (DL) algorithms. By using large datasets as input, DL-related neural networks can learn to exploit parameters that are not necessarily used in the current diagnosis process. By deploying DL techniques, qualitative signs can be transformed into more objective quantitative measuring tools.</p><p><strong>Early Signs of Stroke on MRI</strong></p><p>MRI is a more time-consuming procedure; therefore, most standard stroke protocols rely on NCCT. However, since MR imaging can offer additional information compared to NCCT images (9–12), a number of early signs of stroke as detected on MRI are discussed below.</p><ol><li><em>Signal intensity changes on diffusion-weighted imaging (DWI) MRI <br></em>Diffusion-weighted imaging (DWI) MRI is able to uncover changes in signal intensity in the stroke-affected area within minutes after stroke onset (for more information on this technique, read our blog on <a href="https://www.quantib.com/blog/how-can-ai-help-determine-time-of-ischemic-stroke-onset">Quantib’s blog on measuring TSS</a>)<em>. </em>Hence, the DWI sequence offers a valuable tool in addition to NCCT due to the short time frame in which it is able to detect ischemia. Furthermore, the sensitivity of DWI outperforms the sensitivity of most NCCT-based signs.(13)</li><li><em>High-intensity zone on FLAIR images</em> <br>After an ischemic event, fluid-attenuated inversion recovery (FLAIR) images show no changes in signal intensity in the first 3 hours. After that period, the ischemic infarction zone will develop a high signal intensity zone. FLAIR imaging, therefore, presents itself as a suitable method to determine the time of onset of the suspected ischemia<em>.</em>(10,14) Additionally, T1- and T2-weighted images can be used to assess stroke cases. In the case of a large stroke flow, voids can be observed in the large arteries, as the T2W image will display areas of increased focal signal intensity. T1W images show signal intensity changes in case of ischemia. Unfortunately, T1W analysis and T2W analysis can only be performed 16 and 8 hours respectively after the onset of a stroke, dismissing their added value to the case of acute stroke detection.(12)</li></ol><p><strong>Using MRI to determine TSS</strong> <br>As treatment trajectory depends strongly on time since stroke onset (TSS), quantification of TSS is of the utmost importance. MRI enables TSS measurement by combining DWI and FLAIR images and by determining the mismatch between both. Learn more about this technique in <a href="https://www.quantib.com/blog/how-can-ai-help-determine-time-of-ischemic-stroke-onset">Quantib’s blog on measuring TSS</a>.(14–16)</p><p><strong>In 3 Steps Towards AI-Based Software for Early Stroke Detection</strong></p><p>Artificial intelligence algorithms can assist stroke detection in various ways. Different solutions are discussed in the remainder of this article, entrusting to the computer a smaller or bigger role in the process.</p><ol><li><em>Highlighting what is already there</em><br>The most straightforward way in which AI could assist clinical practice is by reading images and making possible abnormalities stand out more, and therefore easier to assess for a radiologist. An example of such an algorithm, solely magnifying the presence of stroke on NCCT, is proposed by Przelaskowski et al. In their approach, which uses a wavelet-based image processing method, hypodense areas in the images are enhanced, making it easier for the radiologists to detect possible infarcts. Using their approach on CT images that were obtained between 1 and 5 hours after stroke onset, they found a substantial gain in sensitivity, which increased from 12.5% to 56.3%.(17)</li><li><em>Solving pieces of the puzzle as we know it<br></em>For every relevant question you would like to answer in case of a stroke suspicion, you can try to develop an algorithm. In other words: you teach the computer to do what radiologists would do in the way radiologists are used to doing it. For example, for automated delineation, measurement of infarct volume, and thrombus detection and measurements. An algorithm would add value by decreasing the time investment required and by eliminating inter- and intra-observer variance.(18–20) A range of examples of such algorithms can be found in digitizing familiar scores used for stroke assessment. For example, the ASPECT score for outcome prediction. Takahashi et al. developed a computer-aided detection scheme to identify which patients are eligible for treatment with tPA. The algorithm used linear discriminate analysis to classify all ASPECT regions as hypo-attenuated or normal based on NCCT images obtained within 6h after stroke onset. Results showed an average accuracy of 85% for the hypoattenuation classification per patient, with the assessment of an experienced neuroradiologist as a ground truth.(21)</li><li><em>Solving the problem the AI way from scratch: machine learning<br></em>Lastly, one can deploy machine learning (ML) or DL to extract more valuable information from stroke images than radiologists are currently able to do with the naked eye. By presenting a large volume of manually labeled images to the computer, the algorithm will learn to associate the treatment outcome to certain image characteristics. Interestingly, if sufficient data is presented, ML algorithms can learn to solve this problem “in its own way”, not necessarily utilizing the same image characteristics as a radiologist.</li></ol><p>Bentley et al. developed an ML algorithm for diagnosis support by predicting the development of spontaneous intracerebral hemorrhage (SICH) after administering tPA to stroke patients. They trained an algorithm using 116 acute ischemic stroke patients treated with intravenous thrombolysis, of which 16 developed SICH. The ML software was able to identify 9 out of 16 SICHS on CT brain images, compared with detecting 1–5 SICH cases by standard prognostic scores (e.g. SEDAN and HAT score).(22) A promising start for developing a powerful tool to help prevent additional brain damage.</p><p><strong>Future Perspectives</strong></p><p>Currently, the detection and assessment of stroke are strongly qualitative in nature. However, more quantitative diagnosis processes could be of great value. They would improve the objective character of the assessment, next to offering the possibility of detecting smaller abnormalities. AI algorithms have great potential to contribute to such a shift. Additionally, the software can speed up the process or provide more differentiated information.</p><p><em>Are you curious about what Quantib and QMENTA are doing related to stroke diagnosis? Check out the webpage of our </em><a href="https://www.quantib.com/caseproject"><em>CASE project</em></a><em> and learn more about the implementation of the stroke decision support system.</em></p><p><strong>Bibliography</strong></p><ol><li>Wardlaw, J. M. &amp; Mielke, O. Early Signs of Brain Infarction at CT: Observer Reliability and Outcome after Thrombolytic Treatment — Systematic Review. <em>Radiology</em> <strong>235,</strong> 444–453 (2005).</li><li>Provenzale, J. M., Jahan, R., Naidich, T. P. &amp; Fox, A. J. Assessment of the Patient with Hyperacute Stroke: Imaging and Therapy. <em>Radiology</em> <strong>229,</strong> 347–359 (2003).</li><li>Pressman, B. D., Tourje, E. J. &amp; Thompson, J. R. An early CT sign of ischemic infarction: Increased density in a cerebral artery. <em>Am. J. Roentgenol.</em> <strong>149,</strong> 583–586 (1987).</li><li>Kjos, B. O., Brant Zawadzki, M. &amp; Young, R. G. Early CT findings of global central nervous system hypoperfusion. <em>Am. J. Neuroradiol.</em> <strong>4,</strong> 1043–1048 (1983).</li><li>Jordan, Y. J., Jordan, J. E., Lightfoote, J. B. &amp; Ragland, K. D. Quality outcomes of reinterpretation of brain CT studies by subspecialty experts in stroke imaging. <em>Am. J. Roentgenol.</em> <strong>199,</strong> 1365–1370 (2012).</li><li>Thurnher, M. Radiology Assistant. <em>Brain Ischemia — Imaging in Acute Stroke</em> (2088). Available at: <a href="http://radiologyassistant.nl/en/p483910a4b6f14/brain-ischemia-imaging-in-acute-stroke.html.">http://radiologyassistant.nl/en/p483910a4b6f14/brain-ischemia-imaging-in-acute-stroke.html.</a></li><li>Gillard, F. &amp; Sair, H. Radiopaedia. <em>Alberta stroke program early CT score (ASPECTS)</em> Available at: <a href="https://radiopaedia.org/articles/alberta-stroke-program-early-ct-score-aspects-1.">https://radiopaedia.org/articles/alberta-stroke-program-early-ct-score-aspects-1.</a></li><li>Tomandl, B. F. <em>et al.</em> Comprehensive Imaging of Ischemic Stroke with Multisection CT. <em>RadioGraphics</em> <strong>23,</strong> 565–592 (2003).</li><li>Lum, C. ing of Acute Stroke 1 OBJECTIVES. <em>Perfusion</em> <strong>48109,</strong> 75–96 (2006).</li><li>Makkat, S. <em>et al.</em> Signs of acute stroke seen on fluid-attenuated inversion recovery MR imaging. <em>Am. J. Roentgenol.</em> <strong>179,</strong> 237–243 (2002).</li><li>Beauchamp, N. J., Ulug, A. M., Passe, T. J. &amp; van Zijl, P. C. MR diffusion imaging in stroke: review and controversies. <em>RadioGraphics</em> <strong>18,</strong> 1269–1283 (1998).</li><li>Allen, L. M., Hasso, A. N., Handwerker, J. &amp; Farid, H. Sequence-specific MR Imaging Findings That Are Useful in Dating Ischemic Stroke. <em>RadioGraphics</em> <strong>32,</strong> 1285–1297 (2012).</li><li>Barker, P. B. <em>et al.</em> Acute stroke: evaluation with serial proton MR spectroscopic imaging. <em>Radiology</em> <strong>192,</strong> 723–732 (1994).</li><li>Thomalla, G. <em>et al.</em> Negative fluid-attenuated inversion recovery imaging identifies acute ischemic stroke at 3 hours or less. <em>Ann. Neurol.</em> <strong>65,</strong> 724–732 (2009).</li><li>Legrand, L. <em>et al.</em> Do FLAIR vascular hyperintensities beyond the DWI lesion represent the ischemic penumbra? <em>Am. J. Neuroradiol.</em> <strong>36,</strong> 269–274 (2015).</li><li>Mair, G. &amp; Wardlaw, J. M. Imaging of acute stroke prior to treatment: current practice and evolving techniques. <em>Br. J. Radiol.</em> <strong>87,</strong> 20140216 (2014).</li><li>Przelaskowski, A. <em>et al.</em> Improved early stroke detection: Wavelet-based perception enhancement of computerized tomography exams. <em>Comput. Biol. Med.</em> <strong>37,</strong> 524–533 (2007).</li><li>Gillebert, C. R., Humphreys, G. W. &amp; Mantini, D. Automated delineation of stroke lesions using brain CT images. <em>NeuroImage Clin.</em> <strong>4,</strong> 540–548 (2014).</li><li>Boers, A. M. <em>et al.</em> Automated cerebral infarct volume measurement in follow-up noncontrast CT scans of patients with acute ischemic stroke. <em>AJNR. Am. J. Neuroradiol.</em> <strong>34,</strong> 1522–7 (2013).</li><li>Löber, P. <em>et al.</em> Automatic thrombus detection in non-enhanced computed tomography images in patients with acute ischemic stroke. <strong>i,</strong> (2017).</li><li>Takahashi, N. <em>et al.</em> Computer-aided detection scheme for identification of hypoattenuation of acute stroke in unenhanced CT. <em>Radiol. Phys. Technol.</em> <strong>5,</strong> 98–104 (2012).</li><li>Bentley, P. <em>et al.</em> Prediction of stroke thrombolysis outcome using CT brain machine learning. <em>NeuroImage Clin.</em><strong>4,</strong> 635–640 (2014).</li></ol><p><em>Originally published at </em><a href="https://www.quantib.com/blog/early-signs-of-brain-ischemia-on-ct-and-mr"><em>www.quantib.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6a08647e18e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/early-signs-of-brain-ischemia-on-ct-and-mr-can-ai-lend-a-helping-hand-a6a08647e18e">Early Signs of Brain Ischemia on CT and MR; Can AI Lend a Helping Hand?</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</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 Land a Job in a Tech Startup — Or at least what not to do to miss your chance!]]></title>
            <link>https://medium.com/qmenta-tech-blog/how-to-land-a-job-in-a-tech-startup-or-at-least-what-not-to-do-to-miss-your-chance-261625892b4?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/261625892b4</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[recruiting]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[hr]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Alara Alkin]]></dc:creator>
            <pubDate>Wed, 08 Aug 2018 10:33:07 GMT</pubDate>
            <atom:updated>2018-08-08T10:33:07.194Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Tips and tricks on how to be sure to get your dream job in a startup</em></p><p>Hi everyone! My name is Alara, and I work at QMENTA, an innovative health-tech startup based in Barcelona (and US), as a Business Developer.</p><p>To give a little background on the company, our expert engineers created an advanced cloud platform to enable doctors, investigators, and pharmaceutical companies to manage their patients’ medical images, run image processing analyses and extract important information from them, create 3-D maps of the brain (and visualize them), and share these with their colleagues. Collaboration is critical in science.</p><p>I am also partly responsible for HR, as we do not have an official “HR manager”, which is the case for many small startups that are doing amazing things. They have a limited number of people and budget, so everyone pitches in with various things.</p><p>So, I believe the time has come for me to write such a post to help you pass the initial screening and get onto the radar of the people who will decide to hire you or not.</p><p>Okay, I am not going to lie. It is not easy to get a job in the very competitive market of tech startups! There is no single best strategy to get a job, and the kind of candidates that companies are looking for changes for every position.</p><p>But there are some things you can do to <strong>make sure you make it to the top candidates</strong>.</p><h3><strong>The AA Checklist Before Applying</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6e2DhPzYatWnL-t9lH2ThA.png" /></figure><p>First of all, the startup culture, as you may know, is a “fail-and-learn-on-your-own” kind of culture. There is a team that is there to help you, but everyone is very busy and you have to be ready to face challenges, question yourself, learn/develop everyday, and find solutions — which means that this is a great opportunity for you to grow as a person and as a professional.</p><p>Everyone says that it is very different from the corporate world, but you probably won’t believe them. The atmosphere is very fast, dynamic, full of changes and challenges, and requires constant adaptation and interaction with your colleagues. If you don’t think you will match with this environment, then it’s not your thing.</p><p>Please apply only if you are <strong>genuinely interested</strong> to join the company and the team. We can tell the difference!</p><p>So, if you do think that you would fit, then take the jump, but before you do, go through this helpful list below:</p><ul><li>Double-check if you have<strong><em> at least 70–80% of the skills</em> </strong>they are searching for. This is also valid for most companies. Most startups do not have much time to train. You will probably not get an interview if you can’t contribute from day 1!</li><li>Please make sure you <strong><em>apply according to the requirements</em></strong>. For example, if the company wants your CV or if the posting is in a specific language, please translate! It is unfair to give people who have not followed instructions a chance (despite their capabilities), where there are tens, and potentially hundreds of people who did. Ensure if they want X years of experience or experience in Y industry, you have these qualifications.</li><li><strong><em>Engage </em></strong>with the people who posted the job or are screening/emailing you. Show them your interest to join the team and company. Make them remember your name or face so they can tell whomever that is interviewing you, “this candidate is good” and you will start ahead of others.</li><li>Please<strong> <em>do not share a CV that looks like it’s from 90s</em></strong>. You are applying to an innovative startup. Show that you fit with the culture.</li><li>If they send you a questionnaire or tasks to do, <strong>f<em>inish them on time and deliver very high quality answers</em></strong><em> </em>or you will not pass to the next stage.</li></ul><h3>You got the interview: What’s next?</h3><p>If you pass through the screening and land an interview, <strong>congrats</strong>! Now is the time to <strong>amaze</strong> them!</p><p>Okay, first things first, you want to work for a high-tech company.<strong><em> Please figure out on your own how to connect to the conferencing system</em></strong> where you will have the interview. It is not difficult, and you will lose points if you are not there on time or have difficulties connecting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5D1TCdEqjeuElPkPY2-wQ.jpeg" /></figure><p>Before you go in for the interview:</p><ul><li><strong><em>Know everything</em></strong> there is to know about the company and the product! Come prepared but never “read” from a page! (Honestly, we can tell…) Know about the company’s success, big news, team, etc. to open up the conversation.</li><li>Be natural so we can get to know <strong><em>the real “you”</em></strong>. Cultural and personal fit is critically important for small companies, you are joining a “family”.</li><li>Find out who will interview you (if they don’t tell you, ask). Go check the LinkedIn profile of these people, try to <strong><em>find connections</em></strong> with them to create a positive atmosphere during the interview. They are probably not HR, but your <strong><em>future colleagues</em></strong>. See if you would like them as well and imagine how you would get along.</li><li>Make sure you ask specific questions about the company, their experience, what they like/do not like about the company. Try to link yourself with the answers and <strong><em>show how you would fit</em></strong> in the equation.</li><li>Have concrete answers in mind on how you can <strong><em>contribute or create value</em></strong> for the company.</li><li>Most startups want to have a <strong><em>big impact</em></strong>. Tell them why you want to be part of that vision. They might ask you questions on how you think you can improve how they do things. <strong><em>Be prepared to answer!</em></strong></li><li>Startups need to make more money, grow their customer base, and get more recognition. Even if you are not one of the business guys and coding all day, think about how you can <strong><em>help with that</em></strong>.</li><li>Lastly, give your 120% (because that’s how you will be expected to work) and hope that they will love you!</li></ul><p>Hope these little<strong><em> tips and tricks</em></strong> will help you land your dream job!</p><p>But if you didn’t get the offer from that dream job after the interview, don’t lose hope!</p><p>Maybe, it’s because they hit it off better with someone else, other candidates had more experience, or maybe they decided to go for a different profile.</p><p>In any case, it is nice to know! Don’t hesitate to email or call your contact person to ask for feedback. They will appreciate your pro-activeness and give you clues on how to nail the next one!</p><p>Good luck in finding your dream company!</p><p>Wishing you the best from sunny Barcelona!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=261625892b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/how-to-land-a-job-in-a-tech-startup-or-at-least-what-not-to-do-to-miss-your-chance-261625892b4">How to Land a Job in a Tech Startup — Or at least what not to do to miss your chance!</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QMENTA: a 5-year journey on healthcare IT]]></title>
            <link>https://medium.com/qmenta-tech-blog/qmenta-a-5-year-journey-on-healthcare-it-3421314068bf?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/3421314068bf</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[health-technology]]></category>
            <dc:creator><![CDATA[Paulo Rodrigues]]></dc:creator>
            <pubDate>Mon, 30 Jul 2018 14:36:38 GMT</pubDate>
            <atom:updated>2018-07-30T14:35:41.104Z</atom:updated>
            <content:encoded><![CDATA[<h4>Or how we can actually make a difference in the health industry. Read on how we started, what we achieved &amp; where we want to go.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krsKKLkFhaXNCJW5XJe5-w.png" /></figure><h4>2013–2018: A journey through the future of medicine.</h4><p>Five years ago, it was just a few people pulled together to work towards one vision. How can we empower neuroradiologists, neurosurgeons and neurologists to use quantitative tools in their everyday workflow in order to have detailed, accurate, and objective information about their patients and improve their diagnosis, treatment, and prognosis?</p><p>It’s shocking that <strong>1/3 of the population today suffers from brain diseases</strong>, yet there is no cure for most of them — only treatments to eliminate symptoms such as tremor in patients with Parkinson’s disease or to slow down disease progression like in the case of MS.</p><p>The drug development process for CNS is flawed and many Pharmaceutical corporations publicly admit this. The main challenges come in the type of data that is gathered to evaluate drug efficacy. In most cases is gathering information by conducting quizzes and simplistic tests to evaluate the patient’s state and efficacy of the treatment. Imaging information is rarely used and in most cases for visual inspection and inclusion/exclusion criterias.</p><blockquote>In <a href="http://www.qmenta.com/"><strong>QMENTA </strong></a>we share the same vision, a vision of a world where brain diseases are early diagnosed, cured, and even prevented; a world where brain diseases are a thing of the past.</blockquote><p>Five years ago, <strong>big data</strong> and <strong>cloud computing</strong> started emerging and the MRI machines started producing high amount and high quality data while the costs for scanning just started dropping. It was the right time to bridge our knowledge in medical image processing and the technological novelties in the IT industry. However, having worked with neurologists and radiologists, we also knew that complex image processing algorithms required technical knowledge and high learning curve and that was a huge obstacle in using these novel quantitative techniques in their everyday practice. Therefore, unless they are delivered with a simple solution (as simple as one click to launch analysis), this gap between state-of-the-art research in medical image processing, AI and clinical practice would remain unbridged for years to come.</p><p>Five years ago, <strong>data sharing</strong> was not very common. Hospitals, pharmaceutical companies, CROs, and imaging centers were extremely resistant to even consider using <strong>cloud </strong>architecture. However, we knew that this was the right way to proceed with our product development no matter the challenges and we knew that we need to build this new market given the needs for collaboration, reproducibility and scalability for this industry.</p><p>Today <strong>QMENTA</strong> is fully compliant <strong>cloud solution</strong> that runs the <strong>imaging data</strong> on its platform. Whether the customer is a <strong>neurologist</strong>, a <strong>radiologist</strong>, a <strong>CRO</strong>, a <strong>pharmaceutical company</strong>, the end-consumer of the platform does not need to have previous knowledge about computational science background in order to use it. It works as easily as a drag and drop of files, a selection of various criterions for data analysis, and a click to download automated reports directly from the platform.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtjqIX0jIa0U%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtjqIX0jIa0U&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtjqIX0jIa0U%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9683b8ff9293e6f994bb0f606f9c861e/href">https://medium.com/media/9683b8ff9293e6f994bb0f606f9c861e/href</a></iframe><h4><strong>April 2013 — the birth of “<em>Mint labs”</em></strong></h4><p>QMENTA was founded in <strong>2013</strong>, back then known as <em>Mint Labs</em>, with a single purpose: create significant impact on the lives of millions of people with neurodegenerative diseases.</p><p>We started recruiting and gathering talented engineers and developers around the idea of a platform. A web platform enabling experts to tap the potential of what technology can do to improve the speed and accuracy of diagnosis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyzI2hfuX4LCpVjN_FOPrw.jpeg" /><figcaption>Meet the QMENTA team!</figcaption></figure><p>Today, there are <strong>25 people</strong> that are fully dedicating their skills and talents to develop the best platform possible for neuroscience experts. The company is following the highest standards of security, privacy, and software development and is compliant with a number of regulations such as <strong>HIPAA </strong>(since 2016), <strong>ISO 13485</strong>, <strong>21 CFR Part 11 &amp; 820</strong>, IEC 62304, Annex 11, <strong>GDPR</strong>, and more. Thus, the company has expanded its mindset — now building strong partnerships with other companies sharing the same vision, supporting the pharmaceutical industry through their efforts in clinical trials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MCFDL2CFBeaNNfSq375sbA.png" /></figure><h4>Customer-oriented = science-oriented</h4><p>We share one clear vision for the medical field: supporting scientific progress one day after the other. With time, the product built by the company has evolved to become something unique in the medical industry. For us, being customer-oriented today means that we support scientific progress and contribute to its constant development.</p><blockquote>2017 was a year of many milestones for us</blockquote><p>The first milestone was met when the company closed an important<strong> $3.2M seed round in early 2017</strong>. Having built a growing and loyal customer base, gained an exponential traction, the company was able to convince investors to trust their skills and technological knowledge.</p><p>Working with renowned institutions in healthcare and building innovative projects with them — such as the project developed by <a href="https://medium.com/u/b8f4cf75a177">UC San Francisco (UCSF)</a>called <a href="https://www.multiplems.eu/"><strong>MultipleMS</strong></a>, QMENTA has proven the reliability and quality of its tools. Moreover, other great partnerships were made such as one with <a href="https://www.quantib.com/"><strong>Quantib </strong></a>with whom QMENTA won a <strong>Eurostars </strong>grant to develop a decision support system for stroke.</p><p>In <strong>October 2017</strong>, Mint Labs officially became QMENTA, a new name, a new design, a new visual identity. We <a href="https://www.qmenta.com/qmenta-rebranding/">re-branded</a> ourselves to better showcase our mission and dedication on quality and quantification, and especially our focus on the brain.</p><p>At the end of the year, QMENTA was rewarded on several occasions and the team was extremely grateful to see that their hard work and efforts did not go unnoticed. <a href="https://www.auntminnie.com/">AuntMinnie.com</a> named them “Best New Radiology Vendor” and during <a href="https://www.accenture.com/us-en/event-health-tech-challenge">Accenture’s Healthtech Innovation Challenge</a> they became one of Europe regional winners. More recently, they were chosen by <a href="https://www.sanofi.com/">Sanofi </a>to attend Viva Technology 2018 in Paris and won one of the challenges organized by Sanofi.</p><p>In <strong>2018</strong>, a new advisor was added to QMENTA’s scientific board: <a href="https://www.qmenta.com/award-winning-neuroimaging-expert-bruce-rosen-md-phd-joins-qmenta-as-scientific-advisor/"><strong>Bruce Rosen, MD, PhD</strong></a>. The award-winning neuroimaging expert joined <a href="https://www.qmenta.com/advisors/">four other advisors</a> also bringing expertise and market knowledge to the QMENTA team:</p><p>– <a href="https://www.linkedin.com/in/walter-gilbert-a653204/"><strong>Walter Gilbert</strong></a>, PhD, Nobel Laureate in Chemistry<br>– <a href="https://www.linkedin.com/in/chris-llewellyn-6586371/"><strong>Chris Llewellyn</strong></a>, MD, surgeon and healthcare industry expert<br>– <a href="https://www.linkedin.com/in/michael-fox-a9092488/"><strong>Michael Fox</strong></a>, MD, PhD, expert in neurology &amp; movement disorders<br>– <a href="https://www.linkedin.com/in/pablo-villoslada-39b1b818/"><strong>Pablo Villoslada</strong></a>, MD, PhD, expert in neurology &amp; Multiple Sclerosis</p><p>2018 was also the year when the new front-end of the platform was released. Thanks to months of efforts from the developer team, customers have been able to run their analysis and manage their data in only a few clicks. The improved design and simplified front-end created an unbelievably user-friendly platform. As its front end functionalities advance, we introduced its <strong>PACS Integration</strong> which will allow doctors to directly upload their patient data from the hospital to the platform, thus saving valuable time and effort.</p><p>Moreover, we built a <a href="https://www.qmenta.com/sdk/"><strong>Software Development Kit (SDK)</strong></a> to extend the capabilities of the platform via partnerships with experts in the field. Now, the platform can incorporate the advanced algorithms of 3rd parties to maximize the reach of these new technologies and thus their impact on the society. As experts both in new technologies and neurosciences, we have the means to tackle significant challenges and obstacles. Our channels enable us to share this knowledge to the community for instance with our <a href="https://medium.com/qmenta-tech-blog"><strong>Medium tech blog</strong></a>.</p><h4>Acting for the future of medicine</h4><p>We have already achieved great things but the company sees this as the beginning of our story. The team wants to continue working hand in hand with everyone that is trying to make a difference in drug discovery for neurological diseases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0i4vZFzvQXUgy5hIUmrROg.jpeg" /><figcaption>Vesna Prchkovska, COO &amp; Co-Founder</figcaption></figure><blockquote><em>“It has been an exciting journey to deliver our product and help our customers in the best way that we can while we continue to improve the QMENTA platform every single day.</em></blockquote><blockquote><em>We do have big plans for the future and hope that you — whether you are part of clinical trials, neuro experts or simply curious healthtech geeks — will be part of them!</em></blockquote><blockquote><em>To everyone that has been following our journey, we would like to take a moment to say thank you.<br>To many more years of collaboration.”</em></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F0fdd61%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F0fdd61%2F&amp;image=https%3A%2F%2Fucarecdn.com%2Feeb58784-3055-4f3f-848e-27c6fde576e3%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/75b2553294db787f9d84516e41f1417a/href">https://medium.com/media/75b2553294db787f9d84516e41f1417a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3421314068bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/qmenta-a-5-year-journey-on-healthcare-it-3421314068bf">QMENTA: a 5-year journey on healthcare IT</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Deep Learning and Neuroimaging Can Improve Diagnosis in Psychiatric Diseases]]></title>
            <link>https://medium.com/qmenta-tech-blog/how-deep-learning-and-neuroimaging-can-improve-diagnosis-in-psychiatric-diseases-b6eb8afab95c?source=rss----cdbe97d8ddf0---4</link>
            <guid isPermaLink="false">https://medium.com/p/b6eb8afab95c</guid>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[psychiatric-disorders]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuroimaging]]></category>
            <dc:creator><![CDATA[Irina Sanchez]]></dc:creator>
            <pubDate>Tue, 24 Jul 2018 14:35:17 GMT</pubDate>
            <atom:updated>2018-07-24T14:35:16.817Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ciBqh8_SkJEa3oWFTd57mQ.png" /></figure><blockquote><strong><em>Impact of psychiatric disorders in the world.</em></strong></blockquote><p>The <a href="https://medium.com/u/ecd0bec420d8">World Health Organization</a> estimates that around <strong>450 million people</strong> suffer from psychiatric disorders. They predict that one in four people in the world will be affected by a problem related to their mental health at some point in their lives. This makes <strong>psychiatric disorders</strong> one of the leading causes of ill-health and disability worldwide. Even while being one of the most common pathologies in our society, the actual diagnosis is based on questions to the patient related to their <strong>symptoms</strong>, possible manifestations of the disease, and behavioral criteria. Therefore, doctors are only taking into account<strong> subjective information</strong>. As symptoms overlap between disorders, and sometimes patients are unable to properly answer the questions they are asked, an accurate diagnosis is very difficult to make.</p><blockquote><strong><em>What can you find in the brain?</em></strong></blockquote><p>It is necessary to obtain an objective measure that can complement the subjective information obtained from the patient. A potential good source of <strong>biomarkers </strong>can be found in neuroimaging techniques, which are a non invasive way of obtaining information about the structure and functionality of the brain. The challenge is to figure out what information from these techniques can be informative for this concrete problem. For example, of the pictures below, could you say which one belongs to a patient suffering from a psychiatric disorder and which one belongs to a healthy control subject? Changes in structure and functionality are very subtle and doctors are not able to obtain a diagnosis just by looking at them. It is necessary to extract information that can help classify patients between suffering from a psychiatric disorder and healthy control individuals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*dT6BHfw9eyCO5jZIcQn19w.png" /><figcaption>On the left: Control. On the right: OCD</figcaption></figure><blockquote><strong><em>Why Deep Learning and not Machine Learning?</em></strong></blockquote><p>The approaches for psychiatric disorders classification on neuroimaging have changed compared to two decades ago. Before, analyses were focused on comparing patients with a specific disease against control individuals reporting neuroanatomical or neurofunctional differences at a group level. The problem with the proposed technique is that they assume different parts of the brain act independently, so the reported results are obtained by independent comparisons between voxels in the brain. However, studies show that several psychiatric and neurological symptoms are best explained by network-level changes in structure and function rather than focal alterations.</p><p><strong>Machine Learning</strong> (ML) and <strong>Deep Learning</strong> (DL) techniques are multivariate methods, which means that a decision involves more than a single variable, and so, by their nature, they allow us to overcome problems with the previous analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWYm3Dm7s0t8lLWYRW4pow.jpeg" /></figure><p>In the last decade, ML methods have been applied to classify different psychiatric illnesses. The most common classification algorithm applied is <strong>Support Vector Machine</strong> (SVM). One of the problems concerning <strong>ML</strong> techniques, is the necessity of a feature selection process instead of applying the algorithm directly to raw data. Feature selection aims to eliminate high-correlated data that will decrease the performance of the model and input to the model relevant features. To perform a successful feature selection, it is necessary to have a good understanding of the data, which normally is a tedious work and requires a great amount of time.</p><blockquote>In contrast, <strong>DL</strong> methods can be <strong>applied to raw data</strong>, without the necessity of a feature selection technique. <strong>Deep neural networks</strong> apply consecutively non-linear transformations to their inputs that allow the technique to extract useful information from raw data, generating features that are relevant to perform the final task without any human interaction in the process.</blockquote><blockquote><strong><em>What does it mean for science?</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WB3HnJPndxTS_lJiUgBskQ.jpeg" /></figure><p>Applying deep learning to the clinical diagnosis of mental health can have a <strong>great impact</strong> in the treatment of these disabilities. These techniques can be used to obtain <em>biomarkers from brain images</em>, which will lead to a better understanding of psychiatric disorders by measuring and evaluating specific characteristics of the brain, such as <strong>volume information from brain regions or connectivity information between areas</strong>. Those biomarkers can be used to improve the accuracy of the diagnosis, and consequently selection of a <strong>personalized treatment for each patient</strong>. Altogether, this can potentially reduce the impact of mental health problems in our society, or at least, improve the way doctors deal with them.</p><p><strong>References.</strong></p><p><a href="http://www.who.int/whr/2001/media_centre/press_release/en/">http://www.who.int/whr/2001/media_centre/press_release/en/</a></p><p>Fox, M. D., Snyder, A. Z., Vincent, J. L., Corbetta, M., Van Essen, D. C., and Raichle, M. E. (2005). The human brain is intrinsically organized into dynamic, anticorrelated functional networks. Proceedings of the National Academy of Sciences of the United States of America, 102(27):9673–9678.</p><p>Haller, S., Missonnier, P., Herrmann, F., Rodriguez, C., Deiber, M.-P., Nguyen, D., Gold, G., Lovblad, K.-O., and Giannakopoulos, P. (2013). Individual classification of mild cognitive impairment subtypes by support vector machine analysis of white matter dti. American Journal of Neuroradiology, 34(2):283–291.</p><p>Rashid, B., Arbabshirani, M. R., Damaraju, E., Cetin, M. S., Miller, R., Pearlson, G. D., and Calhoun, V. D. (2016). Classification of schizophrenia and bipolar patients using static and dynamic resting-state fmri brain connectivity. Neuroimage, 134:645–657.</p><p>Vergara, V. M., Mayer, A. R., Damaraju, E., Kiehl, K. A., and Calhoun, V. (2017). Detection of mild traumatic brain injury by machine learning classification using resting state functional network connectivity and fractional anisotropy. Journal of neurotrauma, 34(5):1045–1053.</p><h3>Who are we?</h3><p><a href="https://www.qmenta.com/"><strong>QMENTA</strong></a><strong> </strong>is a brain imaging and data analytics platform in the cloud aiming to accelerate the discovery and development of cures for neurological diseases.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F0fdd61%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F0fdd61%2F&amp;image=https%3A%2F%2Fucarecdn.com%2Feeb58784-3055-4f3f-848e-27c6fde576e3%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/75b2553294db787f9d84516e41f1417a/href">https://medium.com/media/75b2553294db787f9d84516e41f1417a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6eb8afab95c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qmenta-tech-blog/how-deep-learning-and-neuroimaging-can-improve-diagnosis-in-psychiatric-diseases-b6eb8afab95c">How Deep Learning and Neuroimaging Can Improve Diagnosis in Psychiatric Diseases</a> was originally published in <a href="https://medium.com/qmenta-tech-blog">QMENTA Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>