<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://raisunny.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://raisunny.com/" rel="alternate" type="text/html" /><updated>2026-06-15T09:59:26-07:00</updated><id>https://raisunny.com/feed.xml</id><title type="html">Sunny Rai</title><subtitle>sunnyrai at seas.upenn.edu</subtitle><author><name>Sunny Rai</name><email>sunnyrai at seas.upenn.edu</email></author><entry><title type="html">Attending Conference? - Indian Passport renewal / re issuance in US</title><link href="https://raisunny.com/postdoc/j1/visa/conference/postdoc-in-us-indian-passport-renewal-in-us/" rel="alternate" type="text/html" title="Attending Conference? - Indian Passport renewal / re issuance in US" /><published>2023-05-04T00:00:00-07:00</published><updated>2023-05-04T00:00:00-07:00</updated><id>https://raisunny.com/postdoc/j1/visa/conference/postdoc-in-us-indian-passport-renewal-in-us</id><content type="html" xml:base="https://raisunny.com/postdoc/j1/visa/conference/postdoc-in-us-indian-passport-renewal-in-us/"><![CDATA[<p>I recently came to know that if one (on J1 visa) wishes to travel to a foreign country from US and  if returning to the U.S., <strong>the residence permit / visa must be valid for at least three months exceeding the last day of the intended stay in foreign country</strong> (1,2).</p>

<p>This is not a small ask!</p>

<p>Many J1 visa holders have residence permit of one year. Let’s imagine, your research group is super efficient, you managed to get a result worth publishing in 6 months, you submit the work to a good conference and here goes another 1-2 months in review process and finally, your paper is accepted! The conference is in 2 months and you are super excited! <em>This is the best case in research</em>.</p>

<p>Oh wait! Let’s count the months, 6+~2+2 =10 months already gone by the time you will begin your travel. But now, you cannot travel to a foreign country and return back to US from there since you will only have 2 months of valid stay left on your J1 visa.</p>

<p>Now, one can choose to either forgo in-person visit or travel to your home country from the foreign country and get your visa renewed. So far so good! However, it can get worse if you discover that the passport is going to expire soon.   <strong>Unlike B1/B2 visa, J1 visa is not issued beyond one’s passport validity.</strong> So even if you have DS 2019 for a period of 2 years, you will only get J1 visa upto the expiration date of your passport. Please note, this is the case for India. There is an additional 6 month passport validity requirement  for some countries (3).</p>

<p>If you are on this page, I need not narrate the scary stories of visa appointments.  Ideally, one should renew the passport and get the complete extension at one go if possible. Renewing passport (tatkal) in India demands appointment booking at least a month in advance (in Delhi and Blr) (4). As J1 visa application can be started only  after getting the new passport, one can’t book the US visa appointment in advance. This option is rather troubleseome and has two unknown variables i.e. Passport Appointment slot and J1 Appointment slot. If you prefer to be in control or have limited time to spend in India, then you can try the  option of Indian passport renewal in US.</p>

<p><a href="https://services.vfsglobal.com/usa/en/ind/apply-passport">VFS Global</a> provides the service of passport renewal either by post or appointment. Their website explains everything clearly and there are only few points which I wanted to add here:</p>
<ul>
  <li>I had some issues (ACCESS DENIED) when accessing VFS website through Firefox. I recommend using Google Chrome.</li>
  <li>Except for students, Indian Passport can only be renewed if it is due to expire within 1 year. However, if there are changes in personal details such as name, spouse name, address etc., one can apply for re issuance even if the existing passport has validity of over an year.</li>
  <li>Notarization of documents - This is somewhat confusing as the references I checked said that one can get the document notarized at bank however, my bank said they do not notarize utility or VISA documents. If you are at UPenn, you can get the documents notarized at Penn Book Store (5).</li>
  <li>After paying the fees on VFS Global and receiving email confirmation, you need to dowload courier label. This will not be provided at FedEx store.  There is only one label if you opt for shipping through VFS Global. The return envelope and the return shipping label will taken care of by VFS.</li>
  <li>Another point which I found slightly confusing is ‘first five pages of passport and the last two pages’ – I decided to take the scan of first 7 pages starting with Page number 1 (written at the bottom of passport page).</li>
  <li>Read the checklist carefully before sending out your application.</li>
</ul>

<p>That’s it. You are all set to post your passport renewal application. You can track the application status on VFS website (6).</p>

<p><strong>Disclaimer</strong>: The information provided on this website does not, and is not intended to, constitute legal advice; instead, all information, content, and materials available on this site are for general informational purposes only.</p>

<p><strong>References</strong></p>

