| Literature DB >> 29084707 |
Abeed Sarker1, Pramod Chandrashekar2, Arjun Magge2, Haitao Cai1, Ari Klein1, Graciela Gonzalez1.
Abstract
BACKGROUND: Pregnancy exposure registries are the primary sources of information about the safety of maternal usage of medications during pregnancy. Such registries enroll pregnant women in a voluntary fashion early on in pregnancy and follow them until the end of pregnancy or longer to systematically collect information regarding specific pregnancy outcomes. Although the model of pregnancy registries has distinct advantages over other study designs, they are faced with numerous challenges and limitations such as low enrollment rate, high cost, and selection bias.Entities:
Keywords: cohort studies; data analysis; machine learning; natural language processing; pregnancy; social media; text mining
Mesh:
Year: 2017 PMID: 29084707 PMCID: PMC5684515 DOI: 10.2196/jmir.8164
Source DB: PubMed Journal: J Med Internet Res ISSN: 1438-8871 Impact factor: 5.428
Figure 1Flowchart for the pregnancy cohort discovery pipeline from social media.
Query patterns used for retrieving the pregnancy-indicating tweets and some notes specifying additional details. “.*” represents sequences of characters of any length, “|” represents “or” and “&” represents “and” in any order. Queries are shown in simplified forms. Frequency and relative frequency of tweets for each pattern is also shown (N=14,156).
| Query pattern | Notes | Relative frequency, n (%) |
| (im|i am|i’m).*[ | Time can be week, weeks, month or months | 4374 (30.90) |
| baby & arriving | N/Aa | 375 (2.65) |
| baby coming soon | Exact sequence with whitespace or punctuations in between | 297 (2.10) |
| been.*[ | Time can be day, days, week, weeks, month or months; exact sequence for “been time” with whitespace or punctuations in between | 22 (<1.00) |
| growing & baby & belly | N/A | 150 (1.06) |
| (im|i am|i’m) expecting.*baby | Exact sequence for “(im|i am|i'm) expecting” with whitespace or punctuations. “baby” must appear anywhere after | 74 (<1.00) |
| (im|i am|i’m) going to (b|be) a mom | Exact sequence with punctuations or whitespace in between | 179 (1.26) |
| (im|i am|i’m) having a baby | N/A | 1396 (9.86) |
| i (hav|have) been pregnant | N/A | 88 (<1.00) |
| (ive|i’ve) been pregnant | N/A | 735 (5.19) |
| adding & one & “our family” | Exact sequence for “our family” with punctuations or whitespace in between | 13 (<1.00) |
| my pregnancy | Exact sequence with whitespace or punctuations in between | 6211 (43.88) |
| (im|i am|i’m) going to have a baby | N/A | 234 (1.65) |
| our family.*growing.*(2|two) feet | N/A | 8 (<1.00) |
aN/A: not applicable.
Sample tweets retrieved by the 14 queries and their binary annotations. "True" indicates real pregnancy indications and "False" indicates false positives. For the true category, we have included at least one sample from each of the 14 queries.
| Tweet | Category |
| one month today (give or take) I am going to be a mom...I can not wait to see what my baby girl looks like :-) | True |
| So I thought I would let Twitter know that I am expecting a baby in eight months!!! | True |
| this belly and the sweet baby growing inside is the best christmas gift I could ever ask for!!! Merry Christmas e... | True |
| been 3 weeks since I've heard bebes heart or seen it. So sometimes I don't feel pregnant but this new stretch mark is proving otherwise | True |
| Just s few short months from adding another one to our family! | True |
| Ready for Christmas and pumped to announce that baby boy **** will be arriving May 2017! #MC3 | True |
| Pregnancy announcement Our family is growing by 2 feet and 1 heart | True |
| Hoping & praying for a solution to income issues. Baby coming soon! Need better #job & better #pay | True |
| i literally cannot wrap my head around the fact that I am going to have a baby in 16 days or less.. | True |
| so I am having a baby and super excited | True |
| swear since I have been pregnant everyone's forgot about me and doesn't involve me in anything | True |
| well... im currently 39 weeks and 6 days pregnant... you can come any time now sweetie | True |
| i just took my pregnancy cravings to a whole new level: I put ranch on my macaroni and cheese. #Yummmmmmmm | True |
| i'm so crafty since I've been pregnant before I couldn't even color a rainbow. | True |
| forever amazed at the number of women that ask me when I am going to have a baby instead of asking me about my career goals. | False |
| i swear I've been pregnant for 2 years now. #theobesityneedstostop #ineedwine | False |
| I'm having a baby JB day and it's killing me. I love him so much @justinbieber | False |
| my sister is five weeks and three days pregnant. I’m going to be an auntie oh my god | False |
| girls will be two days pregnant already posting pictures talking bout “I’m getting big.” | False |
| Cant believe im having a baby brother! | False |
Classifier performances for the three strong classifiers, the Naïve Bayes baseline, and the ensemble classifier. Precision, recall, and F1 score for the pregnancy class for each classifier are shown along with overall accuracy and 95% CI for the accuracy.
| Classifier | Pregnancy class | Both classes | ||
| Precision | Recall | F1 score | Accuracy (95% CI) | |
| Naïve Bayes | 0.44 | 0.90 | 0.59 | 0.57 (0.56-0.58) |
| Random forest | 0.95 | 0.79 | 0.86 | 0.81 (0.80-0.82) |
| Deep neural network | 0.90 | 0.87 | 0.88 | 0.84 (0.83-0.85) |
| Support vector machines | 0.92 | 0.85 | 0.88 | 0.84 (0.83-0.85) |
| Ensemble | 0.93 | 0.85 | 0.89 | 0.84 (0.83-0.85) |
Figure 2The performance of the supervised classifier on the pregnancy class for each query pattern.
Figure 3Receiver operating characteristic (ROC) curves for the pregnancy tweet classifier at different sizes of the training data (top). Values for the area under the ROC curve (AUC) are also shown for each training set proportion. Classification precision, recall and F1 score over each class and the full dataset at each training set proportion (bottom).
Leave-one-out and single feature scores for the features used in classification. “-” indicates that the feature was removed.
| Feature set | Pregnancy class | Nonpregnancy class | Full set | |||||||
| Pa | Rb | Fc | P | R | F | P | R | F | ||
| 0.92 | 0.85 | 0.88 | 0.62 | 0.76 | 0.69 | 0.85 | 0.83 | 0.84 | ||
| -N-grams | 0.90 | 0.85 | 0.87 | 0.61 | 0.73 | 0.67 | 0.83 | 0.82 | 0.82 | |
| -Dense vectors | 0.92 | 0.85 | 0.88 | 0.61 | 0.76 | 0.68 | 0.84 | 0.83 | 0.83 | |
| -Word clusters | 0.92 | 0.84 | 0.88 | 0.58 | 0.76 | 0.66 | 0.84 | 0.82 | 0.83 | |
| -Sentiment features | 0.92 | 0.85 | 0.88 | 0.62 | 0.76 | 0.68 | 0.85 | 0.83 | 0.84 | |
| -Structural features | 0.92 | 0.85 | 0.88 | 0.62 | 0.76 | 0.68 | 0.85 | 0.83 | 0.84 | |
| N-grams | 0.92 | 0.83 | 0.86 | 0.55 | 0.76 | 0.63 | 0.84 | 0.81 | 0.82 | |
| Dense vectors | 0.89 | 0.82 | 0.85 | 0.54 | 0.68 | 0.61 | 0.81 | 0.79 | 0.80 | |
| Word clusters | 0.90 | 0.83 | 0.86 | 0.56 | 0.70 | 0.82 | 0.82 | 0.80 | 0.81 | |
| Sentiment features | 0.70 | 0.64 | 0.67 | 0.28 | 0.20 | 0.24 | 0.55 | 0.49 | 0.52 | |
| Structural features | 0.67 | 0.69 | 0.68 | 0.30 | 0.28 | 0.29 | 0.55 | 0.56 | 0.56 | |
aP: precision.
bR: recall.
cF: F1 score.
Figure 4Distribution of mentions of a set of medications in the data collected for a sample of our collected pregnancy cohort. Mentions are also categorized by our preliminary trimester detection approach.
Sample of 20 relevant posts from the timeline of a user classified as pregnant by our system. The posts were manually curated and categorized. Usernames have been anonymized.
| Number# | Tweet | Trimester | Information type or comment |
| 1 | The tonsils are being evicted...1st October they will be no more! | First | Health condition |
| 2 | God...I’m 30...The right thing to do is probably to eat lots of cake to make it better #happybirthdaytome #30s | First | Age of user |
| 3 | @username yep I’m all done, not feeling too bad at the moment, got a pharmacy full on painkillers to see me through! Thanks xx | First | Medication |
| 4 | @username thanks, had some toast before I came home, just made a second batch to take painkillers with! | First | Medication |
| 5 | @username hazel on dw worked out the adult dose of calpol the other day so I saved that for emergencies, we always have calpol in! Xx | First | Medication |
| 6 | @username @username I’ve had tramadol this week post tonsils and can confirm that it definitely leaves you feeling pissed and sleepy! | First | Medication |
| 7 | poor you doesn’t sound fun. I’m ok, throat is much better, off all the painkillers now which is good! | First | Stopping medication |
| 8 | 20 week scan today! So pleased its first thing and I don’t have to wait all day. Big question is, pink or blue?? | Second | Progress information |
| 9 | So baby conn number 2 is a girl! Alex was right all along, now I need some nice girl names! #baby | Second | Gender of baby or health condition |
| 10 | Looking forward to #oneborneveryminute, love baby shows even if I am 25 weeks pregnant | Second | Pregnancy post detected by our query |
| 11 | Nothing like seeing a tiny baby to make me realise I’m getting one of those soon #10weekstogo #realitycheck | Third | Progress of pregnancy |
| 12 | Looks suspiciously like we are joining the pox bench, anyone else? #chickenpox | Third | Health condition |
| 13 | Think we may over the worst for the pox, day 5 no new spots but lots crusted over. #poxwatch | Third | Health condition |
| 14 | me! 36 weeks pregnant and travelling from sunny weston super mare to see you! | Third | Pregnancy indicating post |
| 15 | @username i am not burnt as I am mainly inside or in the air conditioned car where I am cooler #37weekspregnant | Third | Progress of pregnancy |
| 16 | This is Charlotte Amelia Conn born today at 11:22 weighing in at 7lb 10ozs | Birth | Birth announcement |
| 17 | @username Charlotte was 7lb 10ozs and dropped to 6lb 12ozs today. Apparently anything over a 10% drop triggers a whole load of stuff | Post birth | Weight loss in newborn |
| 18 | @username thought you’d think so! Yeah apparently 10% is the cut off, hers was an 11.2% drop. Hoping to avoid readmission tomorrow | Post birth | Weight loss in newborn |
| 19 | @username yup. She needed to gain and she lost another 10g. :-( | Post birth | Continuing weight loss |
| 20 | @username does indeed suck to be a grown up. We are good now thanks, Lottie’s gaining weight well too. Need a bit more sleep though! | Post birth | Newborn regaining weight |