<?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 JiEun Song on Medium]]></title>
        <description><![CDATA[Stories by JiEun Song on Medium]]></description>
        <link>https://medium.com/@jisong316?source=rss-f14c682f10d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Kk3s2xbwVaGvww2t5ZjOqg.png</url>
            <title>Stories by JiEun Song on Medium</title>
            <link>https://medium.com/@jisong316?source=rss-f14c682f10d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:31:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jisong316/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[Analysis of Drug Reviews]]></title>
            <link>https://medium.com/@jisong316/analysis-of-drug-reviews-5203ca477d9b?source=rss-f14c682f10d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5203ca477d9b</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[topic-modeling]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <dc:creator><![CDATA[JiEun Song]]></dc:creator>
            <pubDate>Sat, 09 May 2020 01:25:57 GMT</pubDate>
            <atom:updated>2020-05-09T01:25:57.648Z</atom:updated>
            <content:encoded><![CDATA[<p>I was looking for a datasets for natural language processing, and I wanted to work on something related to healthcare. Yes, I am a biologist who wants to make a real impact on healthcare by analyzing real world data. And I found a drug review data sets from UCI machine learning repository which was perfect for me to start my first NLP project!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*ynlnnW4wVZ8uYWzfW-lZsQ.jpeg" /><figcaption>Thinkstock</figcaption></figure><p>I started with EDA analysis and the project starts as most of them, with a <strong>PROBLEM</strong>.</p><p>My initial EDA revealed that the main problem in the drug market is there are simply too many drugs. The below graph shows the top 10 conditions with the most number of drugs in the market. Let’s imagine that you’re suffering from depression, and you need to choose one out of hundreds different medicines. How would you choose one of them? There are too many different drugs per condition, however, patients often have very little information about them, such as what kind of side effect the drug can cause or more basically, whether it is going to work well or not. So I believed that analyzing drug review data could help patients’ decision making based on their concerns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*KXdGnD597tue3nsykl1BDQ.png" /><figcaption>Top 10 conditions with most number of drugs</figcaption></figure><p>I first started with cleaning the data. The dataset contains training and test sets of real review datas. There were many missing values on the condition column, so I filled out the missing values first, and dropped out any rows without a condition name.</p><p>After cleaning the data and initial EDA, I removed stop-word using NLTK, and add/remove some words to customize it. Especially, I didn’t want to remove words that can be used for sentiment analysis, such as ‘no’ and ‘not’, as these kinds of words are very important for sentiment analysis of review data. Next, I used lemmatizing after trying both stemming and lemmatizing as stemming method is too extreme. After tokenizing the text, I tried several different methods for feature extraction and topic modeling. I chose CountVectorizer with bigram and latent dirichlet allocation (LAD) method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*yR8ITj_9rXeR86h9GyR4GQ.png" /><figcaption>Top 4 topics of LDA model</figcaption></figure><p>The above figure shows four topics selected by my model. Many people complained about side effect, such as dry mouth and weight loss, and also talked about feelling after taking drugs. The third topic was about the efficacy of drugs and time period taking them, and the last one was about side effect of birth control drugs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*iZdtePhtsctg5fGP0jhNIg.png" /><figcaption>Topic distribution of top 10 conditions</figcaption></figure><p>Next, I looked at distribution of topics for the top 10 conditions from the initial EDA. After checking the distribution, I found that the last topic which I thought about birth control drugs, was actually about changes in hormone level. That makes more sense as both drugs for acne treatment and birth control often use man made artificial hormones which can affect changes of patients’ own hormone levels. I found that the main concerns of many patients were efficacy and side effects of drugs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMKV5Ls-YxfsPiWLfJDtKg.png" /><figcaption>Confusion matrix of logistic regression model</figcaption></figure><p>Finally, I trained logistic regression model to predict number rating (1–10) with sentiment analysis. The model predicted rating pretty accurately with accuracy score 0.92.</p><p>In the future, I’m planning to build a recommender system. The recommender system potentially could help patients to choose better drugs based on their needs, and also could help provide a benchmark to healthcare professionals such as doctors, pharmaceutical industry. Some of conditions need prescription drugs like diabetes, in those cases, decision processes can be very different from other over-the-shelf drugs, so different models across different conditions could provide more precise analysis for patients.</p><p>Honestly, it was not easy project at first because that it was an unsupervised learning, so I was not sure whether the project is going well and I’m doing right or not. But in fact, I really enjoyed going through the project and new challenges I had! I wish you also enjoyed my post. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5203ca477d9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting Cervical Cancer Risk]]></title>
            <link>https://medium.com/@jisong316/predicting-cervical-cancer-risk-ca9eec2a21de?source=rss-f14c682f10d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca9eec2a21de</guid>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cancer]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[JiEun Song]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 06:16:24 GMT</pubDate>
            <atom:updated>2020-03-20T23:25:10.289Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been studying cancer biology for more than 10 years, and my previous experience taught me value of data driven research. This is my first biology-related project in Metis, and I’m so excited to present the project here!</p><p>Cervical cancer is the fourth most common type of cancer among women in the world. More than 10,000 new cases are diagnosed each year in the US. Although each year cervical cancer kills about 4,000 women in the US, it is the most preventable type of cancer. Cervical cancer is highly preventable because many risk factors are known for initiation of the cancer, thus regular screening is particularly important for early detection of cervical cancer. Therefore, my aim for the project was to predict whether a patient is in high-risk of cervical cancer or not using a classification model, and encourage potential patients for more frequent screening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*AuvQFElB_4Ee3xXtiIG1Sw.jpeg" /><figcaption><a href="https://www.healthymepa.com/">https://www.healthymepa.com</a></figcaption></figure><p>The original dataset was from UCI Machine Learning Repository. As the total number of cases was less than 1,000 and the target classes were highly imbalanced, I used oversampling method to balance the class after splitting training and test sets.</p><p>After cross validation of each models, I chose 3 models and compare their ROC-AUC scores. I used ROC-AUC score along with recall score to compare each of the models, because I don’t want any false negatives. It is more important to catch all of the potential cancer even with higher false positive rate to encourage potential patients to get more frequent testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gx3rWMn1dWs8Bl7pHdM8tw.png" /><figcaption>ROC-AUC curves</figcaption></figure><p>Among the initial models, the most promising one was extra trees model. Extra trees predicted major class very well, however, it predicted most of cancer cases wrong. After adjusting hyper-parameters, the accuracy of the model dropped drastically, so I ended up to chose different model. I used ensemble voting classifier, the ROC-AUC score for the model is 0.84 out of 1, and the model predicted all of cancer positive cases well with less false positives than any other models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2OrS0Ovmwe4AbBVVWGbxkQ.png" /><figcaption>Confusion Matrix of Voting Classifier</figcaption></figure><p>Most important risk factors were how many times the patient was pregnant, whether or not and how long the patient is taking hormonal contraceptives. Number of partners, age of the patient, and HPV infection are also important risk factors for the cancer. Surprising thing here is that using hormonal contraceptives actually increases cancer risk, as pharmaceutical companies and doctors claim that those are safe. Hormonal contraceptives includes orally taking pills, skin patches and virginal rings which contain man-made hormones, and many women have been using them since 1960&#39;s. However, years of usage of the hormonal contraceptives is one of the most important risk factor of cervical cancer.</p><p>Another thing I learned from the project is the importance of understanding of data for proper analysis. My dataset actually have 4 different targets, Hinselmann, Schiller, Cytology, and Biopsy. During the modeling process, I looked up others’ codes in Kaggle and found that many people used Hinselmann, Schiller and cytology as features. As these are 4 different diagnostic methods of cervical cancer, they are highly correlated and should not be included as features. The values in these columns are not the same, since every diagnostic methods have error rate, so sometimes one method cannot detect cancer but others can. I only used biopsy as my target as I have limited time to do the project, but excluded other methods columns from features. I’m planning to build another model using other targets in the future, and build a prediction app to provide recommendation for cancer screening.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca9eec2a21de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting Airbnb Price in NYC]]></title>
            <link>https://medium.com/@jisong316/predicting-airbnb-price-in-nyc-e0c638b90e7c?source=rss-f14c682f10d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0c638b90e7c</guid>
            <category><![CDATA[airbnb]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[JiEun Song]]></dc:creator>
            <pubDate>Mon, 27 Jan 2020 05:18:14 GMT</pubDate>
            <atom:updated>2020-02-18T00:24:53.918Z</atom:updated>
            <content:encoded><![CDATA[<p>Airbnb market has been growing rapidly since its launch in 2008 in terms of revenue growth and its range of service provisions. Especially, hotels are unreasonably expensive in New York City, so it makes the city one of the most popular market for airbnb.</p><p>Therefore, I think predicting airbnb price benefits both of hosts and travelers. The model can help hosts to determine their price, and also can help travelers to find reasonably priced accommodation. I tried to predict Airbnb price in NYC using linear regression model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YkPfHUVLClEvzEl0dzh-Q.jpeg" /><figcaption>Manhattan, NYC (<a href="https://pixabay.com/">https://pixabay.com/</a>)</figcaption></figure><p>My work is done mainly using python. After collecting data from <a href="http://insideairbnb.com/get-the-data.html">Inside Airbnb</a> and <a href="https://www.mashvisor.com/">Mashvisor</a> using selenium webdriver and beautifulsoup, I did some data cleaning and EDA using pandas and numpy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*tiw0hRtHfNtAma0pUhTx-w.png" /><figcaption>Distribution of Listings in NYC</figcaption></figure><p>I first looked at the distribution of listings in NYC. As expected, highly priced listings are located in the manhattan area, especially on the south side of central park close to the tourist attractions like Times Square.</p><p>Next I looked at the correlation between data. I found that Number of beds, number of bathroom and location, especially manhattan have strong correlation to the price.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*gu09r779b44GjH6Y" /><figcaption>3D Correlation between Price, Manhattan, and Number of Bed</figcaption></figure><p>As number of beds and bath, and location (Manhattan) showed strong correlation to price, I chose them as features and trained my model. I first compared Scikit learn and Statsmodel, and found two models perform similarly. Since the size of my data set is little small (8500 rows), I further used cross-validation method to train and validate my model. The plot below shows my linear regression model, predicted target over actual target values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4LpPJ65vYGN0YEcF6C88w.png" /></figure><p>The performance of the model was evaluated by R² score and p-values (the level of marginal significance within a statistical hypothesis test representing the probability of the occurrence of a given event). Even though R² score is little low (0.37), p-values of each features were less than 0.001 (a low <strong>p</strong>-<strong>value</strong> means a higher chance of the hypothesis being true).</p><p>For future work, I would add more features such as room types, property types, and number of reviews to improve the model. Analyzing seasonal price data would be also interesting for future work. Building another model for another popular cities would be also meaningful .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0c638b90e7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploratory Data Analysis of MTA Turnstile Data]]></title>
            <link>https://medium.com/@jisong316/exploratory-data-analysis-of-mta-turnstile-data-feef551fa986?source=rss-f14c682f10d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/feef551fa986</guid>
            <category><![CDATA[nyc]]></category>
            <category><![CDATA[mta]]></category>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[matplotlib]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[JiEun Song]]></dc:creator>
            <pubDate>Sun, 26 Jan 2020 01:06:35 GMT</pubDate>
            <atom:updated>2020-03-25T16:33:31.367Z</atom:updated>
            <content:encoded><![CDATA[<p>Our first project at Metis data science boot camp was exploratory data analysis of the Metropolitan Transportation Authority (MTA) turnstile data to identify key locations and times around NYC subway stations that have most foot traffic. Our goal was to help a potential client, Women Tech Women Yes (WTWY), decide at which stations to place street teams for collecting email addresses and increasing attendance of their summer gala. For this reason, we not only considered the volume of human traffic, but also who might be interested in the gala.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kgtaW688XDYuKYDO3TfSJQ.jpeg" /><figcaption><a href="https://ny.curbed.com/">https://ny.curbed.com/</a></figcaption></figure><p>There were a few assumptions for our final proposal:</p><ul><li>We focused on data for a month from late May to end of June, since the gala will be in the early summer.</li><li>Our focus was only on the exit data, because we think that the people going in to the station might not stop since they are trying to catch the train.</li><li>We would only focus on the stations located in Manhattan, more specifically, below 59th street where New York’s largest tech companies are (Silicon Alley), because we believe that younger professionals working tech companies might be more likely to attend the event.</li></ul><h3>Data Cleaning and Analysis</h3><p>MTA turnstile data are published weekly by taking logs of the turnstile status in 4 hours intervals. The data requires a lot of cleaning before working files. There were a few issues to be addressed before the analysis:</p><ul><li>The turnstile counters represent cumulative entries or exits, not absolute numbers.</li><li>The counters eventually reset to 0.</li></ul><p>To address these issues, we carefully check the data sets, and found out that the counters accumulate and reset the numbers by ‘SCP’ (Subunit Channel Position which represents a specific address for a device), not the unit names. So we first calculated total number of exits for each SCP and sum up for each stations. After calculating total number of exits, we found that top 30 stations covers more than 95% of traffic, therefore, we focused on those top 30 stations for further analysis.</p><h3>Results</h3><p>We first checked the locations of the top 30 stations we selected from our initial analysis, and further narrow down to 12 stations which are located in silicon alley.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*OCUk3c7X0LrDUuPXz_f_IQ.png" /></figure><p>We next checked the total number of exits per hour in those top 12 stations to see which days and hours are most active in the stations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*pOKCkNn4YVhoinRVkvsV8w.png" /></figure><p>Looking at traffic <strong><em>out</em></strong> (those not trying to catch a train), we found the highest-traffic times were 8–10A and 4–6P. There were high spikes at Noon and 9PM, but they are likely from tourists or those going out for the night — we believe these are not ideal targets. When considering days-of-week, Monday and Friday had the highest variance — especially in the morning.</p><p>We found that volumes of traffic are much smaller and start increasing at later hour than the weekdays, which was expected as fewer people having to commute.</p><p>The MTA data was not easy to work with, but it was interesting project to start with, as we can learn about data cleaning and time series. Even though we only had 4 days to work on the project, it was surprising to see what we could do with the short period time. I am interested in further analysis on each day-of-week and traffic demographics in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=feef551fa986" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>