<ol>
  <li><a href="https://usa.um.dk/en/travel-and-residence/practical-information/visa/document-checklists">Denmark Tourist VISA</a></li>
  <li><a href="https://www.irishimmigration.ie/coming-to-visit-ireland/how-to-apply-for-a-short-stay-c-visit-tourist-visa/#documents">Ireland Short Stay VISA</a></li>
  <li><a href="https://travel.state.gov/content/travel/en/us-visas/study/exchange.html">US Exchange visa</a></li>
  <li><a href="https://passportindia.gov.in/AppOnlineProject/online/apptAvailStatus">Tatkal Appointment Status</a></li>
  <li><a href="https://penncard.business-services.upenn.edu/notary-services">Notary at UPenn</a></li>
  <li><a href="https://visa.vfsglobal.com/usa/en/ind/track-application">VFS Global Passport Application Tracking</a></li>
</ol>]]></content><author><name>Sunny Rai</name><email>sunnyrai at seas.upenn.edu</email></author><category term="postdoc" /><category term="j1" /><category term="visa" /><category term="conference" /><summary type="html"><![CDATA[I recently came to know that if one (on J1 visa) wishes to travel to a foreign country from US and if returning to the U.S., the residence permit / visa must be valid for at least three months exceeding the last day of the intended stay in foreign country (1,2).]]></summary></entry><entry><title type="html">ruby for jekyll macos update</title><link href="https://raisunny.com/ruby/jekyll/ruby-for-jekyll-macos-update/" rel="alternate" type="text/html" title="ruby for jekyll macos update" /><published>2023-01-16T00:00:00-08:00</published><updated>2023-01-16T00:00:00-08:00</updated><id>https://raisunny.com/ruby/jekyll/ruby-for-jekyll-macos-update</id><content type="html" xml:base="https://raisunny.com/ruby/jekyll/ruby-for-jekyll-macos-update/"><![CDATA[<p>Here, I’m posting my solution for ruby / jekyll issue after MacOS update. I use jekyll for my website and few days back when I tried to update my website blog and executed <code class="language-plaintext highlighter-rouge">bundle exec jekyll serve</code>, I faced this issue.  I don’t have the exact error messages. So <strong>please decide for yourself</strong>.</p>

<p>The error message suggested to execute <code class="language-plaintext highlighter-rouge">bundle install</code>.  However, this spiralled to other errors related to <code class="language-plaintext highlighter-rouge">unf_ext</code>, <code class="language-plaintext highlighter-rouge">commonmarker</code> and other packages suggesting <code class="language-plaintext highlighter-rouge">gem pristine</code> installs. On trying the suggested solutions, I eventually got a message about not having the right permissions. These are the links which I went through during my search:</p>
<ul>
  <li><a href="https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/">Ruby on Mac</a></li>
  <li><a href="https://idratherbewriting.com/documentation-theme-jekyll/mydoc_install_jekyll_on_mac.html">Install Jekyll on Mac</a></li>
</ul>

<p>Finally, this is what I did:</p>
<ul>
  <li>Check  <code class="language-plaintext highlighter-rouge">which ruby</code> and <code class="language-plaintext highlighter-rouge">which gem</code>
    <ul>
      <li>If it’s system’s ruby (/usr/bin/…), then you can simply install a local ruby with your choice of version.</li>
    </ul>
  </li>
  <li>Run <code class="language-plaintext highlighter-rouge">brew doctor</code>
    <ul>
      <li>It should return <code class="language-plaintext highlighter-rouge">Your system is ready to brew</code>. If any warnings are shown, first try to resolve them. In my case, I uninstalled <code class="language-plaintext highlighter-rouge">homebrew</code> completey using this <a href="https://mac.install.guide/homebrew/5.html">LINK</a> and reinstalled using this <a href="https://mac.install.guide/homebrew/index.html">LINK</a>.</li>
      <li>Please follow the steps as described (1. <a href="https://mac.install.guide/homebrew/1.html">prepare your mac</a>, 2.  <a href="https://mac.install.guide/homebrew/3.html">Install Homebrew</a>) Read the tutorials thoroughly as it requires update in <code class="language-plaintext highlighter-rouge">.zshrc</code> and <code class="language-plaintext highlighter-rouge">.zshprofile</code> files.</li>
      <li>Once this is done, check again <code class="language-plaintext highlighter-rouge">brew doctor</code> and verify that it returns <code class="language-plaintext highlighter-rouge">Your system is ready to brew</code>.</li>
    </ul>
  </li>
  <li>Now, run <code class="language-plaintext highlighter-rouge">brew install ruby@3.0</code> or the version you prefer. If you run <code class="language-plaintext highlighter-rouge">brew install ruby</code>, then it installs <code class="language-plaintext highlighter-rouge">ruby@3.2</code> and eventually this will cause <code class="language-plaintext highlighter-rouge">tainted object</code> compatibility errors with jekyll theme.
    <ul>
      <li>Pay attention to the messages displayed during installation. You will have to set paths as indicated in the messages. For instance, <code class="language-plaintext highlighter-rouge">echo 'export PATH="/opt/homebrew/opt/ruby@3.0/bin:$PATH"' &gt;&gt; ~/.zshrc</code>, <code class="language-plaintext highlighter-rouge">export LDFLAGS="-L/opt/homebrew/opt/ruby@3.0/lib" </code> and <code class="language-plaintext highlighter-rouge">export CPPFLAGS="-I/opt/homebrew/opt/ruby@3.0/include"</code></li>
    </ul>
  </li>
  <li>Check <code class="language-plaintext highlighter-rouge">which ruby</code> and <code class="language-plaintext highlighter-rouge">which gem</code>
    <ul>
      <li>Now, you should see (/usr/local/….). If you still get paths such as /usr/bin/…, in that case, you have not set the paths in the above step.</li>
      <li>At the end, you may also see a warning about <code class="language-plaintext highlighter-rouge">sassc</code> . Pay attention to this warning and accordingly add <code class="language-plaintext highlighter-rouge">gem 'sassc-rails'</code> in the gemfile in local repo</li>
    </ul>
  </li>
  <li><code class="language-plaintext highlighter-rouge">gem install jekyll</code></li>
  <li><code class="language-plaintext highlighter-rouge">gem install bundler</code></li>
  <li>Move to your local repo path, and run <code class="language-plaintext highlighter-rouge">bundle update</code> and <code class="language-plaintext highlighter-rouge">bundle</code></li>
  <li>Finally, <code class="language-plaintext highlighter-rouge">bundle exec jekyll serve</code></li>
