-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPortfolio.Rmd
More file actions
178 lines (107 loc) · 6.27 KB
/
Portfolio.Rmd
File metadata and controls
178 lines (107 loc) · 6.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
---
title: "Portfolio"
output:
html_document:
toc: true
toc_float: true
collapsed: false
number_sections: false
toc_depth: 4
theme: lumen
highlight: tango
---
```{r general-options-document-format, include=FALSE}
knitr::opts_chunk$set(tidy = 'styler', warning = F, message = F, echo = F, error = F) # Set knitting options general
options(tinytex.verbose = T, dplyr.summarise.inform = F) # Debugging & Suppress summary info
```
<a href="https://fuenal.github.io/dataism/Lectures.html">
```{r The Brain, out.width=150, echo=F}
knitr::include_graphics("images/The Brain.png")
```
</a>
---
# 1. Automated Fossil Fuel Policy Tracker
<div style="margin-bottom:30px;">
</div>
As part of my Data Science Fellowship with <a href="https://faculty.ai/" target="_blank">Faculty AI</a>, I worked together with the *The Fossil Fuel Non-Proliferation Treaty Initiative (FFNPT)*. The <a href="https://fossilfueltreaty.org/" target="_blank">FFNPT Initiative</a> is a global NGO empowering policy advisers, activists, and researchers to facilitate a rapid global transition away from fossil fuel toward clean energy. The Initiative has recently been endorsed by <a href="https://www.theguardian.com/environment/2021/apr/21/101-nobel-laureates-call-for-global-fossil-fuel-non-proliferation-treaty" target="_blank">101 Nobel Laureates</a> and is rapidly gaining international traction.
I had the pleasure to work with the FFNPT on a Data Science project in which I programmed an interactive <a href="https://fossilfueltracker.org" target="_blank">Online App</a>, using web-scraping and Natural Language Processing (Artificial Neural Network) to automatically identify, filter, and visualize relevant policies globally.
<div style="margin-bottom:30px;">
</div>
In the video below, I present my work and the App in more detail.
<div style="margin-bottom:30px;">
</div>
```{r echo=F,include=F,error=F}
#this [video](https://www.youtube.com/watch?v=aCP8X7Pnh4o)
library(vembedr)
```
```{r echo=F,error=F}
embed_youtube("ZRKH-Fm6h_o", width = 900,
height = 500,
ratio = c("16by9", "4by3"),
frameborder = 0,
allowfullscreen = TRUE)
```
---
Here, you can check out the <a href="https://fossilfueltracker.org" target="_blank">Online App</a>.
<div style="margin-bottom:30px;">
</div>
<iframe width='1000px' height='600px' src='https://fossilfueltracker.org/app/ffnpt' >
<p>Your browser does not support iframes</p>
</iframe>
---
# 2. Natural Language Processing
<div style="margin-bottom:30px;">
</div>
As part of the [Fossil Fuel Policy Tracking App](https://fossilfueltracker.org), I used Natural Language Processing to classify specific policy text data. Understanding how supply-side fossil fuel policies develop across countries is critical to ensure timely and effective climate actions across multiple levels and scales. Studying climate change supply-side fossil fuel policies has become increasingly difficult, particularly given the increasing volume of potentially relevant data available, the validity of existing methods handling large volumes of data, and comprehensiveness of assessing ongoing developments over time. In this project, I utilized machine learning to assist the <a href="https://fossilfueltreaty.org/" target="_blank">FFNPT Initiative</a>, collaborators, and researchers when conducting policy research using text as data. Specifically, I trained an **Artificial Neural Network** model to classify policy texts using data from various sources such as news-articles and official government databases. The main goal of this model is to take text data as input and be able to produce a label to classify these as ‘Supply-side related’, ’Demand-side related’, or ‘Non-climate policies’ with a certain probability. Having such an automated classification model saves a significant amount of time and resources and allows for a real-time tracking of fossil-fuel policy developments.
This repository contains all the software for running the NLP pipeline including some sample documents. It can be executed online as a binder notebook. The software comes with a subset of the full dataset, and can be demonstrated without any additional changes.
The Figure below gives an abstract overview of the NLP Pipepline.
<div style="margin-bottom:30px;">
</div>
```{r ann1, out.width=1000, out.height=300, echo=F}
knitr::include_graphics("images/overview1.png")
```
<div style="margin-bottom:30px;">
</div>
The Figure below gives a more detailed overview of the NLP Pipepline.
<div style="margin-bottom:30px;">
</div>
```{r ann2, out.width=1500, out.height=500, echo=F}
knitr::include_graphics("images/overview2.png")
```
<div style="margin-bottom:30px;">
</div>
The graphic below shows the overall model performance.
<div style="margin-bottom:30px;">
</div>
```{r ann3, out.width=1000, out.height=500, echo=F}
knitr::include_graphics("images/ANN1.png")
```
<div style="margin-bottom:30px;">
</div>
The source code for the Artificial Neural Network is available in my <a href="https://github.com/FUenal/fossil_fuel_policy_nlp" target="_blank">Github</a>
<div style="margin-bottom:30px;">
</div>
---
# 3. Machine Learning & Climate Change
<div style="margin-bottom:30px;">
</div>
In my role as a Postdoctoral Research Associate & Data Scientist with <a href="https://www.sdmlab.psychol.cam.ac.uk/staff/dr-fatih-uenal" target="_blank">The University of Cambridge</a>, I have worked with big data sets using Machine Learning Algorithms to identify the most robust predictors of Climate Change Attitudes and Policy Preferences. The Figure below depicts the overall research scheme:
<div style="margin-bottom:30px;">
</div>
```{r Machine Learning Model, out.width=900, out.height=600, echo=F}
knitr::include_graphics("images/Machine Learning Model.png")
```
<div style="margin-bottom:30px;">
</div>
Some of the results of this line of work is available below:
<div style="margin-bottom:30px;">
</div>
<iframe width='1000px' height='600px' src='https://fuenal.github.io/dataism/MachineLearningPredictors.html' >
<p>Your browser does not support iframes</p>
</iframe>
<div style="margin-bottom:30px;">
</div>
* <a href="https://fuenal.github.io/dataism/MachineLearningPredictors.html" target="_blank">Climate Change Policy Support: A Machine Learning Approach</a>
<div style="margin-bottom:30px;">
</div>
---