Background
Introduction
Prevalence and severity of Hay fever
Allergies surveillance from social media
Deep learning in text classification
Contributions
-
We introduce Deep Learning application in the context of Pollen Allergy surveillance from Social Media in place of currently dominant conventional Machine Learning classifiers;
-
We focus on challenging informal vocabulary, which leads to condition under/over-estimation if unaddressed in place of the traditional limited keyword/lexicon-based approaches;
-
We propose the fine-grained classification into 4 classes in place of the most common binary classifiers, i.e. Hay Fever-related/Hay Fever-non-related;
-
We enrich the data with an extensive list of weather variables for potential patterns identification, where previous studies focus mainly on Temperature, and Pollen Rate.
Methods
Study design
-
Framework development for quantitative and qualitative Hay fever monitoring from Twitter;
-
Evaluation of multiple deep learning architectures to online user-generated content classification;
-
Domain-specific embeddings training and evaluation for accuracy performance improvement;
-
Internal workings demonstration through the predictive probabilities and embeddings vectors investigation;
-
Correlation with weather variables for patterns identification and future forecasting.
Data extraction
Embeddings development
Twitter | Reddit | Youtube | |
---|---|---|---|
Count | 5,197 | 15,843 | 432 |
Average Character Length | 145 | 209 | 88 |
St.Dev. Character Length | 132 | 336 | 111 |
Minimum Date | 2019/06/01 | 2009/12/02 | 2011/10/11 |
Maximum Date | 2019/01/20 | 2019/01/20 | 2019/01/20 |
Target data
-
Search terms: ’hayfever’ OR ’hay fever’;
-
Maximum number of tweets: n=1,000 (never reached due to limited number of posts meeting the specified criteria);
-
Since/until dates: s=2018/06/01, u=2018/12/31 following the weekly schema;
-
Geo-coordinates: Alice Springs (−23.698, 133.880), Sydney (−33.868, 151.209), Melbourne (−37.813, 144.963), and Brisbane (−27.469, 153.025).
Annotation process
Class | ID | Description | Example |
---|---|---|---|
Informative | 1 | Personal reporting including: symptoms (a), treatments (b) or both (c). | ‘90% sure we have either developed hayfever. My eyes feel so dry and my nose is running whenever i go outside’ (a) |
‘my hayfever better watch out today bc ate a spoonful of local honey AND took antihistamines’ (b) | |||
‘Kings Cross triggered my hayfever today and now I can’t stop sneezing. I need a zyrtec’ (c) | |||
2 | General personal reporting. |
‘Hayfever suuucks’
| |
Non-Informative | 3 | Public broadcasting including: marketing (a), news (b), warnings (c) etc. | ‘Himalayan Inhaler to help with asthma & hayfever #himalayansalt #onlineshopping’ (a) |
‘Scientists in Melbourne have made a breakthrough that could change the lives of asthma and hay fever sufferers’ (b) | |||
‘Be careful Victorians: thunderstorm asthma warning. Stay safe. #hayfever #health #bom #weather’ (c) | |||
4 | Unrelated/Ambiguous. |
‘Very annoying. Could be a preservative or maybe hay fever.’
|
Training and testing
Weather correlation
Results
Accuracy evaluation
Embeddings | GloVe | GloVe | HF |
---|---|---|---|
Dimensions | 50 | 300 | 50 |
RNN | 0.659 | 0.637 | 0.677 |
LSTM | 0.862 | 0.878 | 0.807 |
CNN | 0.857 | 0.853 | 0.826 |
GRU | 0.864 | 0.879 | 0.822 |
Embeddings/Dimensions | Model | Precision | Recall |
---|---|---|---|
GloVe/300 | RNN | 0.602 | 0.636 |
LSTM | 0.876 | 0.878 | |
CNN | 0.854 | 0.850 | |
GRU | 0.880 | 0.880 | |
HF/50 | RNN | 0.688 | 0.676 |
LSTM | 0.804 | 0.806 | |
CNN | 0.828 | 0.828 | |
GRU | 0.824 | 0.822 |
Classification output
ID | Prob. | Example* | Implication** | Class |
---|---|---|---|---|
1 | 0.995 |
I look like I just cried, but really it’s a hay fever
| watery eyes | Informative - symptom |
1 | 0.588 |
I’m getting hayfever sob no thank you
| watery eyes | Informative - symptom |
1 | 0.993 |
Tears and snot are streaming down my face at the moment #hayfever
| watery eyes, runny nose | Informative - symptom |
1 | 0.996 |
My hay fever is in overdrive today. Can’t stop sniffing
| runny nose | Informative - symptom |
1 | 0.999 |
@username I have an awful hay fever. Bad smells do not affect me during pollen season
| congested nose | Informative - symptom |
1 | 0.503 |
@username A really bad dose of hayfever that kept me up all last night. Not even herbal tea could help. Hopefully, it’ll ease down soon…
| sleep disturbance | Informative - symptom |
1 | 0.994 |
Thank hay fever in Melbourne today for me being awake at 4am. Existence is a real pain
| sleep disturbance | Informative - symptom |
1 | 0.660 |
me tries to sleep, me starts suffering from hayfever
| sleep disturbance | Informative - symptom |
1 | 0.989 |
i had hayfever for a week now and my lips have been getting dried up easilly so i have to lip it moist it
| new symptom | Informative - symptom |
1 | 0.857 |
Hayfever decided to turn more into cough and made me lose my voice a bit...
| new symptom | Informative - symptom |
1 | 0.999 | Time to stock up on antihistamine as hay fever season fast approaching | treatment (generic) | Informative - treatment |
1 | 0.727 |
@username Can’t wait for the spring, just have to remember to use my hay fever spray!
| treatment (generic) | Informative - treatment |
1 | 0.999 |
With Sudafed and plenty of water I have made it through the presention today! Hay fever won’t beat me anymore!
| treatment (specific) | Informative - treatment |
1 | 0.999 |
Too bad Loratadine is not helping with hay fever today.
| treatment (specific) | Informative - treatment |
3 | 0.947 |
EXCLUSIVE: @username shares his tips to alleviate watery eyes, an itchy or dribbling nose and constant coughing caused by hay fever.
| watery eyes, itchy nose | Non-Informative - news |
3 | 0.999 |
A study led by Prof Robyn O’Hehir has found a tablet used to treat chronic #hayfever could protect sufferers from future thunderstorm asthma events #immunotherapy
| treatment (generic) | Non-Informative - news |
3 | 0.999 |
Is TCM really better than Western medicine to help with hay fever? Chinese researchers think so. @username reports. #TCM #hayfever #medicine #Western #treatment
| treatment (generic) | Non-Informative - news |
3 | 0.999 |
A useful @username article speaking about the use of antihistamines in allergic rhinitis known as hay fever. it also inc. evidence of isotonic nasal salines that help to alleviate the antihistamine reliance, reduce symptoms and improve quality of life.
| treatment (generic) | Non-Informative - marketing |
3 | 0.999 |
New article about makeup tips for hayfever sufferers to conceal a red nose and itchy eyes has been posted on Daily Celeb Pics
| new symptom, itchy eyes | Non-Informative - marketing |
4 | 0.821 |
@username Tearing up or as Mr. Bart would say, "I’ve got a little bit of Hay fever".
| watery eyes | Non-Informative - unrelated |
4 | 0.873 |
I can sound like an echo of what has been written already: I’m really sorry you had to endure all of this, hope all the vacant passengers get nasty hayfever or even worse, also hope you get support if needed!
| generic | Non-Informative - ambiguous |
GloVe (300) | HF (50) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
’hayfever’ | ’antihistamines’ | ’eyes’ | ’nose’ | ’eyes’ | ’nose’ | ||||||
rhinitis | 0.725 | antihistamine | 0.836 | eye | 0.821 | noses | 0.704 | nose | 0.882 | eyes | 0.882 |
allergies | 0.655 | cetirizine | 0.660 | lips | 0.741 | nostrils | 0.652 | throat | 0.853 | throat | 0.851 |
colds | 0.627 | sedating | 0.657 | smile | 0.720 | mouth | 0.651 | itchy | 0.797 | hair | 0.792 |
allergy | 0.617 | medications | 0.640 | face | 0.708 | throat | 0.639 | sinuses | 0.765 | itchy | 0.780 |
antihistamine | 0.599 | loratadine | 0.627 | ears | 0.667 | ears | 0.638 | sneezing | 0.760 | blocked | 0.771 |
eczema | 0.595 | histamine | 0.587 | eyelids | 0.650 | lips | 0.623 | hair | 0.756 | dry | 0.770 |
sneezing | 0.595 | rhinitis | 0.581 | hands | 0.646 | ear | 0.613 | hands | 0.734 | sinuses | 0.764 |
allergic | 0.587 | medicines | 0.579 | staring | 0.636 | tongue | 0.603 | sore | 0.725 | face | 0.758 |
sinusitis | 0.586 | stimulants | 0.574 | stared | 0.632 | nostril | 0.594 | watery | 0.715 | sneezing | 0.742 |
asthma | 0.583 | antibiotics | 0.572 | tears | 0.623 | nasal | 0.589 | swollen | 0.712 | hands | 0.737 |
pollens | 0.581 | histamines | 0.571 | eyed | 0.619 | eyes | 0.576 | blocked | 0.712 | mouth | 0.727 |
bronchitis | 0.568 | fexofenadine | 0.567 | smiling | 0.616 | eye | 0.565 | dry | 0.710 | eye | 0.705 |
antihistamines | 0.559 | hayfever | 0.559 | shining | 0.600 | lip | 0.563 | ears | 0.702 | head | 0.699 |
excema | 0.554 | zyrtec | 0.556 | fingers | 0.599 | teeth | 0.543 | itching | 0.690 | ass | 0.689 |
sniffles | 0.552 | pseudoephedrine | 0.554 | looked | 0.597 | head | 0.540 | runny | 0.681 | sore | 0.675 |
Error analysis
No | Example | Prediction | Prob. | Actual |
---|---|---|---|---|
P
1
| With this hay fever making me feel like I don’t have enough air in my lungs I hope this helps;-) | 2 Informative - generic | 0.509 | 1 Informative - symptom |
Explanation: Rare expression of the symptom, referring to breathing difficulty, and negation ocurrence. Still, the low predictive probability obtained. | ||||
P 2 |
How can I be awake with hay fever at 2am?!
| 2 Informative - generic | 0.543 | 1 Informative - symptom |
Explanation: Short length and expressiveness indicators (’?!’) typical for generic class 2. Still, the low predictive probability obtained. | ||||
P 3 |
@username Same!!! Grass gives me bad rashes and hay fever as well as pollen and it sucksss
| 2 Informative - generic | 0.993 | 1 Informative - symptom |
Explanation: Repeated characters for added emphasis and expressiveness (’!!!’) typical for generic class 2. New and rare symptom occurred. | ||||
P 4 |
Dubliner Goran Pavlovic claims started stinging himself with nettles and his hay fever symptoms started to disappear, if suffered would give it a try
| 1 Informative - treatment | 0.527 | 3 Non-Informative - news |
Explanation: Identified as treatment. The news content is paraphrased by the user, thus classified as personal. Still, the low predictive probability obtained. | ||||
P 5 |
Could be a dangerous day tomorrow for asthmatic and hay fever sufferers. If we were in summer and not winter we would be looking at a severe fire danger. Those are warm winds.
| 2 Informative - generic | 0.863 | 3 Non-Informative - warning |
Explanation: Warning content paraphrased by the user - no typical ’warning’/’be careful’ phrase identified. |