</ul>

<p>Hope it was helpful.</p>]]></content><author><name>Sunny Rai</name><email>sunnyrai at seas.upenn.edu</email></author><category term="ruby" /><category term="jekyll" /><summary type="html"><![CDATA[Here, I’m posting my solution for ruby / jekyll issue after MacOS update. I use jekyll for my website and few days back when I tried to update my website blog and executed bundle exec jekyll serve, I faced this issue. I don’t have the exact error messages. So please decide for yourself.]]></summary></entry><entry><title type="html">Applying for Postdoc positions at Top Global Institutions (US, UK, Europe)</title><link href="https://raisunny.com/postdoc/research/nlp/css/postdoc-in-top-global-institutions-us-uk-europe/" rel="alternate" type="text/html" title="Applying for Postdoc positions at Top Global Institutions (US, UK, Europe)" /><published>2022-11-05T00:00:00-07:00</published><updated>2022-11-05T00:00:00-07:00</updated><id>https://raisunny.com/postdoc/research/nlp/css/postdoc-in-top-global-institutions-us-uk-europe</id><content type="html" xml:base="https://raisunny.com/postdoc/research/nlp/css/postdoc-in-top-global-institutions-us-uk-europe/"><![CDATA[<p>During COVID-19, I started working on problems focussed on understanding human behavior during unusual situations that arose during COVID-19. I was increasingly fascinated with the role of Natural Language Processing (NLProc) in Computational Social Science. I found myself taking inspiration from theories in psychology more often. Overall, it was just a completely new world and I loved it. However, there was a small problem. I found myself often stuck, lacking the perspective of social science studies and was limited to finetuning large language models (LLMs). This motivated me to look for research groups working at the intersection of CSS and NLProc. After considering the expanding job opportunities in CSS/NLProc, my own interest and the advantage of a truly interdisciplinary global research experience, I decided to look for postdoc opportunities.</p>

<p>I started applying in Jan 2022. After numerous applications and rejections, I finally received postdoctoral fellowship offers from <a href="https://www.upenn.edu/">University of Pennsylvania</a>, <a href="https://www.turing.ac.uk/">The Alan Turing Institute</a> and <a href="https://www.aalto.fi/en">Aalto University</a>.  It’s been almost a month since I landed in Philadelphia for my postdoc at University of Pennsylvania. And, I am so glad to share that the journey has been full of learning and quite a few challenges. Through this post, I would like to share a few points which I found helpful during my application process.</p>
<h2 id="where-to-search">Where to search?</h2>

<p align="center">   <img src="/images/postdoc/hiring.png" alt="search" style="width:45%" /> </p>

<p>The first big challenge is, being aware of professors, research groups which are of interest, and their ongoing work. Only when you have an idea about the kind of research groups you would like to join, you can start preparing your application. <a href="https://www.aclweb.org/portal/acl_sponsored_events">ACL conferences/workshops</a>, <a href="https://www.icwsm.org/2023/index.html/">ICWSM</a>, <a href="https://2022.emnlp.org">EMNLP</a> , <a href="https://www.ic2s2.org">IC2S2</a> are a few highly reputed venues and one may start with going through the work being published. There are numerous research groups doing wonderful work in CSS and NLProc. So, I suggest that you spend a good amount of time in identifying groups/researchers whose work inspires you. In addition,</p>

