A Response-by-Retrieval Chatbot for Enhancing Horticulture Extension Services in Tanzania

dc.contributor.authorLubawa, Amos
dc.contributor.authorNyambo, Devotha
dc.contributor.authorMduma, Neema
dc.contributor.authorSinde, Ramadhani
dc.date.accessioned2025-12-23T12:05:37Z
dc.date.issued2025-10
dc.descriptionSDG-1: No Poverty SDG-2: Zero Hunger SDG-4: Quality Education SDG-8: Decent Work and Economic Growth SDG-9: Industry, Innovation and Infrastructure SDG-10: Reduced Inequalities SDG-17: Partnerships for the Goals
dc.description.abstractHorticulture, which encompasses the cultivation of flowers, fruits, herbs, and vegetables, is a key contributor to Tanzania’s export revenue generation. Smallholder farmers are the primary producers of these crops, and they rely heavily on extension services for critical information that shapes both their economic success and long-term sustainability. However, the delivery of such services from the government and other stakeholders faces challenges, including constraints in human capital, geographic barriers, misaligned information needs, as well as issues with the timeliness of information dissemination. To address these challenges, this study developed a Swahili-language chatbot designed to provide timely, context-specific information tailored to the needs of farmers. To ensure credibility and relevance, key private and public stakeholders were consulted, and comprehensive farming guides were collected to build a custom dataset. This dataset consisted of 307 passages and 2,231 question-answer pairs. Four multilingual models, Multilingual Bidirectional Encoder Representations from Transformers (mBERT), Cross-lingual Language Model Pretraining RoBERTa (XLM-R), Multilingual Decoding-Enhanced BERT with Disentangled Attention (mDeBERTa), and Afro Cross-lingual Language Model Pretraining RoBERTa (AfroXLMR), were finetuned on this dataset for a question-answering task. Among them, the mDeBERTa model achieved the strongest performance, with an Exact Match (EM) score of 62.69% and an F1 score of 75.35%. These results demonstrate the potential of adapting advanced language models for specialized, low-resource language tasks in agriculture. The deployment of mDeBERTa in a prototype chatbot highlights a promising pathway to bridge information gaps and enhance the accessibility of extension services for Tanzania’s smallholder farmers.
dc.identifier.urihttps://doi.org/10.48084/etasr.12761
dc.identifier.urihttps://dspace.nm-aist.ac.tz/handle/123456789/3543
dc.language.isoen
dc.publisherETASR
dc.subjectchatbot
dc.subjectnatural language processing
dc.subjectquestion-answering
dc.subjectBidirectional Encoder Representations from Transformers (BERT)
dc.titleA Response-by-Retrieval Chatbot for Enhancing Horticulture Extension Services in Tanzania
dc.typeArticle

Files

Original bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
JA_CoCSE_2025.pdf
Size:
455.06 KB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
2 KB
Format:
Item-specific license agreed upon to submission
Description: