Early-stage pregnancy recognition on microblogs: Machine learning and lexicon-based approaches

Samer Sarsam, Ahmed Ibrahim Alzahrani, Hosam Al-Samarraie

Research output: Contribution to journalArticlepeer-review

2 Downloads (Pure)


Pregnancy carries high medical and psychosocial risks that could lead pregnant women to experience serious health consequences. Providing protective measures for pregnant women is one of the critical tasks during the pregnancy period. This study proposes an emotion-based mechanism to detect the early stage of pregnancy using real-time data from Twitter. Pregnancy-related emotions (e.g., anger, fear, sadness, joy, and surprise) and polarity (positive and negative) were extracted from users’ tweets using NRC Affect Intensity Lexicon and SentiStrength techniques. Then, pregnancy-related terms were extracted and mapped with pregnancyrelated sentiments using part-of-speech tagging and association rules mining techniques. The results showed that pregnancy tweets contained high positivity, as well as significant amounts of joy, sadness, and fear. The classification results demonstrated the possibility of using users’ sentiments for early-stage pregnancy recognition on microblogs. The proposed mechanism offers valuable insights to healthcare decision-makers, allowing them to develop a comprehensive understanding of users’ health status based on social media posts.
Original languageEnglish
Article numbere20132
Number of pages12
Issue number9
Publication statusPublished - Sept 2023


  • Sentiment analysis
  • Pregnancy recognition
  • Social media analysis
  • Emotions


Dive into the research topics of 'Early-stage pregnancy recognition on microblogs: Machine learning and lexicon-based approaches'. Together they form a unique fingerprint.

Cite this