<ul>
  <li>
    <p>Identify mailing groups: During my search, I found the “<a href="https://list.elra.info/mailman3/postorius/lists/corpora.list.elra.info/">corpora@list.elra.info</a>” emails most helpful. This list has the most proactive group of people who actively post opportunities (phd, postdoc, faculty positions) in NLProc and CSS. You must subscribe to this group if you are looking for academic opportunities in NLProc. <a href="https://groups.google.com/g/ml-news">Machine Learning News</a> Google group is another such resource.</p>
  </li>
  <li>
    <p>Check for Job boards and domain specific platforms: In addition, I actively looked for positions on NLP job boards such as <a href="https://nlppeople.com/jobs/">NLP People</a> and <a href="https://aclweb.org/aclwiki/Employment_opportunities,_postdoctoral_positions,_summer_jobs">ACL Employment Opportunities</a>  along with regularly tracking open positions on the websites of research groups of my interest.</p>
  </li>
  <li>
    <p>Stay Connected: Being on Twitter and following the right research groups/researchers of your interest also help a lot. The postdoc applications often have an early deadline and the sooner you know, the more time you will have to customize your application. Moreover, <a href="https://twitter.com/sny_rai">Twitter</a>, <a href="https://www.linkedin.com/in/sunnyrai-nlp/">LinkedIn</a>, <a href="https://www.researchgate.net">ResearchGate</a> are a few platforms to connect, see what’s going on in your field and be aware of the trends. You can always start with “following / connecting” researchers whose work is interesting to you and then check who else they follow.</p>
  </li>
</ul>

<p>Communication is the key. Don’t hesitate to contact the research group / professor if you have any questions about the ongoing research, or even the expectations from the postdoc. In fact, I suggest you to not wait for the advertisement if you are sure about a research group. Just introduce yourself and enquire over an email or even DM them on Twitter. I had a very positive experience, professors were super warm and even up for a meeting sometimes.</p>
<h2 id="application">Application</h2>

<p align="center">   <img src="/images/postdoc/application.png" alt="search" style="width:55%" /> </p>

<p>Once you have identified the research groups / positions, the next step is to prepare your application. In the advertisement itself, the list of documents for application will be clearly stated. The documents are often:</p>
<ul>
  <li>cover letter,</li>
  <li>CV,</li>
  <li>Research statement,</li>
  <li>degrees transcripts (masters, phd),</li>
  <li>Published papers/ phd thesis and,</li>
  <li>two to three references. For some applications, one of the references has to be your PhD supervisor.</li>
</ul>

<p>For some positions, there will be a dedicated email id to send the documents whereas for others, you may be directed to a job portal where you will have to fill in the details and upload documents. If you are applying for postdoc positions in industry, it’s a good idea to let your references know in advance. The application is not considered complete without the references. When preparing CV and research statement,</p>

<ul>
  <li>Read the eligibility requirements and skills carefully. For instance, if the advertisement asks for expertise in python, and you have no evidence in your CV that you ever worked with Python, then it is unlikely that you will be shortlisted for an interview.</li>
  <li>Identify the projects which demonstrate your expertise, how you could be a valuable asset to the group and accordingly highlight the skills/prior works in your CV. It is important that you have a look at recent papers published by the research group and understand the challenges the group is working on.</li>
  <li>Critically evaluate the content and determine if it is going to help you in securing the interview or not. Having a good CV and research statement is important. Always remember that you will be shortlisted for an interview on the basis of information you have shared.</li>
</ul>

<p>It is definitely worth investing time and effort in customizing CV and research statements for every new position. There are a lot of sample research statements/CV online which can be referenced to understand what to write and what not. You may also ask your peers from similar domains to share their first impression on your research statement.</p>

<h2 id="the-interview">The Interview</h2>

<p align="center">   <img src="/images/postdoc/interview3.png" alt="war" style="width:45%" /> </p>

<p>You can expect to hear soon about the status of your application after the deadline. It is sometimes the case that negative results are not conveyed. Until and unless it is explicitly stated in the advertisement, you can always enquire about the status of your application if you feel it’s been sufficiently long and there is no news on the research group website. Like I said, don’t shy away from communicating your concerns and questions.</p>

<p>Hiring process for postdoc position is often quick and does not give you much time to prepare once you are in the process. It is thus a great idea to</p>
<ul>
  <li>Simultaneously prepare for your interview: Even if you don’t get a positive response for an application, the preparation will eventually help you in improving the contents of your research statements and CVs as you will be able to better gauge what’s important and what’s not.</li>
  <li>Be crisp, clear about your ideas and how every slide is going to support your candidature: Try explaining your work to peers/friends, modify your explanation to make it easy to understand and unambiguous. Being verbose does not help.</li>
  <li>Have a clear idea about the work being done at the research group you wish to join: Always works in your favor and demonstrates your sincerity</li>
</ul>

