Attention Mechanism with BERT for Content Annotation and Categorization of Pregnancy-Related Questions on a Community

Xiao Luo1, Haoran Ding2, Matthew Tang3

  • 1Department of CIT, IUPUI, Indianapolis, USA.

Proceedings. IEEE International Conference on Bioinformatics and Biomedicine
|March 5, 2021
PubMed

In recent years, the social web has been increasingly used for health information seeking, sharing, and subsequent health-related research. Women often use the Internet or social networking sites to seek information related to pregnancy in different stages. They may ask questions about birth control, trying to conceive, labor, or taking care of a newborn or baby. Classifying different types of questions about pregnancy information (e.g., before, during, and after pregnancy) can inform the design of social media and professional websites for pregnancy education and support. This research aims to investigate the attention mechanism built-in or added on top of the BERT model in classifying and annotating the pregnancy-related questions posted on a community Q&A site. We evaluated two BERT-based models and compared them against the traditional machine learning models for question classification. Most importantly, we investigated two attention mechanisms: the built-in self-attention mechanism of BERT and the additional attention layer on top of BERT for relevant term annotation. The classification performance showed that the BERT-based models worked better than the traditional models, and BERT with an additional attention layer can achieve higher overall precision than the basic BERT model. The results also showed that both attention mechanisms work differently on annotating relevant content, and they could serve as feature selection methods for text mining in general.

Related Concept Videos

Teratogenicity01:07

Teratogenicity

The ability of a drug to produce structural deformations and functional abnormalities in the developing embryo or the fetus is called teratogenicity, and the drug producing this effect is known as a teratogen. Teratogenic effects include stillbirth, miscarriage, intrauterine growth restriction, and neurocognitive delay. A teratogen may affect the embryo at different stages of development, which is important in determining the type and extent of the damage. During blastocyst formation, the early...
3.7K
Hormonal Regulation01:33

Hormonal Regulation

The renin-aldosterone system is an endocrine system which guides the renal absorption of water and electrolytes, thus managing blood pressure and osmoregulation. Activation of the system begins in the kidneys with a small cluster of cells adjacent to the afferent and efferent blood vessels of the renal corpuscle. As the nephrons are filtering blood, juxtaglomerular cells monitor blood pressure. If they detect a decrease in pressure, they release the hormone renin into the bloodstream.
35.0K
Hormonal Regulation01:40

Hormonal Regulation

Hormones regulate a significant portion of digestion through activation of the neuroendocrine system. The neuroendocrine system of digestion contains many different hormones all with multiple functions that are both, directly and indirectly, involved in digestion.
46.0K
Fertilization01:38

Fertilization

During fertilization, an egg and sperm cell fuse to create a new diploid structure. In humans, the process occurs once the egg has been released from the ovary, and travels into the fallopian tubes. The process requires several key steps: 1) sperm present in the genital tract must locate the egg; 2) once there, sperm need to release enzymes to help them burrow through the protective zona pellucida of the egg; and 3) the membranes of a single sperm cell and egg must fuse, with the sperm...
75.4K
Parental Care00:55

Parental Care

Many animals exhibit parental care behavior, including feeding, grooming, and protecting young offspring. Parental care is universal in mammals and birds, which often have young that are born relatively helpless. Several species of insects and fish, as well as some amphibians, also care for their young.
12.2K
Fetal Circulation01:14

Fetal Circulation

Fetal circulation is a unique system that facilitates the exchange of gases, nutrients, and waste products between the developing fetus and the mother. This intricate process takes place through a special organ called the placenta.
Two umbilical arteries transport blood from the fetus to the placenta. At the placenta, the blood absorbs oxygen and nutrients while simultaneously eliminating waste products. This oxygen-enriched and nutrient-rich blood then returns to the fetus through one...
1.9K