Lhia: A Smart Chatbot for Breastfeeding Education and Recruitment of Human Milk Donors
Abstract
:Featured Application
Abstract
1. Introduction
2. Background
2.1. Breastfeeding Education
2.2. Human Milk Donation
2.3. Conversational Agents
3. Related Work
4. Methodology
4.1. Development Based on Co-Design
- 1.
- Development: At this stage, the first version of Lhia was developed and made available to be used by the participants;
- 2, 3.
- Interaction and Partial Results/Refinement:this stage took place in four rounds, as explained in Table 1, the first three lasting seven days and the last one hundred twenty minutes during a face-to-face brainstorming workshop. During this interactive process, we performed several training sessions with different DL-based NLP pipelines to identify the one with the best accuracy result to be deployed in Lhia. Also, this iterative development process allowed us to improve the conversational flow based on participants’ suggestions. The flow was improved in the following manners: content improved by adding figures and better explanations, adjustment of used vocabulary, and increase in the number of chatbot answers (i.e., utterances). During each round, we collected a number of fallback triggers—i.e., a fallback is triggered by a low confidence score (≤0.4; the chatbot is not able to classify a user intent) on the user intent classification—the confidence scores on the user intent classification, the number of user interactions, the number of participants interacting with the chatbot and, in the last two rounds, the Net Promoter Score (NPS) [43] on a 3-answer Likert scale;
- 4.
- Production: finally, after the interactive process, Lhia reached a version that could be put into production.
4.2. Chatbot Conversational Flow
4.3. Chatbot Architecture
- Lhia-Core component is responsible for recognizing user inputs. It used a DL-based NLP pipeline, so classifying intents and providing responses;
- Lhia-Action processes requests sent from the Lhia-Core component. For example, during a conversation, Lhia-Core can send a request to identify if the user is interacting for the first time (i.e., to check if there is a history of past conversations). Lhia-Action can also schedule tasks in the Lhia-Events component, such as notification messages to be sent to the user;
- Lhia-Events is a publish–subscribe broker, in which Lhia-Action acts as a producer and Lhia-Task as a consumer;
- Lhia-Task is a component for scheduling tasks and sending notifications. It consumes tasks from the Lhia-Events, which are scheduled according to time parameters. After they are processed, notifications encouraging donation and guidance on exclusive breastfeeding are sent to the Lhia-Core component.
- DB Atlas is a component used to store all interactions between users and the chatbot;
- Connectors are components that provide communication channels between users and the chatbot. Lhia architecture has implemented connectors for WhatsApp and Telegram.
4.4. Enabling Lhia to Answer Questions
- nlu.yml has all problems faced by mothers categorized as intents, and each intent contains sentence samples;
- domain.yml contains the answers and actions for each corresponding intent in the nlu.yml file;
- stories.yml contains the conversational flow based on stories, in which each story contains one or more intents.
- WhitespaceTokenizer component is responsible for the initial pre-processing step, in which texts are divided into smaller units (words or characters), i.e., unique tokens. This separation occurs from the white spaces between each word or character, and has user messages as input, and a list of unique tokens as output;
- LexicalSyntacticFeaturizer is a component responsible for extracting features such as keywords, sequences of relevant words, grammatical categories, n-grams, and lexical properties. Furthermore, it uses word processing techniques to analyze the grammatical structure and lexical properties of the input sentences;
- CountVectorFeaturizer identifies the frequency of words, without considering their contextual or semantic meaning in the sentences;
- DIETClassifier is the component with the Dual Intent and Entity Transformer (DIET) [31], which is a multitasking architecture for intent classification and entity recognition. It outputs the confidence scores for each possible intent associated with the user message;
- FallbackClassifier component is responsible for handling occasions when the chatbot cannot classify an intent. It provides a default response when a fallback is triggered (i.e., the fallback response).
5. Results
5.1. Participants
5.2. Indicators
5.3. Evolution of Performance Results
5.4. Improvement of the Conversational Flow
5.5. Case Study
6. Discussion
6.1. Principal Findings
6.2. Lhia Contributions
6.3. Limitations
6.4. Future Work
7. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
CDD | Conversation-Driven Development |
HMBs | Human Milk Banks |
DIET | Dual Intent and Entity Transformer |
HM | Human Milk |
WHO | World Health Organization |
BR-HMBn | Brazilian Human Milk Bank Network |
Lhia | Human Milk and Artificial Intelligence |
NLP | Natural Language Processing |
DL | Deep Learning |
NICU | Neonatal Intensive Care Unit |
AI | Artificial Intelligence |
HU-UFMA | University Hospital of the Federal University of Maranhão |
NLU | Natural Language Understanding |
brWaC | Portuguese Web as Corpus |
NPS | Net Promoter Score |
LLM | Large Language Model |
NLG | Natural Language Generation |
References
- Victora, C.G.; Bahl, R.; Barros, A.J.D.; França, G.V.A.; Horton, S.; Krasevec, J.; Murch, S.; Sankar, M.J.; Walker, N.; Rollins, N.C. Breastfeeding in the 21st century: Epidemiology, mechanisms, and lifelong effect. Lancet 2016, 387, 475–490. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Rollins, N.C.; Lutter, C.K.; Bhandari, N.; Hajeebhoy, N.; Susan Horton, J.C.M.; Piwoz, E.G.; Richter, L.M.; Victora, C.G. Why invest, and what it will take to improve breastfeeding practices? Lancet 2016, 387, 491–504. [Google Scholar] [CrossRef] [PubMed]
- World Health Organization. Infant and Young Child Feeding: Model Chapter for Textbooks for Medical Students and Allied Health Professionals; Technical Report; WHO: Geneva, Switzerland, 2009. [Google Scholar]
- World Health Organization. Guideline: Protecting, Promoting and Supporting Breastfeeding in Facilities Providing Maternity and Newborn Services; WHO: Geneva, Switzerland, 2017. [Google Scholar]
- e Silva, A.C.R.; Bastos, R.P.; de Souza Pimentel, Z.N. Early ablactation: A systematic review. Electron. J. Collect. Health 2019, 30, 17. [Google Scholar]
- da Silva, A.A.M. Methodological aspects of the Brazilian National Survey on Child Nutrition (ENANI-2019). Rep. Public Health 2021, 37, e00172121. [Google Scholar] [CrossRef]
- WHO Library Cataloguing-in-Publication Data. Every Newborn: An Action Plan To End Preventable Deaths; Technical Report 49; World Health Organization: Geneva, Switzerland, 2014. [Google Scholar]
- World Health Organization. Call for Proposals—Support for the Development of WHO Guidelines on Donor Human Milk Banking. 2022. Available online: https://www.who.int/news-room/articles-detail/call-for-proposals-support-for-the-development-of-who-guidelines-on-donor-human-milk-banking. (accessed on 9 January 2023).
- Tang, K.; Gerling, K.; Chen, W.; Geurts, L. Information and communication systems to tackle barriers to breastfeeding: Systematic search and review. J. Med. Internet Res. 2019, 21, e13947. [Google Scholar] [CrossRef] [Green Version]
- Safi, Z.; Abd-Alrazaq, A.; Khalifa, M.; Househ, M. Technical Aspects of Developing Chatbots for Medical Applications: Scoping Review. J. Med. Internet Res. 2020, 22, e19127. [Google Scholar] [CrossRef]
- Taj, I.; Jhanjhi, N. Towards Industrial Revolution 5.0 and Explainable Artificial Intelligence: Challenges and Opportunities. Int. J. Comput. Digit. Syst. 2022, 12, 295–320. [Google Scholar] [CrossRef] [PubMed]
- Montenegro, J.L.Z.; da Costa, C.A.; da Rosa Righi, R. Survey of conversational agents in health. Expert Syst. Appl. 2019, 129, 56–67. [Google Scholar] [CrossRef]
- Khurana, D.; Koli, A.; Khatter, K.; Singh, S. Natural language processing: State of the art, current trends and challenges. Multimed. Tools Appl. 2023, 82, 3713–3744. [Google Scholar] [CrossRef] [PubMed]
- CDC. Strategy 7. Access to Breastfeeding Education and Information. 2008. Available online: https://www.cdc.gov/breastfeeding/pdf/strategy7-access-breastfeeding-education.pdf. (accessed on 6 April 2022).
- Raeisi, K.; Shariat, M.; Nayeri, F.; Raji, F.; Dalili, H. A single center study of the effects of trained fathers’ participation in constant breastfeeding. Acta Medica Iran. 2014, 52, 694–696. [Google Scholar]
- Negin, J.; Coffman, J.; Vizintin, P.; Raynes-Greenow, C. The influence of grandmothers on breastfeeding rates: A systematic review. BMC Pregnancy Childbirth 2016, 16, 91. [Google Scholar] [CrossRef] [Green Version]
- Demirtas, B. Strategies to support breastfeeding: A review. Int. Nurs. Rev. 2012, 59, 474–481. [Google Scholar] [CrossRef] [PubMed]
- Ke, J.; Ouyang, Y.Q.; Redding, S.R. Family-Centered Breastfeeding Education to Promote Primiparas’ Exclusive Breastfeeding in China. J. Hum. Lact. 2018, 34, 365–378. [Google Scholar] [CrossRef] [PubMed]
- Sitrin, D.; Guenther, T.; Waiswa, P.; Namutamba, S.; Namazzi, G.; Sharma, S.; Ashish, K.; Rubayet, S.; Bhadra, S.; Ligowe, R.; et al. Improving newborn care practices through home visits: Lessons from Malawi, Nepal, Bangladesh, and Uganda. Glob. Health Action 2015, 8, 23963. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Giglia, R.; Cox, K.; Zhao, Y.; Binns, C.W. Exclusive breastfeeding increased by an internet intervention. Breastfeed. Med. 2015, 10, 20–25. [Google Scholar] [CrossRef]
- Miller, J.; Tonkin, E.; Damarell, R.A.; McPhee, A.J.; Suganuma, M.; Suganuma, H.; Middleton, P.F.; Makrides, M.; Collins, C.T. A systematic review and meta-analysis of human milk feeding and morbidity in very low birth weight infants. Nutrients 2018, 10, 707. [Google Scholar] [CrossRef] [Green Version]
- Berrington, J.E.; Stewart, C.J.; Embleton, N.D.; Cummings, S.P. Gut microbiota in preterm infants: Assessment and relevance to health and disease. Arch. Dis. Child.-Fetal Neonatal Ed. 2013, 98, F286–F290. [Google Scholar] [CrossRef] [PubMed]
- Briere, C.E.; McGrath, J.; Cong, X.; Cusson, R. An integrative review of factors that influence breastfeeding duration for premature infants after NICU hospitalization. J. Obstet. Gynecol. Neonatal Nurs. 2014, 43, 272–281. [Google Scholar] [CrossRef]
- World Health Organization. Reproductive Health. Kangaroo Mother Care: A Practical Guide; Number 1; World Health Organization: Geneva, Switzerland, 2003. [Google Scholar]
- RDC-ANVISA No, D. Resolução-rdc nº 171, de 4 de Setembro de 2006. 2006. Available online: https://bvsms.saude.gov.br/bvs/saudelegis/anvisa/2006/res0171_04_09_2006.html (accessed on 5 June 2023).
- Neia, V.J.C.; Tavares, C.B.G.; Ponhozi, I.B.; Tiyo, B.T.; Manin, L.P.; da Silveira, R.; Chiavelli, L.U.R.; Fuyama, F.H.; Visentainer, L.; Santos, O.O.; et al. Recomendações na doação de leite materno aos bancos de leite humano frente à pandemia do COVID-19. Res. Soc. Dev. 2021, 10, e30210817258. [Google Scholar] [CrossRef]
- Kusal, S.; Patil, S.; Choudrie, J.; Kotecha, K.; Mishra, S.; Abraham, A. AI-Based Conversational Agents: A Scoping Review From Technologies to Future Directions. IEEE Access 2022, 10, 92337–92356. [Google Scholar] [CrossRef]
- Tudor Car, L.; Dhinagaran, D.A.; Kyaw, B.M.; Kowatsch, T.; Joty, S.; Theng, Y.L.; Atun, R. Conversational Agents in Health Care: Scoping Review and Conceptual Analysis. J. Med. Internet Res. 2020, 22, e17158. [Google Scholar] [CrossRef] [PubMed]
- Mellado-Silva, R.; Faúndez-Ugalde, A.; Lobos, M.B. Learning tax regulations through rules-based chatbots using decision trees: A case study at the time of COVID-19. In Proceedings of the 2020 39th International Conference of the Chilean Computer Science Society (SCCC), Coquimbo, Chile, 16–20 November 2020; pp. 1–8. [Google Scholar] [CrossRef]
- Kapočiūtė-Dzikienė, J. A Domain-Specific Generative Chatbot Trained from Little Data. Appl. Sci. 2020, 10, 2221. [Google Scholar] [CrossRef] [Green Version]
- Bunk, T.; Varshneya, D.; Vlasov, V.; Nichol, A. DIET: Lightweight Language Understanding for Dialogue Systems. arXiv 2020, arXiv:2004.09936. [Google Scholar] [CrossRef]
- Allouch, M.; Azaria, A.; Azoulay, R. Conversational Agents: Goals, Technologies, Vision and Challenges. Sensors 2021, 21, 8448. [Google Scholar] [CrossRef] [PubMed]
- Zhao, W.X.; Zhou, K.; Li, J.; Tang, T.; Wang, X.; Hou, Y.; Min, Y.; Zhang, B.; Zhang, J.; Dong, Z.; et al. A Survey of Large Language Models. arXiv 2023, arXiv:2303.18223. [Google Scholar] [CrossRef]
- Lau, Y.; Htun, T.P.; Tam, W.S.; Klainin-Yobas, P. Efficacy of e-technologies in improving breastfeeding outcomes among perinatal women: A meta-analysis. Matern. Child Nutr. 2016, 12, 381–401. [Google Scholar] [CrossRef]
- McArthur, L.; Ottosen, M.J.; Picarella, L. Technology for breastfeeding support: A systematic review. J. Inform. Nurs. 2018, 3, 21–32. [Google Scholar] [CrossRef]
- Geoghegan-Morphet, N.; Yuen, D.; Rai, E.; Angelini, M.; Christmas, M.; da Silva, O. Development and implementation of a novel online breastfeeding support resource: The maternal virtual infant nutrition support clinic. Breastfeed. Med. 2014, 9, 520–523. [Google Scholar] [CrossRef]
- Milne-Ives, M.; de Cock, C.; Lim, E.; Shehadeh, M.H.; de Pennington, N.; Mole, G.; Normando, E.; Meinert, E. The Effectiveness of Artificial Intelligence Conversational Agents in Health Care: Systematic Review. J. Med. Internet Res. 2020, 22, e20346. [Google Scholar] [CrossRef]
- Edwards, R.; Bickmore, T.; Jenkins, L.; Foley, M.; Manjourides, J. Use of an Interactive Computer Agent to Support Breastfeeding. Matern. Child Health J. 2013, 17, 1961–1968. [Google Scholar] [CrossRef]
- Zhang, Z.; Bickmore, T.; Mainello, K.; Mueller, M.; Foley, M.; Jenkins, L.; Edwards, R.A. Maintaining Continuity in Longitudinal, Multi-method Health Interventions Using Virtual Agents: The Case of Breastfeeding Promotion. In Intelligent Virtual Agents: 14th International Conference, IVA 2014, Boston, MA, USA, August 27–29, 2014. Proceedings 14; Springer International Publishing: Berlin/Heidelberg, Germany, 2014; pp. 504–513. [Google Scholar] [CrossRef] [Green Version]
- Yadav, D.; Malik, P.; Dabas, K.; Singh, P. Feedpal: Understanding Opportunities for Chatbots in Breastfeeding Education of Women in India. Proc. ACM Hum.-Comput. Interact. 2019, 3, 1–30. [Google Scholar] [CrossRef] [Green Version]
- de Holanda Cunha Barreto, I.C.; Barros, N.B.S.; Theophilo, R.L.; Viana, V.F.; de Vasconcelos Silveira, F.R.; de Souza, O.; de Sousa, F.J.G.; de Oliveira, A.M.B.; de Andrade, L.O.M. Development and evaluation of the GISSA Mother-Baby ChatBot application in promoting child health. Ciên. Saúde Colet. 2021, 6, 1679–1689. [Google Scholar] [CrossRef]
- Bird, M.; McGillion, M.; Chambers, E.; Dix, J.; Fajardo, C.; Gilmour, M.; Levesque, K.; Lim, A.; Mierdel, S.; Ouellette, C.; et al. A generative co-design framework for healthcare innovation: Development and application of an end-user engagement framework. Res. Involv. Engagem. 2021, 7, 12. [Google Scholar] [CrossRef] [PubMed]
- Krol, M.W.; de Boer, D.; Delnoij, D.M.; Rademakers, J.J.D.J.M. The Net Promoter Score—An asset to patient experience surveys? Health Expect. 2015, 18, 3099–3109. [Google Scholar] [CrossRef] [PubMed]
- Brazilian Ministry of Health. Cadernos de Atenção Básica-SAÚDE DA CRIANÇA—Aleitamento Materno e Alimentação Complementar (Child Health: Growth and Development); Editora MS: Brasília, Brazil, 2015. [Google Scholar]
- Bocklisch, T.; Faulkner, J.; Pawlowski, N.; Nichol, A. Rasa: Open Source Language Understanding and Dialogue Management. arXiv 2017, arXiv:1712.05181. [Google Scholar]
- Arevalillo-Herráez, M.; Arnau-González, P.; Ramzan, N. On Adapting the DIET Architecture and the Rasa Conversational Toolkit for the Sentiment Analysis Task. IEEE Access 2022, 10, 107477–107487. [Google Scholar] [CrossRef]
- Rasa. Rasa Framework. 2021. Available online: https://rasa.com/docs/rasa/components/ (accessed on 2 March 2023).
- Wolf, T.; Debut, L.; Sanh, V.; Chaumond, J.; Delangue, C.; Moi, A.; Cistac, P.; Rault, T.; Louf, R.; Funtowicz, M.; et al. HuggingFace’s Transformers: State-of-the-Art Natural Language Processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, Online, 16–20 November 2020; pp. 38–45. [Google Scholar] [CrossRef]
- Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv 2019, arXiv:1810.04805. [Google Scholar]
- Devlin, J.; Chang, M.; Lee, K.; Toutanova, K. BERT Multilingual Base Model (Cased). Available online: https://huggingface.co/bert-base-multilingual-cased. (accessed on 18 January 2022).
- Souza, F.; Nogueira, R.; Lotufo, R. BERTimbau: Pretrained BERT models for Brazilian Portuguese. In Proceedings of the Brazilian Conference on Intelligent Systems, Rio Grande, Brazil, 20–23 October 2020; pp. 403–417. [Google Scholar]
- Fábio Souza and Rodrigo Nogueira and Roberto Lotufo. BERTimbau Base. Available online: https://huggingface.co/neuralmind/bert-base-portuguese-cased (accessed on 18 January 2022).
- Fábio Souza and Rodrigo Nogueira and Roberto Lotufo. BERTimbau Large. Available online: https://huggingface.co/neuralmind/bert-large-portuguese-cased (accessed on 18 January 2022).
- Wagner Filho, J.A.; Wilkens, R.; Idiart, M.; Villavicencio, A. The brWaC Corpus: A New Open Resource for Brazilian Portuguese. In Proceedings of the 11th International Conference on Language Resources and Evaluation (LREC 2018). European Language Resources Association (ELRA), Miyazaki, Japan, 7–12 May 2018. [Google Scholar]
- Neurocognition and Natural Language Processing Research Lab. BrWaC. Available online: https://www.inf.ufrgs.br/pln/wiki/index.php?title=BrWaC (accessed on 18 January 2022).
- Kung, T.H.; Cheatham, M.; Medenilla, A.; Sillos, C.; De Leon, L.; Elepaño, C.; Madriaga, M.; Aggabao, R.; Diaz-Candido, G.; Maningo, J.; et al. Performance of ChatGPT on USMLE: Potential for AI-assisted medical education using large language models. PLoS Digit. Health 2023, 2, e0000198. [Google Scholar] [CrossRef]
- Malamas, N.; Symeonidis, A. Embedding Rasa in edge Devices: Capabilities and Limitations. Procedia Comput. Sci. 2021, 192, 109–118. [Google Scholar] [CrossRef]
- Santos, G.A.; de Andrade, G.G.; Silva, G.R.S.; Duarte, F.C.M.; Costa, J.P.J.D.; de Sousa, R.T. A Conversation-Driven Approach for Chatbot Management. IEEE Access 2022, 10, 8474–8486. [Google Scholar] [CrossRef]
Round | Channel | Intents | Duration | Flow Improvement |
---|---|---|---|---|
1 | Telegram | 4 | 7 days | Fluidity and friendliness |
2 | Telegram | 6 | 7 days | Content |
3 | 6 | 7 days | Specific improvements based on suggestions of the participants | |
4 | 6 | 2 h | N/A |
Pipeline | Description |
---|---|
P1 | WhitespaceTokenizer, LexicalSyntacticFeaturizer, CountVectorFeaturizer, DIETClassifier |
P2 | WhitespaceTokenizer, RegexFeaturizer, LexicalSyntacticFeaturizer, CountVectorFeaturizer, DIETClassifier |
P3 | WhitespaceTokenizer, BERTimbau-base, LexicalSyntacticFeaturizer, CountVectorFeaturizer, DIETClassifier |
P4 | WhitespaceTokenizer, BERTimbau-large, LexicalSyntacticFeaturizer, CountVectorFeaturizer, DIETClassifier, FallbackClassifier |
P5 | WhitespaceTokenizer, BERT-multilingual, LexicalSyntacticFeaturizer, CountVectorFeaturizer, DIETClassifier |
Intent | 1 | 2 | 3 | 4 | Average |
---|---|---|---|---|---|
Human milk donation | – | 1.0 | 0.74 | 0.73 | 0.82 |
Active notification of participants | – | – | – | 0.65 | 0.65 |
Satisfaction survey | – | – | 0.81 | 0.70 | 0.75 |
Position and handle | 0.95 | 0.98 | 0.86 | 0.73 | 0.88 |
Engorgement | 0.98 | 1.0 | – | – | 0.99 |
Hypogalactia and insecurity | 0.93 | 0.97 | 0.96 | 0.73 | 0.89 |
Fissure | 1.0 | 0.94 | 0.70 | – | 1.32 |
Breast abscess | – | 0.98 | – | – | 0.98 |
Breast engorgement and abscess | – | – | 0.77 | – | 0.77 |
Breast abscess, engorgement, and fissure | – | – | – | 0.73 | 0.73 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Corrêa, J.S.; Neto, A.P.d.A.; Pinto, G.R.; Lima, L.D.B.; Teles, A.S. Lhia: A Smart Chatbot for Breastfeeding Education and Recruitment of Human Milk Donors. Appl. Sci. 2023, 13, 6923. https://doi.org/10.3390/app13126923
Corrêa JS, Neto APdA, Pinto GR, Lima LDB, Teles AS. Lhia: A Smart Chatbot for Breastfeeding Education and Recruitment of Human Milk Donors. Applied Sciences. 2023; 13(12):6923. https://doi.org/10.3390/app13126923
Chicago/Turabian StyleCorrêa, Joeckson Santos, Ari Pereira de Araújo Neto, Giovanny Rebouças Pinto, Lucas Daniel Batista Lima, and Ariel Soares Teles. 2023. "Lhia: A Smart Chatbot for Breastfeeding Education and Recruitment of Human Milk Donors" Applied Sciences 13, no. 12: 6923. https://doi.org/10.3390/app13126923