<p>The interview could be with the head of the group or a team of members in the research group. I personally experienced both type of panels. I was given the choice to pick a slot of my convenience out of available slots. Due to possible different time zones, it is a good idea to give a thought when picking a slot.  If possible, opt for day time, and keep yourself free before and after the interview to avoid feeling rushed.  If not explicitly informed, it is always good to ask in advance if the panel will prefer a set of slides or if there is a programming exercise to complete. Please keep in mind the time duration when preparing slides. Being stopped in the middle due to shortage of time, may defeat the whole purpose of slides.</p>

<p>In my case, I was given a programming exercise before the interview for the position of “Research Associate” at The Alan Turing Institute. Read the description carefully and think of evaluating criteria behind the given task if not mentioned. Design your solution accordingly. For instance, in my case, accuracy was not the concern and the panel wanted an interpretable model. During the interview, I was asked to explain my approach through slides and code notebook.</p>

<p>During  the hiring process at The Aalto University and University of Pennsylvania, I only presented my slides discussing my recent work with a focus on skills stated in the initial adverstisement. It is thus always good exercise to revisit the advertisement before interview to ensure that you are covering everything. Another point to note is that these interviews are a good opportunity to connect and make a sincere impression. Make sure to stay connected with the research group/ professor to stay updated. Even if you receive a negative outcome, you can still learn from them. Bless the Internet and social media.</p>

<p>In the end, do remember that the interview is also for you to judge the research group and how useful it will be in furthering your objective whether it’s finding a job or just research experience in new domain. It is also a good idea to check the career path of ex-postdocs from the research lab. So, do your research, prepare your questions and try to get an idea how the research group supports their postdocs whether they choose to stay in academia or switch to industry jobs.</p>]]></content><author><name>Sunny Rai</name><email>sunnyrai at seas.upenn.edu</email></author><category term="postdoc" /><category term="research" /><category term="nlp" /><category term="css" /><summary type="html"><![CDATA[During COVID-19, I started working on problems focussed on understanding human behavior during unusual situations that arose during COVID-19. I was increasingly fascinated with the role of Natural Language Processing (NLProc) in Computational Social Science. I found myself taking inspiration from theories in psychology more often. Overall, it was just a completely new world and I loved it. However, there was a small problem. I found myself often stuck, lacking the perspective of social science studies and was limited to finetuning large language models (LLMs). This motivated me to look for research groups working at the intersection of CSS and NLProc. After considering the expanding job opportunities in CSS/NLProc, my own interest and the advantage of a truly interdisciplinary global research experience, I decided to look for postdoc opportunities.]]></summary></entry><entry><title type="html">Detecting Human Needs from Social Media Posts</title><link href="https://raisunny.com/human%20behavior/pandemic-people-and-pattern-of-needs-indian-society-during-covid-19/" rel="alternate" type="text/html" title="Detecting Human Needs from Social Media Posts" /><published>2022-05-23T00:00:00-07:00</published><updated>2022-05-23T00:00:00-07:00</updated><id>https://raisunny.com/human%20behavior/pandemic-people-and-pattern-of-needs-indian-society-during-covid-19</id><content type="html" xml:base="https://raisunny.com/human%20behavior/pandemic-people-and-pattern-of-needs-indian-society-during-covid-19/"><![CDATA[<p>Unmet needs scoping can help in designing public policies to cater to evolving needs of a society. Since COVID-19 was declared a pandemic, the world witnessed a variety of control measures which in turn led to the widespread feeling of unfulfillment either due to unfulfilled daily necessities or dwindling opportunities to accomplish one’s goals. Early detection of human needs can enable public agencies and independent organizations to provide prompt support including food supplies, medical care and timely awareness about the crisis amongst masses. But how? Here’s an approach with two key modules namely (a) Mapping Tweets with Needs and (b) Detecting Unmet needs, as shown below.</p>

<figure>
  <img src="/images/pandemicNeeds/PandemicNeedsBlog.png" alt="news" style="width:100%" />
</figure>

<p>The motive behind this study was to understand how the pattern of needs has evolved from pre-COVID-19 phase to different stages of COVID-19 namely <em>lockdown</em>, the <em>first wave</em> and the <em>second wave.</em> Indian tweets posted between Dec’19 to Jul’21, spanning a period of 19 months were collected using snscrape.</p>

<h2 id="mapping-tweets-with-needs">Mapping Tweets with needs</h2>
<p>Manual annotating tweets with their expressed need is expensive and time consuming. We use topic modeling to label tweets - topic modeling is statistical modeling for discovering the abstract “topics” that occur in a collection of documents [wiki]. Idea is to identify these abstract topics in large collection of tweets and then label topics which are much smaller in size! 
As a proof of concept, we used Maslow’s Hierarchy of Needs (MHoN) (Maslow and Lewis, 1987), which categorizes the
human needs into five distinct levels namely physiological[L1], Safety [L2], Love and Belonging [L3], Esteem [L4] and Self-Actualization [L5]. The first two levels namely physiological and safety in MTM are often considered as basic needs whereas the next three levels namely love and belonging, esteem and self-actualization are regarded as advanced needs.</p>

