<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adrien Galamez on Medium]]></title>
        <description><![CDATA[Stories by Adrien Galamez on Medium]]></description>
        <link>https://medium.com/@adrien.galamez?source=rss-16cfb8ff122b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*LK9LZw8FyBo1IsfKjFUbTw.jpeg</url>
            <title>Stories by Adrien Galamez on Medium</title>
            <link>https://medium.com/@adrien.galamez?source=rss-16cfb8ff122b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:22:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adrien.galamez/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Revolutionizing Cancer Detection with DNA Methylation and Machine Learning]]></title>
            <link>https://medium.com/@adrien.galamez/revolutionizing-cancer-detection-with-dna-methylation-and-machine-learning-d160d6f05289?source=rss-16cfb8ff122b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d160d6f05289</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[dna]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[cancer]]></category>
            <dc:creator><![CDATA[Adrien Galamez]]></dc:creator>
            <pubDate>Thu, 03 Dec 2020 21:20:31 GMT</pubDate>
            <atom:updated>2020-12-04T14:44:20.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NC5zjOYv9z1xUmgpc8F8tQ.jpeg" /><figcaption><a href="https://unsplash.com/photos/eXoXJrOGqG4">https://unsplash.com/photos/eXoXJrOGqG4</a></figcaption></figure><p>In 2017, 8.8 million people died from cancer worldwide. According to the World Health Organization (WHO), the main difficulty is that many cancers are diagnosed too late. Improving early detection of cancer will lead to less expensive and easier treatment, which will ultimately result in many lives being saved.</p><p>Partnering with Caltech and Dr. Noah Ollikainen, we developed and trained a machine learning model that predicted cancer from a tissue sample’s DNA Methylation values. Our trained machine learning model was able to predict — with over 99% accuracy — whether the patient was diagnosed with cancer. How did we make this happen?</p><h3>Modeling the link between DNA Methylation and cancer</h3><p>To make our model as accurate as possible, we needed to use as much data as possible on different cancer types. As a result, we used data from The Cancer Genome Atlas (TCGA). It is a program from both the National Cancer Institute and the National Human Genome Research Institute that began in 2006 and generated over 2.5 petabytes of publicly available data. With this raw data, we created a dataset composed of tissue observations from 15,000 patients. Each observation had more than 500,000 DNA Methylation measurements. That’s more than 7.5 billion rows!</p><p>DNA is the human encyclopedia containing our genes. DNA Methylation can be viewed as DNA metadata. It measures methyl groups sitting on top of the DNA string, which act as a signal along the DNA to regulate the degree to which the gene is expressed. Intuitively, it can be linked to cancer because the less a gene is methylated, the more the gene can be expressed and replicated, thus increasing the risk of creating tumorous tissues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSY25SJPvC6RrDLFxQRdHA.png" /><figcaption>Methyl groups attached to strands of the DNA are acting as signals regulating the genes expression. Source: University of Delaware (<a href="https://www.youtube.com/watch?v=KYHBbEKap0A">link</a>)</figcaption></figure><p>Once our dataset was created, we tried multiple machine learning models to accurately predict the observation label: either cancerous or not. We settled on using a XGBoost model for two main reasons.</p><p>First, by implementing gradient boosting, this model achieves a higher accuracy on our dataset. Then, because it is a tree-based model, it makes it possible to extract the DNA sites that are the most useful in detecting cancer.</p><p>As extracting this list of DNA sites was one of the most valuable part of the project for our client, we decided to host and publish our model and our results on an interactive web application. This application was designed to be used by researchers to interact with our model and get the list of most impactful DNA sites to investigate, in order to study the link between DNA Methylation and cancer.</p><h3>Let’s explore our ML model in more detail</h3><p>We arrived at a couple of learnings from creating this model.</p><p>First, we had to work on creating the target metric to predict. We leveraged the TCGA barcode to identify observations that were coming from cancerous or health tissues. The image below shows the observation barcode format that the TCGA project is using. We learned that the sample id is the part that identifies a cancerous observation from a healthy one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*u01MtNDfBKLsFpclyBjqBQ.png" /><figcaption>TCGA Barcode Format. We used the Sample ID to label our observations as cancerous or healthy. Source: National Cancer Institute (<a href="https://docs.gdc.cancer.gov/Encyclopedia/pages/TCGA_Barcode/">link</a>)</figcaption></figure><p>Second, because it was not possible to train our model on 7.5 billion rows, we needed to select the best 5,000 features out of the 500,000 available. For this, we leveraged a Dataproc job on Google Cloud Platform. The goal of this job was to select the 5,000 best features that maximize variance across the two groups of patients (cancerous and healthy).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8XeOPUiwgOGJQhIBIkkmfw.png" /><figcaption>GCP Architecture diagram. The raw datasets were hosted in BigQuery. We prepared the data through Dataproc and our training dataset was hosted in Cloud Storage. We then leveraged AI Platform for training and prediction.</figcaption></figure><p>Finally, because TCGA is mainly collecting data from cancerous patients, most of our work centered around cancerous cells, and very few healthy ones. To ensure that our model would generalize well in real life, we applied a technique called <em>Synthetic Minority Oversampling Technique </em>(SMOTE). SMOTE is helpful for rebalancing the dataset and thus making sure we had at least 30% of healthy observations in our training data — making our model more viable and sustainable beyond this dataset.</p><h3>What’s next?</h3><p>To the extent of our knowledge, this is the first time DNA Methylation has been used to diagnose cancer. It will first be used by researchers that want to understand the biological impact of genes on cancer development.</p><p>Furthermore, the greatest advancement of this novel method introduces is an early-stage cancer diagnosis. Rather than undergoing an invasive and painful biopsy, a patient could undergo a simple blood test to obtain DNA methylation measures. These values could then easily be fed into our model, resulting in a streamlined and accurate cancer diagnosis.</p><p>As machine learning becomes a more mainstream method that scientists like Dr. Ollikainen embrace and rely on for day-to-day research and experimentation, we are confident that statistical disease detection, medical scenario modeling, and intuitive data visualization will be key components of bringing mankind to curing our most stubborn maladies in the future. This is just the beginning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d160d6f05289" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Harnessing the power of Google Cloud to drive traffic and revenue]]></title>
            <link>https://medium.com/@adrien.galamez/harnessing-the-power-of-google-cloud-to-drive-traffic-and-revenue-31de474a8d82?source=rss-16cfb8ff122b------2</link>
            <guid isPermaLink="false">https://medium.com/p/31de474a8d82</guid>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[advanced-analytics]]></category>
            <dc:creator><![CDATA[Adrien Galamez]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 18:28:41 GMT</pubDate>
            <atom:updated>2020-04-16T18:47:59.150Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BNcCINERubpf_5X4acpESw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jtkyber1?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Joey Kyber</a> on <a href="https://unsplash.com/s/photos/traffic?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Where It All Started</h3><p>eCommerce is an undeniably critical component of every modern retailer’s strategy and has become paramount to measure website performance in terms of online traffic and revenue. When the goal is to ensure that a recently launched eCommerce website aligns with the retailer’s broader eCommerce strategy and is having a positive impact on the top-line, this initiative assumes greater significance.</p><p>Recently, a luxury retailer recognized the need for greater visibility into their website and broader eCommerce performance on a daily basis. Their revenue forecasting was very simple; they were accounting for a fixed growth percentage based on the previous year’s growth. Their north star was a holistic revenue forecasting model to develop more accurate forecasts and ensure that their goals were grounded in market actuals. Slalom and Google Cloud partnered to assist in making that north star a reality.</p><h3>Analytics to the Rescue</h3><p>Predicting revenues and traffic on an eCommerce website has a big advantage — data! Slalom used data from Google Analytics and harnessed the power of the Google Analytics 360 Suite to retrieve relevant data and create our time-series dataset. The Google Analytics 360 Suite offers advanced features (as unsampled reports, enhanced data freshness, or custom funnels) on top of the standard Google Analytics offerings. Among all those features, we took advantage of the link between Google Analytics 360 and BigQuery. This helped us access click-level and always up-to-date data directly into Google Cloud Platform.</p><p>The first step was to cleanse, transform, and aggregate data down to the day-to-day level and subsequently compare multiple machine learning modeling techniques from a simple exponential smoothing to additive regression models to ARIMA models. The team settled with the Facebook Prophet model, an open-source, additive regression model for its flexibility and ease-to-use. Indeed, Facebook Prophet decomposes the overall time series into three components: trend, seasonality and holidays. The model can be represented by the following equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ep6ebUs-LP_NytTeSCaHA.png" /><figcaption>Modeling Equation</figcaption></figure><p>To explain this, let’s take the example of predicting daily website visits. In this equation, <em>y(t)</em> will be the number we are trying to forecast, daily visits on our eCommerce website. We will predict this number by fitting three functions on our dataset: the first one (<em>g(t)</em>) will capture the overall year-on-year traffic growth on our website, the second one (<em>s(t)</em>) represents periodic changes (i.e. weekly and monthly) in daily traffic — for instance, a weekly weekend peak in eCommerce traffic, and the third one (<em>h(t)</em>) models the effects of holidays or one-off events on daily visits (e.g. all the visitors that are logging in to our eCommerce for the launch of a new product or during the Black Friday). You can go explore the <a href="https://doi.org/10.7287/peerj.preprints.3190v2">Facebook Prophet paper</a> for more details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*-iUXrzZKVo4Obvl6Ou6mSQ.png" /><figcaption>Figure 1 — Architecture on Google Cloud</figcaption></figure><p>This model interprets the time series prediction as a curve-fitting exercise and provides easily interpretable parameters that translate to assumptions on the forecast.</p><p>This model was deployed on Google Cloud (see Figure 1). A cloud scheduler pulls a weekly trigger to start a Cloud Function. This function retrieves the latest data from BigQuery, cleans and aggregates it to the daily level, and launches the AI Job on which the trained model is saved. This job will output the latest prediction which then saves it to Cloud Storage.</p><p>A second cloud function will then pick up those predictions and combine them with the up-to-date time series which will then update both the weekly visual and a weekly table used by business stakeholders.</p><h3>Wow</h3><p>Deploying our model on Google Cloud enabled business users to seamlessly receive updated traffic and revenue prediction data with no technical overhead. Where the client was previously making guesses during the forecasting process, they are now able to use the model’s predictions and set informed traffic and revenue goals.</p><p>This project also empowered business stakeholders to make data-driven spending decisions. Due to the fact that we tailored our revenue prediction to be influenced by traffic sources, they are now able to see which source was under-performing based on previous years and thus allocate their advertising budget accordingly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31de474a8d82" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>