<p>Here, we illustrate the week wise distribution of tweets tagged with needs. One such tweet annotated with physiological need is “<em>Nobody staying at hotels, So why not convert them into covid centers</em>”.</p>

<figure>
  <img src="/images/pandemicNeeds/maslowNeedsDistribution.png" alt="news" style="width:80%" />
</figure>

<h2 id="detetecting-unmet-needs">Detetecting unmet Needs</h2>
<p>The next task was to identify the tweets that were discussing unfulfilled needs. In Frustration-Aggression theory, Dollard et al. (1939) defined frustration as an impediment
or blockage in achieving one’s needs or goals. We hypothesized that unmet needs can be detected by identifying if tweets already marked with needs contain frustration or not. We finetuned the pretrained RoBERTa language model for this task.</p>

<p>Below are two example tweets:</p>

<p><code class="language-plaintext highlighter-rouge">HOW fast does one have to be to book a slot on COWIN? I saw slots available at a hospital; I selected the time slot; entered the CAPTCHA in not more than 15 seconds... and still it didn't book the slot. And then when I refreshed, all the slots were gone.</code> - <strong>Frustrated</strong></p>

<p><code class="language-plaintext highlighter-rouge">I did it! ... I officially completed my undergraduate program and received my bachelors degree. may the glory be to God for blessing me with the gifts to achieve this great milestone</code> - <strong>Not Frustrated</strong></p>

<h3 id="results-and-discussion">Results and Discussion:</h3>

<p>Of 1.1M tweets tagged with needs, our model predicted over 792K tweets expressing frustration. Below are few example tweets marked as frustrated.</p>

<figure>
  <img src="/images/pandemicNeeds/examples.png" alt="news" style="width:70%" />
</figure>

<p>Here’s the week wise transition in the volume of frustrated tweets expressing basic and advanced needs. There is a huge jump in the volume of both categories of tweets. More tweets expressing frustration due to basic needs were posted during the lockdown in comparison to the second wave. The volume of basic tweets during the first wave remained slightly above the pre-COVID level.</p>

<figure>
  <img src="/images/pandemicNeeds/basicAdvRoberta.png" alt="news" style="width:80%" />
</figure>

<p>The proportion of frustrated tweets across <em>basic</em> and <em>advanced</em> level of needs is illustrated below.</p>

<figure>
  <img src="/images/pandemicNeeds/ProportionBasicAdv.png" alt="news" style="width:80%" />
</figure>

<p>Almost 80% of tweets expressing basic needs are unmet irrespective of the time of the year. It seems that users discuss basic needs only when these needs are unfulfilled. The general rate of frustration for advanced needs is 60%. As soon as the frustration due to basic needs reduces, the frustration due to advanced needs increased by over 10%.</p>

<h3 id="key-themes-behind-frustration">Key Themes behind <em>frustration</em></h3>

<p>We used VOSviewer to learn the themes of frustrated tweets posted during lockdown and the second wave of COVID-19.</p>

<figure>
  <img src="/images/pandemicNeeds/LockdownVOS.png" alt="news" style="width:100%" />
</figure>

<p>The above figure illustrate the key concerns expressed during <strong>Lockown</strong>. Travel concerns due to the imposed nationwide lockdown are evident from the terms in cluster <em>blue</em> as shown above. Major Indian cities namely <em>bengaluru, bihar, pune</em> coupled with transportation choices such as <em>bus, train, vehicle</em> can be seen. There are terms such as <em>quarantine, doctor, patient, office</em> in the same cluster indicating the traveling problems faced during daily life activities. The nodes in <em>green</em> reveal the challenges faced by logistics and travel industry. Terms such as <em>refund, ticket, airline, flight, credit</em> reflect the chief complaints by customers along with <em>bill</em> and other <em>payments</em>.</p>

<p>The nodes in cluster <em>red</em> highlight the discussion on digital media and news channels. Growing concern due to increasing toll of infections in the USA and a sense of anger towards China were expressed through tweets. Fake news, channel, minority and economy were also a few topics of online discussion. The nodes in cluster yellow depict the concerns revolving around closed <em>educational institutions, payment of fees, online classes *and *exams.</em></p>

<p>The below figure illustrate the key concerns expressed during the <strong>Second Wave</strong>.</p>

<figure>
  <img src="/images/pandemicNeeds/SecondWaveVOS.png" alt="news" style="width:100%" />
</figure>

<p>The usual customer care complaints are depicted in cluster <em>green</em>. The nodes in cluster <em>red</em> particularly reveal the frustration against political parties and elections. There are also terms such as <em>player, season, ball, game</em> due to upcoming IPL cricket matches. The anxiety due to shortage of <em>ventilator, patient, hospital, icu bed * and *oxygen cylinder</em> is captured through nodes in cluster blue. Words such as refer, friend, help reveal
anxious attempts to locate healthcare through contacts on Twitter. Availability of vaccine and booking of slots were also a cause of frustration amongst Indians. Education remained a concern during the second wave as evident from nodes marked in <em>purple</em>.</p>

<h3 id="conclusion">Conclusion</h3>
<p>A minimally supervised approach to annotate tweets with their need level as in Maslow’s Hierarchy of Needs can greatly reduce the time and human effort without much impact on the quality of annotation. A recurring pattern in the needs, indicating predictability in the emerging needs was observed. Pretrained language models used for detecting unmet needs detection, generalises well and is capable of transfer learning from previously labelled data at the start of a crisis.</p>

<h4 id="credits">Credits:</h4>
<p>[1] https://ai.facebook.com/blog/roberta-an-optimized-method-for-pretraining-self-supervised-nlp-systems/</p>

<p>Read more: Rai, S., Joseph R., Thakur P.S. &amp; Khaliq A.M. (2022). <strong>Identifying Human Needs through Social Media: A study on Indian cities during COVID-19</strong>. <a href="https://sites.google.com/view/socialnlp2022/" target="_blank">Social NLP,  NAACL 2022</a> . Available at <a href="https://www.researchgate.net/publication/360726343_Identifying_Human_Needs_through_Social_Media_A_study_on_Indian_cities_during_COVID-19" target="_blank">Link</a></p>]]></content><author><name>Sunny Rai</name><email>sunnyrai at seas.upenn.edu</email></author><category term="[&quot;human behavior&quot;]" /><summary type="html"><![CDATA[Unmet needs scoping can help in designing public policies to cater to evolving needs of a society. Since COVID-19 was declared a pandemic, the world witnessed a variety of control measures which in turn led to the widespread feeling of unfulfillment either due to unfulfilled daily necessities or dwindling opportunities to accomplish one’s goals. Early detection of human needs can enable public agencies and independent organizations to provide prompt support including food supplies, medical care and timely awareness about the crisis amongst masses. But how? Here’s an approach with two key modules namely (a) Mapping Tweets with Needs and (b) Detecting Unmet needs, as shown below.]]></summary></entry><entry><title type="html">Pandemic and the curios case of metaphors</title><link href="https://raisunny.com/metaphor/human%20behavior/metaphorsOfCovid/" rel="alternate" type="text/html" title="Pandemic and the curios case of metaphors" /><published>2022-01-02T00:00:00-08:00</published><updated>2022-01-02T00:00:00-08:00</updated><id>https://raisunny.com/metaphor/human%20behavior/metaphorsOfCovid</id><content type="html" xml:base="https://raisunny.com/metaphor/human%20behavior/metaphorsOfCovid/"><![CDATA[<p>Metaphors are cognitive constructs that connects apparently unrelated domains. Lakoff and Johnson defined metaphors as a tool that enables people to use what they know about their direct physical and social experiences to understand more abstract things like work, time, mental activity and feelings.</p>
<p align="center"> <img src="/images/covidMetaphorBlog/butterflyDream.png" alt="dream" style="width:45%" /> </p>

<!--more-->

<p>Consider the above mapping where the elusive notion of DREAMS is mapped to a more widely observed entity BUTTERFLIES to express meanings such as <em>vibrant</em> and <em>colorful</em> in a conversation.</p>

<p>Metaphorical constructs are everywhere; in our daily discussions, drama, political speeches, and poetry.  These constructs reflect one’s inner feelings and are used to guide readers to intended meaning. Look at these political phrases such as <em>khooni panja</em> for congress’s election symbol, <em>maut ka suadagar</em>, <em>Upadravi Gotra</em> and many more crafted carefully to deliver the target message amongst masses.</p>

<figure>
  <img src="/images/covidMetaphorBlog/news.png" alt="news" style="width:85%" />
</figure>

<h2 id="metaphors-of-covid-19">Metaphors of COVID-19</h2>

<p>When COVID-19 striked India, metaphors comparing COVID-19 virus to <em>enemy</em>, <em>monster</em> and even <em>devil</em> were widely used. Pandemic was equated to <em>war</em>, <em>tsunami</em>, <em>race</em> etc. The aim was to attract people’s attention, convey the urgency of the situation and infuse a feeling of togetherness. However, the discussion quickly took an unexpected turn where these mapping actually started creating a rift amongst different sections of society. Metaphors borrowed from the domain DARKNESS, DISASTER, and STIGMA led to pessimistic perception with a nagging sense of helplessness and isolation. So, how do we track people thoughts, feelings and reactions when the meanings are not explicit and expressed using figurative constructs?</p>

<h2 id="evolving-perception-towards--covid-19">Evolving Perception towards  COVID-19</h2>

<p>Diachronic word embeddings are used to track semantic shifts in the meaning of a concept. We can thus model the shift in the meaning of metaphorical constructs by analysing embedding space made from tweets in discrete time space namely,</p>
<ul>
  <li>lockdown i.e.   Mar’20  to  Jun’20</li>
  <li>post lockdown i.e.  July’20 to Oct’20 and,</li>
  <li>second wave i.e.  Mar’21 to Jun’21.</li>
</ul>

<h3 id="lockdown-phase">Lockdown Phase</h3>

<p>Below is the first plot illustrating the neighbourhood of <em>covid</em> during the lockdown. The representations are learned using word2vec skipgram model by training on metaphorical tweets posted during the lockdown phase. The words closer to <em>covid</em> indicates high relatedness with covid-19.</p>

<figure>
  <img src="/images/covidMetaphorBlog/UpdatedLockdown.png" alt="lockdown" style="width:90%" />

</figure>

<p>Here, COVID-19 is conceptualized as WAR (<em>fight, battle, deadly, break, war</em>), MONSTER (<em>protect, threat, deadly, dangerous</em>), and even as an OBSTACLE/GAME (<em>challenge, overcome, strike, tackle</em>). India had only few reported cases of COVID-19 in the lockdown phase. Nevertheless, the metaphors are grim and fear inducing.</p>

<h3 id="post-lockdown-phase">Post-Lockdown Phase</h3>

<figure>
  <img src="/images/covidMetaphorBlog/UpdatedPostLockdown.png" alt="post lockdown" style="width:90%" />

</figure>

<p>Post-Lockdown is the phase where India faced the first wave of COVID-19. COVID-19 is discussed using concepts such as <em>race, win, fight, combat, tackle</em>. Moreover, even WAR metaphors are used in more authoritative fashion indicating the transition in the meaning of WAR metaphors while discussing COVID-19. Metaphors such as <em>duty, strategy, push, tackle, brave, fighter, crusader</em> convey a sense of control, a more confident and controlled reaction to the pandemic.</p>

<h3 id="second-wave">Second Wave</h3>

<figure>
  <img src="/images/covidMetaphorBlog/UpdatedSecondWave.png" alt="second wave" style="width:90%" />
</figure>

<p>Highest volume of metaphors were posted in the Second Wave phase. Negative metaphors such as <em>battle, deadly, crisis, suffer, defeat, dangerous</em> came closer to covid compared with the previous two phases. Increased occurrence of DISASTER/DARKNESS metaphors such as <em>grim, catastrophe, devastating, disaster, panic, nightmare, gloom, danger, tsunami</em> etc is observed. Metaphors such as <em>breach, blame, rage, pressure</em>  from GAME domain indicating the shift in meaning of GAME metaphors.</p>

<p>There is a clear difference in the underlying emotional tone of metaphors when compared with the first wave phase. The first wave definitely saw a controlled strategy with manageable COVID-19 cases whereas the second wave  witnessed more suffering, panic and lack of control which is also evident from the metaphors.</p>

<!--<p align="center"> <img src="/images/covidMetaphorBlog/conclude.png" alt="conclude" style="width:35%" class="center"> </p> -->

<p>Metaphors serve as the mirror of one’s psyche and are helpful in understanding the pulse of a society. Our experiment revealed that source domains such as WAR, MONSTER, PRISON, LESSON/TEACHER, SUCCESS/ CHALLENGE imparted a more positive influence in the Covid-19 discourse on twitter. This reaction of people is in contrast to prior work who state that the use of WAR and related metaphors paints a more negative picture about the pandemic. Looking through example tweets from these domains in an Indian context, we see that the presence of such metaphors excites a feel of encouragement on Twitter wherein Indians feel it as a duty to fight and defend their country from COVID-19.</p>

<h2 id="reference">Reference</h2>
<p>Khaliq, A M., Joseph, R. &amp; Rai, S. (2021) <strong>#covid is war and #vaccine is weapon? COVID-19 metaphors in India</strong>. In the 18th Proceedings of International Conference on Natural Language Processing (ICON), NLPAI. Available at <a href="https://www.researchgate.net/publication/357535084_covid_is_war_and_vaccine_is_weapon_COVID-19_metaphors_in_India" target="_blank">Link</a></p>

<p>Image  credits: Shutterstock</p>]]></content><author><name>Sunny Rai</name><email>sunnyrai at seas.upenn.edu</email></author><category term="[&quot;metaphor&quot;, &quot;human behavior&quot;]" /><summary type="html"><![CDATA[Metaphors are cognitive constructs that connects apparently unrelated domains. Lakoff and Johnson defined metaphors as a tool that enables people to use what they know about their direct physical and social experiences to understand more abstract things like work, time, mental activity and feelings.]]></summary></entry></feed>